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

GitLab 502 端口占用

Explore all DevOps & Infrastructure notes →

卸载

一、卸载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即可

本文修订依据:GitLab 官方 Trademark Guidelines(政策文本最后修订于 2024-07-03;当前页面源 commit 4469685d7b8ac40a08f48eb793b75f8143ed690e,2026-08-27)。本文仅将标题中的 Gitlab 更正为官方名称 GitLab,文件名及卸载、端口、配置和重启说明均保持不变。

AI 修改声明: 本文由 LLM 协助修订,最近修改时间:2026-09-25 15:16(UTC+08:00)。修订仅纠正标题中的 GitLab 品牌大小写。


← Previous Intel VTune Profiler