执行
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
检查提示Check GitLab API access: FAILED: Failed to connect to internal API
查看gitlab/config/unicorn.rb
listen "127.0.0.1:9000", :tcp_nopush => true
gitlab/config/gitlab.yml中填写的公网ip
netstat -nltp 查看127.0.0.1:9000
telnet
127.0.0.1 9000是OK,而telnet 公网ip 9000提示拒绝
git
clone时也提示拒绝
将gitlab/config/unicorn.rb修改为
listen "0.0.0.0:9000", :tcp_nopush => true
telnet
公网ip 9000 OK
git
clone时也ok
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2024-10-19 14:47:56