解决宝塔 GitLab 重新配置后 nginx 无法启动

2020 年 3 月 16 日 1303 点热度 0 人点赞 0 条评论

此问题的原因是宝塔把 gitlab 的 nginx 启动文件名改成了 gitlab-web, 但是运行 gitlab-ctl reconfigure 会把一个配置文件里面的 gitlab-web 还原回 nginx

所以我们只需要改回去就好了。

宝塔后台打开/opt/gitlab/sv/nginx/run

exec chpst -P /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx 改为 exec chpst -P /opt/gitlab/embedded/sbin/gitlab-web -p /var/opt/gitlab/nginx

然后保存退出,运行 gitlab-ctl restart 即可

耗子

练习时长 4 年半的个人程序员 喜欢 PHP 、 Go 、 Vue 和 Python Music~

文章评论

Loading...