sudo yum install curl openssh-server openssh-clients postfix cronie sudo service postfix start sudo chkconfig postfix on sudo lokkit -s http -s ssh
curl -sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bash sudo yum install gitlab-ce
sudo gitlab-ctl reconfigure
四、使用瀏覽器訪問GitLab 首次訪問GitLab,系統會讓你從新設置管理員的密碼,設置成功後會返回登陸界面. 默認的管理員帳號是root,若是你想更改默認管理員帳號,請輸入上面設置的新密碼登陸系統後修改賬號名. 參考URL:https://www.gitlab.com.cn/downloads/#centos6nginx
五、經常使用命令 Get service status 查看各服務狀態 sudo gitlab-ctl statusgit
run: nginx: (pid 972) 7s; run: log: (pid 971) 7s run: postgresql: (pid 962) 7s; run: log: (pid 959) 7s run: redis: (pid 964) 7s; run: log: (pid 963) 7s run: sidekiq: (pid 967) 7s; run: log: (pid 966) 7s run: unicorn: (pid 961) 7s; run: log: (pid 960) 7s
# 啓動Gitlab全部組件 sudo gitlab-ctl start # 中止Gitlab全部組件 sudo gitlab-ctl stop # 重啓Gitlab全部組件 sudo gitlab-ctl restart