yum install lokkit
yum install curl openssh-server openssh-clients postfix cronie -y
systemctl status postfix
systemctl enable postfix
lokkit -s http -s ssh
curl -sS
http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce
gitlab-ctl reconfigure
vim /etc/gitlab/gitlab.rb
#修改external_url
gitlab-ctl reconfigure
gitlab-ctl restart
vim /etc/sysconfig/iptables - A INPUT -m state --state NEW -m tcp --dport 8899 -j ACCEPT
systemctl restart iptables
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address']="smtp.qq.com"
gitlab_rails['smtp_port'] = 465
gitlab_rails['smtp_user_name'] = "495969281@qq.com"
gitlab_rails['smtp_password'] = " opxhhfssnojcbhba"
gitlab_rails['smtp_domain'] = "qq.com"
gitlab_rails['smtp_authentication'] = "login"
gitlab_rails['smtp_enable_starttls_auto'] = true
gitlab_rails['smtp_tls'] = true
user['git_user_email'] = "495969281@qq.com"
gitlab_rails['gitlab_email_from'] = '495969281@qq.com'
gitlab-ctl reconfigure
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |