3.6 常用 gitlab 命令
gitlab-ctl start # 启动所有 gitlab 组件;
gitlab-ctl stop # 停止所有 gitlab 组件;
gitlab-ctl restart # 重启所有 gitlab 组件;
gitlab-ctl status # 查看服务状态;
gitlab-ctl reconfigure # 启动服务;
vim /etc/gitlab/gitlab.rb # 修改默认的配置文件;
gitlab-rake gitlab:check SANITIZE=true --trace # 检查 gitlab;
gitlab-ctl tail # 查看日志;
四、gitlab 相关配置(端口未占用可忽略)
4.1 默认端口配置
vim /etc/gitlab/gitlab.rb
#unicorn['port'] = 8080 修改 8070 默认是注释的去掉前面的#
unicorn['port'] = 8070
#nginx['listen_port'] = nil 修改 8090 默认是注释的去掉前面的#
nginx['listen_port'] = 8090
4.2 unicorn 默认端口配置
vim /var/opt/gitlab/gitlab-rails/etc/unicorn.rb
#listen "127.0.0.1:8080", :tcp_nopush => true
listen "127.0.0.1:8070", :tcp_nopush => true
4.3 web 服务 80 端口配置
vim /var/opt/gitlab/nginx/conf/gitlab-http.conf
#listen *:80;
listen *:8090;
4.3 gitlab 域名&邮件配置
vi /etc/gitlab/gitlab.rb
# Change the external_url to the address your users will type in their browser