阅读687 返回首页    go 人物


gitlab社区版安装

gitlab社区版安装

1.安装并配置必要的依赖关系

 

CentOS上,以下命令也将在系统防火墙中打开HTTP和SSH访问。

sudo yum install -y curl policycoreutils-python openssh-server openssh-clients

sudo systemctl enable sshd

sudo systemctl start sshd

sudo firewall-cmd --permanent --add-service=http

sudo systemctl reload firewalld

 

2.接下来,安装Postfix发送通知电子邮件。如果要使用其他解决方案发送电子邮件,请跳过此步骤,并在安装GitLab后配置外部SMTP服务器。

(注意,centos7中自带了postfix,需要先卸载原装的,然后再yum)

 

sudo yum install postfix

sudo systemctl enable postfix

sudo systemctl start postfix

3.添加GitLab软件包存储库并安装软件包

 

GitLab包存储库:curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

rpm包

yum localinstall 安装好

 

4.配置并启动GitLab

sudo gitlab-ctl reconfigure

5.浏览到主机名并登录

 

 

root。提供您之前创建的密码并登录。登录后,您可以更改用户名。

80端口冲突,若没有

vim /etc/gitlab/gitlab.rb

gitlab的地址加端口

最后更新:2017-10-21 18:33:27

  上一篇:go  阿里云服务器怎么开启或关闭8080端口?
  下一篇:go  交换机端口总结