### 安裝依賴軟件
`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頁面
- 前端
- js學習
- 瀏覽器默認樣式
- webpack+vue
- 個人常用webpack打包依賴
- vue使用學習
- vue源碼學習
- webpack5配置babel
- 瀑布流布局
- 個人常用庫
- 其他
- centos搭建ss服務器
- ios配置Universal Links
- pdf2htmlEX使用
- python
- python操作redis
- linux部署Django
- dateutil庫(datetime模塊的擴展).md
- docker部署django
- mysql
- 基礎知識
- 常用函數
- join關聯查詢技巧
- linux
- shell備份mysql數據庫
- crontab定時任務
- centos7安裝部署gitlab服務器
- nginx安裝配置
- 收藏夾
- python
- 博客
- 工具
- 其他
- 前端