安装配置依赖项sudo yum install curl openssh-server openssh-clients postfix croniesudo service postfix start
- 安装配置依赖项
sudo yum install curl openssh-server openssh-clients postfix croniesudo service postfix startsudo chkconfig postfix onsudo lokkit -s http -s ssh
- 添加GitLab仓库,并安装到服务器上
curl -sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bashsudo yum install gitlab-ce
- 启动GitLab
sudo gitlab-ctl reconfigure
4、使用浏览器访问GitLab首次访问GitLab,系统会让你重新设置管理员的密码,设置成功后会返回登录界面.默认的管理员账号是root,如果你想更改默认管理员账号,请输入上面设置的新密码登录系统后修改帐号名.参考URL:https://www.gitlab.com.cn/downloads/#centos6
5、常用命令Get service status 查看各服务状态 sudo gitlab-ctl status
run: nginx: (pid 972) 7s; run: log: (pid 971) 7srun: postgresql: (pid 962) 7s; run: log: (pid 959) 7srun: redis: (pid 964) 7s; run: log: (pid 963) 7srun: sidekiq: (pid 967) 7s; run: log: (pid 966) 7srun: unicorn: (pid 961) 7s; run: log: (pid 960) 7s
# 启动Gitlab所有组件sudo gitlab-ctl start# 停止Gitlab所有组件sudo gitlab-ctl stop# 重启Gitlab所有组件sudo gitlab-ctl restart