centos6.5部署gitlab

安装过程参考:

https://www.cnblogs.com/wenwei-blog/p/5861450.html

https://ehlxr.me/2016/07/31/CentOS-%E7%B3%BB%E7%BB%9F%E4%B8%8B-GitLab-%E6%90%AD%E5%BB%BA%E4%B8%8E%E5%9F%BA%E6%9C%AC%E9%85%8D%E7%BD%AE/

gitlab镜像:

清华大学开源镜像

https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/?C=M&O=D

注意的事项:


因为是centos6.5

所以要使用 service postfix start 来启动postfix


如果linux是个干净的环境 

安装时会出现
error: Failed dependencies:
policycoreutils-python is needed by gitlab-ce-XXX

1. 安装依赖即可
yum install policycoreutils-python


打开 /etc/gitlab/gitlab.rb 配置文件,修改 external_url 'http://ip_address' 为 external_url 'http://ip_address:new-port'

这里的ip需要是gitlab所在服务器的本地ip,然后端口自定义

注:只需要进行这一个配置即可正常访问了,只不过如果防火墙开着,需要手动关闭防火墙


关闭centos6.5防火墙:


如果不关闭的话,将不能正常访问gitlab的端口,所以必须关闭防火墙

关闭方法:按顺序执行即可

关闭命令: service iptables stop

永久关闭防火墙:chkconfig iptables off

查看状态:service iptables status


猜你喜欢

转载自www.cnblogs.com/kinome/p/9651530.html