gitlab的安裝和使用(一)
-
安裝
-
準備工作:
關掉防火牆
查看selinux狀態: getenforce
臨時關閉(不用重啓機器): setenforce 0
修改配置文件需要重啓機器: 修改/etc/selinux/config 文件
將SELINUX=enforcing改爲SELINUX=disabled
(注:有的時候用第一步改了之後還是會報錯, 這時候就要第二種方法重啓了) - 安裝依賴
sudo yum install curl policycoreutils openssh-server openssh-clients
sudo systemctl enable sshd
sudo systemctl start sshd
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix - 去官網下載gitlab-ce,然後把下載好的rpm放到機器上
- 安裝
rpm -i gitlab-ce-XXX.rpm -
配置啓動
sudo gitlab-ctl reconfigure第一次啓動會慢一點, 啓動成功之後訪問 , 會讓你設置root的密碼,之後登陸就可以了.
-