The Forbidden solve GitLab and Nginx failed to start

By pagoda installed GitLab sudden F orbidden , the reason is actually IP concurrent too large, IP banned

Solution:

Login server, edit the file  /etc/gitlab/gitlab.rb, will release the contents of the comment screenshot below (the default is annotated), save and exit

Then restart the service load

gitlab-ctl reconfigure

At this time may appear bigger problem, GitLab of Nginx fails to start  

Query Log

gitlab-ctl tail

Found error message 

Run command to resolve failed to start Nginx problem

cp /opt/gitlab/embedded/sbin/gitlab-web /opt/gitlab/embedded/sbin/nginx

Go Gitlab see the effect, OK 

 

Guess you like

Origin www.cnblogs.com/yulongcode/p/11586770.html