【ubuntu 18.04】安装gitlab-ce-14.5.2
1. 安装步骤
# 下载链接
wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/bionic/gitlab-ce_14.5.2-ce.0_amd64.deb/download.deb
sudo dpkg -i gitlab-ce_14.5.2-ce.0_amd64.deb/download.deb
2. 修改初始化端口
sudo vim /etc/gitlab/gitlab.rb
# 修改如下为自己的服务器的地址和端口
external_url 'http://192.168.10.99:80'
# 让配置生效
sudo gitlab-ctl reconfigure
3. 常用命令
sudo gitlab-ctl reconfigure 重新加载配置,每次修改/etc/gitlab/gitlab.rb文件之后执行 sudo gitlab-ctl status 查看 GitLab 状态 sudo gitlab-ctl start 启动 GitLab sudo gitlab-ctl stop 停止 GitLab sudo gitlab-ctl restart 重启 GitLab sudo gitlab-ctl tail 查看所有日志 sudo gitlab-ctl tail nginx/gitlab_acces.log 查看 nginx 访问日志 sudo gitlab-ctl tail postgresql 查看 postgresql 日志
4. 查找登录面
此步骤是英文,端口冲突,导致502, 然后就没有设置密码的步骤了
cat /etc/gitlab/initial_root_password
参考文章:https://blog.csdn.net/timonium/article/details/119451755
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?