gitlab环境搭建

企业级的git管理程序.最好用的之一吧.估计其它的也得叫之二. 怎么搭建呢? 2G以上配置的机器才可以搞. . 如下

安装需要注意的是.如果开了80端口,8080的需要修改配置文件  下面会提到

1.安装
#配置yum源

[Shell] 纯文本查看 复制代码
1
2
3
curl -sS http://packages.gitlab.cc/install/gitlab-ce/script.rpm.sh | sudo bash
#安装 大约300m左右
yum install gitlab-ce -y


     *.                  *.
      ***                 ***
     *****               *****
    .******             *******
    ********            ********
   ,,,,,,,,,***********,,,,,,,,,
  ,,,,,,,,,,,*********,,,,,,,,,,,
  .,,,,,,,,,,,*******,,,,,,,,,,,,
      ,,,,,,,,,*****,,,,,,,,,.
         ,,,,,,,****,,,,,,
            .,,,***,,,,
                ,*,.

     _______ __  __          __
    / ____(_) /_/ /   ____ _/ /_
   / / __/ / __/ /   / __ `/ __
  / /_/ / / /_/ /___/ /_/ / /_/ /
  \____/_/\__/_____/\__,_/_.___/


gitlab: Thank you for installing GitLab!


2.修改配置

[Shell] 纯文本查看 复制代码
1
vi /etc/gitlab/gitlab.rb


#找到下面这行 位置就在最前面

external_url 'http://gitlab.example.com'


我把它的登录端口修改为88 注意要带http://

external_url 'http://域名:88'


再修改

# user['username'] = "git"
# user['group'] = "git"


user['username'] = "gitlab"
user['group'] = "gitlab"
git_data_dirs 是默认路径,如果需要则修改

然后保存.

执行  

[Shell] 纯文本查看 复制代码
1
gitlab-ctl reconfigure



注意每次修改config都需要执行上面的代码. 然后 gitlab-ctl start 启动  restart重启  stop停止

第一次访问会让修改密码.用户名是 root

原文地址:https://www.cnblogs.com/ghjbk/p/7649360.html