centos6 安装 gitlab 官网安装步骤

官网地址https://about.gitlab.com/install/#centos-6

1. Install and configure the necessary dependencies

 

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

以下命令是在系统防火墙打开http 和ssh 

sudo yum install -y curl policycoreutils-python openssh-server cronie
sudo lokkit -s http -s ssh

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.

下一步,安装Postfix 去发通知邮件,如果你想用其他方法去发通知请跳过这步。在gitlab安装完成后安装一个扩展的SMTP服务

sudo yum install postfix
sudo service postfix start
sudo chkconfig postfix on

 

During Postfix installation a configuration screen may appear. Select 'Internet Site' and press enter. Use your server's external DNS for 'mail name' and press enter. If additional screens appear, continue to press enter to accept the defaults.

当Postfix在安装时,可能会出现一个配置提示,请选择你的网址和请按回车。请用你服务器对外的DNS做为邮件名同时按回车。如果还有另外的弹框出现,继续按回车接受默认配置。

2. Add the GitLab package repository and install the package

Add the GitLab package repository.

下载gitlab包

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

 

Next, install the GitLab package. Change https://gitlab.example.com to the URL at which you want to access your GitLab instance. Installation will automatically configure and start GitLab at that URL.

接下来,安装gitlab包,将配置里的https://gitlab.example.com 修改成你的gitlab地址。安装程序会自动配置,同时可以通过这url访问启动的gitlab

For https:// URLs GitLab will automatically request a certificate with Let's Encrypt, which requires inbound HTTP access and a valid hostname. You can also use your own certificate or just use http://.

例如https:// URLs  GitLab会自动要求一个加密证书,这证书需要开通http和一个有效的主机名,你也可以用我们的证书或者只是用http://

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

3. Browse to the hostname and login

On your first visit, you'll be redirected to a password reset screen. Provide the password for the initial administrator account and you will be redirected back to the login screen. Use the default account's username root to login.

3.浏览主机名和登录

在你第一次访问时,你将被重定向到一个密码重置页面。修改初始超管账号的密码后会重定向到登录页面。用默认账号root登录

See our documentation for detailed instructions on installing and configuration.

4. Set up your communication preferences

Visit our email subscription preference center to let us know when to communicate with you. We have an explicit email opt-in policy so you have complete control over what and how often we send you emails.

Twice a month, we send out the GitLab news you need to know, including new features, integrations, docs, and behind the scenes stories from our dev teams. For critical security updates related to bugs and system performance, sign up for our dedicated security newsletter.

IMPORTANT NOTE: If you do not opt-in to the security newsletter, you will not receive security alerts.

 

 

使用

https://blog.csdn.net/music0ant/article/details/78641254

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值