rpm部署gitlab-ce-8.10.6

sysinfo

[root@10 gitlab]# cat /etc/redhat-release 
CentOS Linux release 7.2.1511 (Core) 
[root@10 gitlab]# uname -a
Linux gitlab 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

安装gitlab
下载一个最新的gitlab安装包
安裝依賴

yum install curl policycoreutils openssh-server openssh-clients

安裝下載好的安裝包,這裡用的是8.10.6

yum localinstall yum install gitlab-ce-8.10.6-ce.0.el7.x86_64.rpm -y

開始配置

gitlab-ctl reconfigure

登錄密碼

root
5iveL!fe

查看狀態

[root@localhost ~]# gitlab-ctl status
run: gitlab-workhorse: (pid 23393) 159s; run: log: (pid 23195) 175s
run: logrotate: (pid 23352) 167s; run: log: (pid 23351) 167s
run: nginx: (pid 23240) 173s; run: log: (pid 23239) 173s
run: postgresql: (pid 22953) 205s; run: log: (pid 22952) 205s
run: redis: (pid 22816) 211s; run: log: (pid 22815) 211s
run: sidekiq: (pid 23151) 181s; run: log: (pid 23150) 181s
run: unicorn: (pid 23421) 147s; run: log: (pid 23094) 183s

重啟

[root@localhost ~]# gitlab-ctl restart
ok: run: gitlab-workhorse: (pid 23646) 0s
ok: run: logrotate: (pid 23654) 1s
ok: run: nginx: (pid 23661) 0s
ok: run: postgresql: (pid 23671) 0s
ok: run: redis: (pid 23680) 0s
ok: run: sidekiq: (pid 23685) 0s
ok: run: unicorn: (pid 23690) 1s

查看nginx日誌

[root@localhost ~]# gitlab-ctl tail nginx
==> /var/log/gitlab/nginx/current <==

==> /var/log/gitlab/nginx/error.log <==

==> /var/log/gitlab/nginx/gitlab_access.log <==

==> /var/log/gitlab/nginx/gitlab_error.log <==
^[[A^C/opt/gitlab/embedded/bin/omnibus-ctl: Interrupt

查看數據庫日誌

[root@localhost ~]# gitlab-ctl tail postgresql
2016-08-20_10:32:51.75539 LOG:  received fast shutdown request
2016-08-20_10:32:51.75541 LOG:  aborting any active transactions
2016-08-20_10:32:51.75542 LOG:  autovacuum launcher shutting down
2016-08-20_10:32:51.75651 FATAL:  terminating connection due to administrator command
2016-08-20_10:32:51.75861 FATAL:  terminating connection due to administrator command
2016-08-20_10:32:51.76010 LOG:  shutting down
2016-08-20_10:32:52.04671 LOG:  database system is shut down
2016-08-20_10:32:52.14372 LOG:  database system was shut down at 2016-08-20 10:32:52 GMT
2016-08-20_10:32:52.18627 LOG:  database system is ready to accept connections
2016-08-20_10:32:52.18628 LOG:  autovacuum launcher started

gitlab默认安装目录在/opt/gitlab/

那麼現在,有一個問題,安裝完成它會以git@localhost:root/master.git形式展示出
當然,這肯定不是我們要的格式,修改如下即可

vim /etc/gitlab/gitlab.rb
external_url 'http://10.10.239.222'

修改完成在進行配置一次:gitlab-ctl reconfigure

0 分享

您可以选择一种方式赞助本站

支付宝扫码赞助

支付宝扫码赞助

日期: 2016-08-23分类: 持续集成

标签: GitLab

发表评论