centos7 gitlab安裝、配置
阿新 • • 發佈:2018-12-18
系統版本
# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
關閉防火牆
# systemctl stop firewalld.service
# systemctl disable firewalld.service
安裝依賴元件
# yum install -y policycoreutils-python
下載軟體包,如果內網伺服器可以先下載再上傳到伺服器
# wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.5.0-ce.0.el7.x86_64.rpm
安裝gitlab
# rpm -i gitlab-ce-10.5.0-ce.0.el7.x86_64.rpm
修改配置
# vi /etc/gitlab/gitlab.rb
external_url 'http://192.168.42.137'
使配置生效
# gitlab-ctl reconfigure
瀏覽器開啟連結重置登陸密碼
http://192.168.42.137