gitlab 一键搭建

 
1. 如果以前有安装过gitlab请根据以下步骤来删除
https://www.cnblogs.com/shansongxian/p/6678110.html
2. 安装gitlab   (参考 https://blog.csdn.net/qq_36467463/article/details/78283874)

sudo apt-get install curl openssh-server ca-certificates postfix

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash

sudo apt-get update

sudo apt-get install gitlab-ce

sudo gitlab-ctl reconfigure

 sudo gitlab-ctl status

可能遇到的错误:

error: 执行 sudo gitlab-ctl reconfigure 会死在这里:ruby_block[supervise_redis_sleep] action run  

解决方案 : 

1、按住CTRL+C强制结束;

2、运行:sudo systemctl restart gitlab-runsvdir

3、再次执行:sudo gitlab-ctl reconfigure

猜你喜欢

转载自www.cnblogs.com/luoyinjie/p/9748833.html
今日推荐