查看rsync服务是否启动有两种方法 //第一种 ps -ef | grep rsync root 1483 1 0 14:11 ? 00:00:00 /usr/bin/rsync --daemon root 1487 1304 0 14:12 pts/0 00:00:00 grep --color=auto rsync //第二种 netstat…
【day1】 平均负载 1.查看平均负载命令 uptime[root@localhost ~]# uptime 13:24:46 up 211 days, 4:50, 1 user, load&nbs…
打开gitlab首页一个大大的500展示在首页 2、在百度等查看了各种攻略一一尝试均失败了比如:重置并启动GitLabgitlab-ctl reconfiguregitlab-ctl restartRedis仍然无法正常运行3、查看production.log日志tail -f /var/log/gitlab/gitlab-rails/produc…
GitLab架构图
Linux系统:centOS6.8 1.查看主机名。uname -n 或者 hostname2.临时修改。hostname JaneYork //退出shell,再次进入即可修改成功 3.永久修改。 vi /etc/sysconfig/networkNETWORKING=yes HOSTNAME=JaneYork&nb…
1)编写hello world脚本#!/bin/bash# 编写hello world脚本echo "Hello World!"2)通过位置变量创建 Linux 系统账户及密码#!/bin/bash# 通过位置变量创建 Linux 系统账户及密码#$1&nbs…
我们知道grep是查找命令,这是最基础的用法,那其他用法呢,这里记录2个 //反向查找 //查找test.txt文件中 不包含aa的行 grep -v "aa" test.txt //匹配多个 //查找test.txt中不包含aa和bb的行 grep -vE "…
这里面其实是有2个关键点 首先要获取到某个目录下的所有文件名称 然后再对名称进行截取 具体代码如下#!/bin/bash cd ~ for file in $(ls ) do echo $file echo ${file%-} do…
如何将Nginx的某个端口配置到某个域名上 例如我要将9000端口配置到 leanote.hupc.site这个域名上upstream leanote.hupc.site{ server localhost:9000; } server{ listen&nb…
修改nginx.conflog_format main '$http_x_forwarded_for $remote_addr - $remote_user [$time_local] "$request" ' '$statu…