推广引流网站,聚名网注册,wordpress主题设置导出,深圳电器公司招聘信息让小汤装个GitLab#xff0c;折腾了一周了还没弄好#xff0c;网站一直是50x错误#xff0c;看了下情况是nginx服务挂了。这里记录一下排查的步骤。首先看看gitlab服务的情况#xff1a;gitlab-ctl status。。。。run: logrotate: (pid 19388) 838s; run: log: (pid 1746) …让小汤装个GitLab折腾了一周了还没弄好网站一直是50x错误看了下情况是nginx服务挂了。这里记录一下排查的步骤。首先看看gitlab服务的情况gitlab-ctl status。。。。run: logrotate: (pid 19388) 838s; run: log: (pid 1746) 2102sfinish: mailroom: (pid 30439) 5s; run: log: (pid 1659) 2132sdown: nginx: 1s, normally up, want up; run: log: (pid 1687) 2120srun: node-exporter: (pid 19578) 829s; run: log: (pid 1979) 2092s。。。。看来是nginx服务down了试试看手动重启nginxgitlab-ctl start nginx gitlab-ctl status。。。run: nginx: (pid 972) 7s; run: log: (pid 971) 7s。。。开启成功了但是网页依旧500错误再看status发现nginx又挂掉了说明nginx服务内部出现了问题继续排查。看看nginx的日志(完整的日志在这里/var/log/gitlab/nginx/current但是也可以通过tail看实时的情况)gitlab-ctl tail nginx。。。 /var/log/gitlab/nginx/current 2019-11-24_20:19:12.23865 nginx: [emerg] cannot load certificate /etc/gitlab/ssl/registry.code.cloudraft.cn.crt: BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(/etc/gitlab/ssl/registry.code.cloudraft.cn.crt,r) error:2006D080:BIO routines:BIO_new_file:no such file)。。。找到问题了缺了个证书文件补上就好了。用lsof看看端口监听情况lsof -i:443COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEnginx 5153 root 10u IPv4 547257 0t0 TCP *:https (LISTEN)nginx 5161 gitlab-www 10u IPv4 547257 0t0 TCP *:https (LISTEN)nginx 5162 gitlab-www 10u IPv4 547257 0t0 TCP *:https (LISTEN)nginx 5163 gitlab-www 10u IPv4 547257 0t0 TCP *:https (LISTEN)This article is under CC BY-NC-SA 4.0 license.Please quote the original linkhttps://www.liujason.com/article/396.html