开源中文网

您的位置: 首页 > Linux应用 > Git > 正文

rpm部署gitlab-ce-8.10.6的过程笔记

来源: 网络整理  作者: 佚名

下面我们来看一篇关于rpm部署gitlab-ce-8.10.6的过程笔记,希望文章能够帮助到各位理解到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

Tags:过程 笔记
关于开源中文网 - 联系我们 - 广告服务 - 网站地图 - 版权声明