gitlab修改配置重启_centos7下gitlab安装说明
執(zhí)行 1
sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo systemctl reload firewalld
如果遇到
原因是
由于yum命令一次只能下載一個(gè)軟件,所以當(dāng)你需要下載第二個(gè)軟件包的時(shí)候,系統(tǒng)會(huì)用進(jìn)程鎖鎖定yum解決辦法:rm -f /var/run/yum.pid 將該文件刪除,然后再次運(yùn)行yum
執(zhí)行后再執(zhí)行1
執(zhí)行 2
#安裝 Postfix并開機(jī)啟動(dòng) 啟用
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
執(zhí)行 3
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
執(zhí)行 4 執(zhí)行安裝
說明EXTERNAL_URL的內(nèi)容為訪問的地址需配置對(duì)
這步很重要
sudo EXTERNAL_URL="https://192.168.1.112" yum install -y gitlab-ee
這步下載需等待
如果啟動(dòng)后訪問遇到502
需要修改端口
sudo gitlab-ctl stop
sudo vim /etc/gitlab/gitlab.rb
增加或修改
external_url 'http://192.168.56.136:1890'
gitlab_workhorse['auth_backend'] = "http://localhost:8081"
unicorn['port'] = 8081
更新配置
gitlab-ctl reconfigure
重啟
sudo gitlab-ctl start
啟動(dòng)成功首先是設(shè)置密碼
啟動(dòng)成功默認(rèn)用戶是root,密碼是首次進(jìn)去設(shè)置的
其他命令
設(shè)置開機(jī)啟動(dòng)
systemctl enable gitlab-runsvdir.service
修改配置后的初始化
gitlab-ctl reconfigure
啟動(dòng)sudo gitlab-ctl start
停止sudo gitlab-ctl stop
重啟sudo gitlab-ctl restart
禁止開機(jī)自啟動(dòng)
systemctl disable gitlab-runsvdir.service
防火墻命令
1.查看狀態(tài)
systemctl status firewalld.service
2.關(guān)閉
systemctl stop firewalld.service
3.禁止開機(jī)啟動(dòng)
systemctl disable firewalld.service
總結(jié)
以上是生活随笔為你收集整理的gitlab修改配置重启_centos7下gitlab安装说明的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Mojang 发布《我的世界》1.20
- 下一篇: 7135制作自动量程电压切换_基于数字电