Centos安装GitLab
作者:
_River_ | 来源:发表于
2020-12-15 21:31 被阅读0次1:下载GitLab依赖:
yum -y install policycoreutils openssh-server openssh-clients postfix policycoreutils-python
2:下载软件:
1:Linux上直接下载
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/
gitlab-ce-10.8.4-ce.0.el7.x86_64.rpm
2:在Window上下载好后传输到Linux系统
下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
3:进行安装(耐心等待):
rpm -ivh gitlab-ce-10.8.4-ce.0.el7.x86_64.rpm
4:修改配置文件 设置默认端口号
vim /etc/gitlab/gitlab.rb
修改 external_url 'http://ip:端口号'
5:添加配置信息(每次修改配置后都需要该操作)(首次配置耐心等待):
gitlab-ctl reconfigure
6:gitlab的 开启 / 关闭 /重启
gitlab-ctl start | stop | restart
本文标题:Centos安装GitLab
本文链接:https://www.haomeiwen.com/subject/gflggktx.html
网友评论