百分百源码网-让建站变得如此简单! 登录 注册 签到领金币!

主页 | 如何升级VIP | TAG标签

当前位置: 主页>网站教程>服务器> rpm部署gitlab-ce-8.10.6的过程笔记
分享文章到:

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

发布时间:01/15 来源: 浏览: 关键词:
下面我们来看一篇关于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

打赏

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

百分百源码网 建议打赏1~10元,土豪随意,感谢您的阅读!

共有2人阅读,期待你的评论!发表评论
昵称: 网址: 验证码: 点击我更换图片
最新评论

本文标签

广告赞助

能出一分力是一分吧!

订阅获得更多模板

本文标签

广告赞助

订阅获得更多模板