YC Yc.W home Systems · C++ · AI Infrastructure
DevOps & Infrastructure · Note

GitLab 502 端口占用

Explore all DevOps & Infrastructure notes →

#安装Gitlab后,登录报错502,端口占用

卸载

一、卸载GitLab及其依赖 1、首先停止GitLab的运行命令: sudo gitlab-ctl stop 2、卸载GitLab: sudo apt-get remove gitlab-ce 3、卸载GitLab依赖: sudo apt-get autoremove -y 4、移除GitLab相关的文件: sudo rm -rf /opt/gitlab

tail 日志

sudo gitlab-ctl tail

解决方案

原因1:puma端口冲突 解决办法:vim /etc/gitlab/gitlab.rb,在默认端口# puma[‘port’] = 8080下新增一行 puma[‘port’] = 8989 ,此端口不能和external_url重复。修改完毕保存,重新加载配置文件,重启gitlab,等待两三分钟再次访问http://192.168.29.141:8080即可


← Previous Intel VTune Profiler