美文网首页
gitlab安装

gitlab安装

作者: 梦想做小猿 | 来源:发表于2016-12-14 15:29 被阅读0次

一:环境安装

[root@localhost ~]# yum install curl openssh-server openssh-clients postfix cronie
[root@localhost ~]# service postfix start
[root@localhost ~]# chkconfig postfix on
[root@localhost ~]# lokkit -s http -s ssh

二:安装gitlab

[root@localhost ~]# curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
[root@localhost ~]# yum install gitlab-ce

因为gitlab yum安装从国外源安装,非常慢,所有可以翻墙通过以下地址下载rpm包,然后上传到服务器

https://packages.gitlab.com/gitlab/gitlab-ce

[root@localhost ~]# rpm -ivh gitlab-ce-XXX.rpm

三:配置及启动

[root@localhost ~]# gitlab-ctl reconfigure
启动配置完成后即可通过浏览器访问gitlab

四:环境说明

gitlab启动停止:

[root@localhost ~]# gitlab-ctl start
[root@localhost ~]# gitlab-ctl stop

gitlab启动后会开启3个端口:80、8080、8060
如果访问网页显示502,则是8080端口没有启动,查看是否有8080端口被占用,或修改gitlab端口,配置文件为/etc/gitlab/ gitlab.rb
如果端口启动,偶尔出现502则查看内存是否足够

相关文章

网友评论

      本文标题:gitlab安装

      本文链接:https://www.haomeiwen.com/subject/yemimttx.html