gitLab安装
1. 配置系统防火墙,把HTTP和SSH端口开放
1 2 3 4 5
| [root@gitlab ~]# /etc/init.d/iptables stop [root@gitlab ~]# yum install curl openssh-server postfix cronie [root@gitlab ~]# service postfix start [root@gitlab ~]# chkconfig postfix on [root@gitlab ~]# lokkit -s http -s ssh
|
2.下载gitlab的rpm安装包
1
| [root@gitlab ~]# rpm -ivh gitlab-ce-9.4.5-ce.0.el6.x86_64.rpm --force
|
安装后的gitlab默认路径是/opt/gitlab(程序路径)、 /var/opt/gitlab(配置文件路径)。
issue
1 2 3 4
| [root@localhost zxg]# rpm -ivh gitlab-ce-10.0.0-ce.0.el6.x86_64.rpm --force warning: gitlab-ce-10.0.0-ce.0.el6.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID f27eab47: NOKEY error: Failed dependencies: policycoreutils-python is needed by gitlab-ce-10.0.0-ce.0.el6.x86_64
|
solve
1
| yum install policycoreutils-python
|
3. 配置端口号
vi /etc/gitlab/gitlab.rb
1 2
| external_url 'http://10.60.45.87' nginx['listen_port'] = 8081
|
4. 生效
1 2 3
| gitlab-ctl reconfigure gitlab-ctl start gitlab-ctl status
|
原文作者: 西瓜哥
原文链接: http://yoursite.com/2019/01/18/gitlab安装/
版权声明: 转载请注明出处(必须保留原文作者署名原文链接)