CentOS直接安装gitLab教程

centos直接安装gitLab教程1. 安装依赖软件【CentOS直接安装gitLab教程】yum -y install policycoreutils openssh-server openssh-clients postfix2.设置postfix开机自启,并启动,postfix支持gitlab发信功能systemctl enable postfix && systemctl start postfix# 如果执行这步报错,则按照下面操作vim /etc/postfix/main.cfinet_protocols = ipv4inet_interfaces = all3.下载gitlab安装包,然后安装centos6系统的下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6centos7系统的下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7# 下载rpm包并安装:wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-8.0.0-ce.0.el7.x86_64.rpmrpm -i gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm --force --nodeps4.修改gitlab配置文件指定服务器ip和自定义端口vim/etc/gitlab/gitlab.rbexternal_url项配置5.重置并启动GitLabgitlab-ctl reconfiguregitlab-ctl restart#执行gitlab-ctl reconfigure可能会卡死,则ctrl+c强制退出运行:systemctl restart gitlab-runsvdir;再次执行:gitlab-ctl reconfigure6. 默认账户和密码# 账户root# 密码5iveL!fe



    推荐阅读