前提

系统环境:CentOS7(RedHat/Oracle/Scientific Linux 7)

安装ssh,并配置防火墙

sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
sudo systemctl reload firewalld

安装Postfix,发送通知邮件

sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix

安装GitLab

下载GitLab的rpm包,并安装

rpm -ivh gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm

配置gitlab

gitlab-ctl reocnfigure

gitlab-ctl基本命令

gitlab-ctl status
gitlab-ctl stop
gitlab-ctl restart
ps aux | grep runsvdir

访问gitlab,只需要访问局域网主机IP10.110.13.208 即可访问gitlab主页。

修改密码为123456a? ,通过用户root登录。

【参考】

1。GitLab官网:https://about.gitlab.com/installation/#centos-7

2。 Blog:https://laravel-china.org/topics/2829/centos-7-install-gitlab-ce-community-edition-and-modify-the-default-nginx

results matching ""

    No results matching ""