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