yum install -y curl policycoreutils-python openssh-server
systemctl enable sshd
systemctl start sshd
yum install firewalld systemd -y
service firewalld start
pemmanent表示永久生效,若不加--permanent系統下次啓動後就會失效python
firewall-cmd --permanent --add-service=http
systemctl reload firewalld
yum install postfix
systemctl enable postfix
systemctl start postfix
yum -y install wget
yum install vim -y
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
該步驟安裝時間較長,請耐心等待git
rpm -i gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
vim /etc/gitlab/gitlab.rb
找到 external_url 修改其中的值爲具體的訪問地址vim
external_url 'http://192.168.1.1'
gitlab-ctl reconfigure
gitlab-ctl restart
訪問地址爲上面 external_url 所配置的地址 http://192.168.1.1 第一次登陸的時候須要進行初始化一下密碼服務器
參考原文地址ssh