GitLab 安装(推荐)
参考文档:https://about.gitlab.com/installation/#centos-7
基础环境
# uname -r
3.10.0-229.el7.x86_64
[iyunv@node1
~]# uname -a
Linux node1
3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
关闭防火墙
# systemctl stop firewalld
关闭SElinux
# vim /etc/selinux/config
SELINUX
=disabled #改为 disabled# getenforce Disabled#查看SElinux状态
主机IP
10.0.0.20
安装并配置必要的依赖关系
在CentOS上,以下命令也将在系统防火墙中打开HTTP和SSH访问
#yum install -y curl policycoreutils openssh-server openssh-clients
[iyunv@node1
~]# systemctl enable sshd
[iyunv@node1
~]# systemctl start sshd
[iyunv@node1
~]# firewall-cmd --permanent --add-service=http
如果开放了防火墙重新加载防火墙
[iyunv@node1
~]#systemctl>
添加GitLab包服务器并安装包
# wget https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-9.5.2-ce.0.el7.x86_64.rpm
# rpm -ivh gitlab-ce-9.5.2-ce.0.el7.x86_64.rpm
配置并启动GitLab
# gitlab-ctl reconfigure# 编译配置
[iyunv@node1
~]# gitlab-ctl start
[iyunv@node1
~]# gitlab-ctl status
通过浏览器访问
访问服务器IP地址:10.0.0.20
在第一次访问时,将被重定向到密码重置屏幕,以提供初始管理员帐户的密码。输入您想要的密码,将被重定向回登录屏幕。
默认帐户的用户名是root。提供之前创建的密码并登录,登录后可以更改用户名。
页:
[1]