ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
### 安装依赖软件 `yum -y install policycoreutils openssh-server openssh-clients postfix policycoreutils-python` ### 设置postfix开机自启,并启动 **postfix支持gitlab发信功能** `systemctl enable postfix && systemctl start postfix` **如果报错:** ``` Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details. ``` **解决办法:** ``` 修改 /etc/postfix/main.cf的设置 inet_interfaces = all ``` ### 下载gitlab安装包,然后安装 **centos 7系统的下载地址:** https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7 **下载rpm包并安装:** ``` wegt https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.7.9-ce.0.el7.x86_64.rpm rpm -i gitlab-ce-12.7.9-ce.0.el7.x86_64.rpm ``` ### 修改gitlab配置文件指定服务器ip和自定义端口 `vim  /etc/gitlab/gitlab.rb` 修改`external_url`为`http://服务器ip:你想配置的端口` ### 重置并启动GitLab ``` gitlab-ctl reconfigure gitlab-ctl restart ``` ### 访问 GitLab页面