nginx - Linode CentOS7 安裝gitlab-ce 提示成功,但無法存取
PHPz
PHPz 2017-05-02 09:25:18
0
1
667

在centos7上安裝gitlab-ce,官方教學 https://about.gitlab.com/downloads/#centos7
安裝之前系統已經配有 lnmp。
安裝到最後一步,提示訊息如下:

Running handlers:
Running handlers complete
Chef Client finished, 204/230 resources updated in 79.974115421 seconds
gitlab Reconfigured!
[root@linode ~]# 
[root@linode ~]# 

但查看firewalld 提示如下,未啟動:

[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 ~]# 

現在提示安裝成功,可如何web存取? nginx的配置裡面也沒有 gitlab的設定:

[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 補充
很悲催,現在發現ssh無法登入了。 IP可以ping得通。

Operation timed out

【2015-11-10 21:32:18】補充
重啟linode可以登入了,但網站變成了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]# 
PHPz
PHPz

学习是最好的投资!

全部回覆(1)
迷茫

搭建gitlab的成本太高太高,稍不注意,配置錯誤一步,又需要全盤重置重新搭建

那麼问题来了,为何不考虑使用docker构建,你需要做的就只是按需配置相关参数

部署方法 ps:內附彩蛋

請採納.

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板