一般来说,重启gitlib服务可以解决问题
# 停止gitlib服务
gitlab-ctl stop
# 启动gitlib服务
gitlab-ctl start
如果不好使,则检查8080端口是否被占用netstat -nalp | grep 8080
, 如果有可把对应的进程关掉,然后重启gitlib。或者修改gitlib端口,修改方法如下:
# gitlab-ctl stop
# vi /etc/gitlab/gitlab.rb (change only these lines, uncomment if required)
unicorn['port'] = 8081
gitlab_git_http_server['auth_backend'] = "http://localhost:8081"
# gitlab-ctl reconfigure (to apply the changes)
# gitlab-ctl restart
# lsof -i:8081 (check whether unicorn has started properly)
网友评论