linux-10条命令完成在centos安装GitLab

10条命令完成在centos安装GitLab

1.yum -y install policycoreutils-cycoreutils openssh-server openssh-clients postfix
2.systemctl enable sshd && sudo systemctl start sshd
3.systemctl enable postfix && systemctl start postfix

(如果关闭防火墙可省略下面三步)
firewall-cmd --add-service=ssh --permanent
firewall-cmd --add-service=http --permanent
firewall-cmd --reload

4.wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/gitlab-ce-12.4.2-ce.0.el6.x86_64.rpm
5.rpm -i gitlab-ce-12.4.2-ce.0.el6.x86_64.rpm

6.vim vim /etc/gitlab/gitlab.rb
取消注释并修改如下内容:
(端口自定义,不冲突即可)
nginx[‘listen_port’] = 82
(使用GitLab服务器ip)
external_url ‘http://192.168.44.11:80’

7.gitlab-ctl reconfigure
8.gitlab-ctl restart

(如果关闭防火墙可省略下面两步)
firewall-cmd --zone=public --add-port=82/tcp --permanent
firewall-cmd --reload

9.浏览器登录
http://192.168.44.11:80
修改密码
root123456
10.重新登陆(用户为root,密码为刚刚更改的密码)
在这里插入图片描述

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

运维小菜

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值