CentOS7服务器上搭建Gitlab
Gitlab如何搭建? 安装gitlab所需要的依赖 sudo yum install curl policycoreutils openssh-server openssh-clients 使sshd服务自动启动 sudo systemctl enable sshd 启动sshd服务 sudo systemctl start sshd 安装邮件服务器 sudo yum install postfix 使邮件服务器postfix自启动 sudo systemctl enable postfix 启动邮件服务器postfix sudo systemctl start postfix 开放防火墙 sudo firewall-cmd --permanent --add-service=http 重启防火墙 如何启动GitLab? 启动,配置 sudo gitlab-ctl reconfigure 修改gitlab配置文件指定服务器ip和自定义端口 vim /etc/gitlab/gitlab.rb 修改 extenal_url="" 为自己服务器的访问ip+端口或域名 ps:注意这里设置的端口不能被占用,默认是8080端口,可以定义其它端口,并在防火墙设置开放相对应端口。 firewall-cmd --permanent --add-port=8888/tcp systemctl