linux 安装gitlib

#安装依赖包
yum -y install policycoreutils openssh-server openssh-clients postfix policycoreutils-python
#设置postfix开机自启,并启动,postfix支持gitlab发信功能
systemctl enable postfix && systemctl start postfix
[root@vm1 ~] s y s t e m c t l r e s t a r t p o s t f i x [ r o o t @ v m 1   ] systemctl restart postfix [root@vm1 ~] systemctlrestartpostfix[root@vm1 ]systemctl status postfix
[root@vm1 ~]$vim /etc/postfix/main.cf的设置
inet_protocols = ipv4 #all也可以
inet_interfaces = all

rmp -ivh gitlab-ce-11.11.5-ce.0.el7.x86_64.rpm
#修改配置文件,改完后必须重新配置才会有效
[root@vm1 ~] v i m / e t c / g i t l a b / g i t l a b . r b [ r o o t @ v m 1   ] vim /etc/gitlab/gitlab.rb [root@vm1 ~] vim/etc/gitlab/gitlab.rb[root@vm1 ]grep ‘[#]’ /etc/gitlab/gitlab.rb
external_url ‘http://192.168.41.101:8888’
unicorn[‘port’] = 8081

sudo gitlab-ctl stop --停止服务
sudo gitlab-ctl reconfigure --启动所有gitlab组件
sudo gitlab-ctl start --启动服务

http://192.168.41.101:8888/
root
test@1234

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值