查看: 1744|回复: 0

[PHP学习] gitlab 安装自己的git服务器

发表于 2018-1-14 16:00:00
安装并配置必要的依赖关系

On CentOS 7 (and RedHat/Oracle/Scientific Linux 7), the commands below will also open HTTP and SSH access in the system firewall.

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

Next, install Postfix to send notification emails. If you want to use another solution to send emails please skip this step and configure an external SMTP server after GitLab has been installed.

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

Add the GitLab package repository and install the package

Add the GitLab package repository.

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash

sudo EXTERNAL_URL="http://gitlab.example.com" yum install -y gitlab-ee

打开地址 默认的
Username: root
Password: 5iveL!fe

3 启动gitlab gitlab-ctl reconfigure

gitlab-ctl restart

gitlab-ctl stop

查看gitlab状态 gitlab-ctl status



回复

使用道具 举报