centos7.4 搭建gitlab

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/liuyingwei19880206/article/details/96741012

1. sudo yum install -y curl policycoreutils-pythonopenssh-server

2.将SSH服务设置成开机自启动,安装命令:sudo systemctl enable sshd  

3.启动SSH服务,安装命令:sudo systemctl start sshd

4.yum install firewalld systemd -y

5.service firewalld  start

6.sudo firewall-cmd --permanent --add-service=http

7.sudo systemctl reload firewalld

8.sudo yum install postfix

9.sudo systemctl enable postfix

10.sudo systemctl start postfix

11.修改 /etc/postfix/main.cf的设置 

    1>  inet_protocols = ipv4 

    2>inet_interfaces = all 

12.wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.7.3-ce.0.el7.x86_64.rpm

13.yum install policycoreutils-python

14.rpm -i soft/gitlab-ce-10.7.3-ce.0.el7.x86_64.rpm 

15.vim  /etc/gitlab/gitlab.rb

    修改:external_url 'ip/或域名 端口'

16. 重新启动:gitlab-ctl reconfigure

17.查看状态:gitlab-ctl restart

猜你喜欢

转载自blog.csdn.net/liuyingwei19880206/article/details/96741012