gitlab安装

一:环境安装

[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则查看内存是否足够

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容