Install gitlab-ce on centos7, official tutorial https://about.gitlab.com/downloads/#centos7
The system is already equipped with lnmp before installation.
Installation reaches the last step, the prompt message is as follows:
Running handlers:
Running handlers complete
Chef Client finished, 204/230 resources updated in 79.974115421 seconds
gitlab Reconfigured!
[root@linode ~]#
[root@linode ~]#
But when checking firewalld, the prompt is as follows, it is not started:
[root@linode ~]# systemctl status firewalld
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled)
Active: failed (Result: timeout) since 一 2015-11-09 23:25:07 CST; 4min 57s ago
Main PID: 3837
CGroup: /system.slice/firewalld.service
11月 09 23:25:07 linode systemd[1]: firewalld.service operation timed out. Terminating.
11月 09 23:25:07 linode systemd[1]: Failed to start firewalld - dynamic firewall daemon.
11月 09 23:25:07 linode systemd[1]: Unit firewalld.service entered failed state.
[root@linode ~]#
Now it says that the installation is successful. How can I access it via the web? There is no gitlab configuration in the nginx configuration:
[root@linode nginx]# whereis nginx
nginx: /usr/sbin/nginx /etc/nginx /usr/share/nginx
[root@linode nginx]# find /etc/nginx/
/etc/nginx/
/etc/nginx/koi-win
/etc/nginx/win-utf
/etc/nginx/conf.d
/etc/nginx/conf.d/example_ssl.conf
/etc/nginx/conf.d/default.conf
/etc/nginx/koi-utf
/etc/nginx/nginx.conf
/etc/nginx/scgi_params
/etc/nginx/mime.types
/etc/nginx/vhost
/etc/nginx/vhost/pma.conf
/etc/nginx/vhost/flxx.conf
/etc/nginx/vhost/upload.conf
/etc/nginx/uwsgi_params
/etc/nginx/fastcgi_params
[root@linode nginx]#
2015-11-09 23:49:08 Supplement
It’s very sad. Now I find that I can’t log in via ssh. The IP can be pinged.
Operation timed out
[2015-11-10 21:32:18] Supplement
Restart linode and you can log in, but the website has become gitlab.
[root@linode vhost]# find / -name nginx.conf
/opt/gitlab/embedded/conf/nginx.conf
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/unicorn-4.8.3/examples/nginx.conf
/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/unicorn-4.8.2/examples/nginx.conf
/var/opt/gitlab/nginx/conf/nginx.conf
/etc/nginx/nginx.conf
/root/nginx-1.8.0/conf/nginx.conf
[root@linode vhost]#
The cost of building gitlab is too high. If you are not careful, you will make a wrong configuration step, and you will need to completely reset and rebuild it
Then
问题
来了,为何不考虑使用docker
构建,你需要做的就只是按需配置相关参数
Deployment method ps: Easter egg included
Please adopt.