Centos7安装gitlab

匿名 (未验证) 提交于 2019-12-02 23:43:01

Centos7安装gitlab

1、安装Linux环境Centos7
2、安装依赖软件,命令如下
yum -y install policycoreutils openssh-server openssh-clients postfix
3、设置postfix开机启动,postfix支持gitlab的发信功能
systemctl enable postfix && systemctl start postfix
4、下载gitlab安装包,安装包地址如下:
centos 6系统的下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6
centos 7系统的下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
5、安装wget
yum -y install wget
6、下载rpm安装包
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm
7、安装gitlab
rpm -i gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm
8、修改gitlab的访问地址为自定义地址及端口
vi /etc/gitlab/gitlab.rb
将文件中的external_url 'http://localhost’localhost替换为自定义的IP的端口
9、重置gitlab
gitlab-ctl reconfigure
10、启动gitlab,如图所示即启动成功
gitlab-ctl restart


11、通过你自己定义的IP和端口访问gitlab,初始用户名和密码为:root,5iveL!fe

文章来源: https://blog.csdn.net/qq_30405531/article/details/92682995
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!