gitlab安装配置学习
系统版本:centos7.2
软件版本:gitlab8.5.1
1. 倚赖包安装
yum install curl policycoreutilsopenssh-server openssh-clients
systemctl enable sshd
systemctl start sshd
yum install postfix
systemctl enable postfix
systemctl start postfix
systemctl stop firewalld
systemctl stop firewalld.service
systemctl disable firewalld.service
2.下载并安装软件
[[email protected] data]# ls
gitlab gitlab-ce-8.5.1-ce.0.el7.x86_64.rpm
[[email protected] data]#rpm -ivhgitlab-ce-8.5.1-ce.0.el7.x86_64.rpm
mkdir -p /data/gitlab
touch /data/gitlab/gitlab.rb
chmod 600 /data/gitlab/gitlab.rb
[[email protected] data]#vi /data/gitlab/gitlab.rb
external_url"http://10.249.100.205"
3. 从新配置
gitlab-ctl reconfigure
4. 使用浏览器登录并修改密码
Username: root
Password: laolang123
通过浏览器访问:http://10.249.100.205
登录成功,首次登录需修改密码
5、服务打开、关闭、重启:
gitlab-ctl start
gitlab-ctl stop
gitlab-ctl restart