GitLab搭建

  1. 安装配置依赖项
sudo yum install curl openssh-server openssh-clients postfix cronie
sudo service postfix start
sudo chkconfig postfix on
sudo lokkit -s http -s ssh
  1. 添加GitLab仓库,并安装到服务器上
curl -sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce
  1. 启动GitLab
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
相关文章
相关标签/搜索