1.安装依赖包
注释:权限不够加sudo
sudo yum install -y curl policycoreutils-python openssh-server
2. Postfix 设置
2.1安装
yum install postfix
2.2设置开机自启
systemctl enable postfix
2.3修改配置
编辑main.cf文件
vi /etc/postfix/main.cf
inet_interfaces = localhost 修改为 inet_interfaces = all
修改后
保存退出文件
2.3启动服务
3.GitLab安装配置
3.1添加GitLab软件包仓库
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
3.2安装GitLab
sudo EXTERNAL_URL="GitLab服务器的公网IP地址" yum install -y gitlab-ce
3.3安装完成
访问地址:安装配置的 GitLab服务器的公网IP地址地址
注意事项:如果安装完成访问不到则检查端口是否放行,或者关闭防火墙
关闭防火墙
systemctl stop firewalld
4.登录
首次登录请使用root账号进行登录
查看root初始化密码
cat /etc/gitlab/initial_root_password
登录成功