linux 安装gitlib
#安装依赖包yum -y install policycoreutils openssh-server openssh-clients postfixpolicycoreutils-python#设置postfix开机自启,并启动,postfix支持gitlab发信功能systemctl enable postfix && systemctl start postfix...
#安装依赖包
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
更多推荐
所有评论(0)