1.安装依赖包
sudo yum install -y curl policycoreutils-python openssh-server
2.设置SSH开机自启动并启动SSH服务。
sudo systemctl enable sshd
sudo systemctl start sshd
3.安装Postfix来发送通知邮件
sudo yum install postfix
4.设置Postfix开机自启动。
sudo systemctl enable postfix
5.启动Postfix服务
-
运行命令
vim /etc/postfix/main.cf
打开main.cf文件,找到如下内容:
inet_interface = localhost -
按 i 进入编辑模式
-
将这行代码改为inet_interfaces = all,并保存
-
运行命令
sudo systemctl start postfix
启动Postfix服务。
6.添加GitLab软件包仓库。
curl https://packages.gitlab