用户名 : root 密码 :********
1、安装ssh :yum install -y curl policycoreutils-pythonopenssh-server
2、将SSH服务设置成开机自启动,安装命令: systemctl enable sshd
3、启动ssh systemctl start sshd
4、添加http服务到firewalld,pemmanent表示永久生效,若不加–permanent系统下次启动后就会失效。
firewall-cmd --permanent --add-service=http
5、重启防火墙 systemctl reload firewalld
6、安装postfix 发送邮件通知 yum install postfix 并设置自动启动
7、启动postfix systemctl start postfix
启动过程中可能 报错
解决方式: vim /etc/postfix/main.cf
然后重复步骤4,5 然后在启动
8、下载gitlab wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
9、安装依赖软件
yum install policycoreutils-python
10、安装gitlab rpm -i gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
11、使gitlab配置文件生效 gitlab-ctl reconfigure
12、启动gitlab gitlab-ctl start