当前位置:首页 > 操作系统 > Linux

Linux—Ubuntu14.0.5安装gitlab

1.下载gitlab-ce,到该连接选择版本   https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/ubuntu/pool/trusty/main/g/gitlab-ce/

2.下载且安装对应的依赖包

apt-get install curl openssh-server ca-certificates postfix

#选中LOCAL ONLY  ,输入名称,点击OK

3.安装下载好的gitlab-ce

sudo dpkg -i  gitlab-ce_7.10.5~omnibus-1_amd64.deb  #gitlab的版本

4.配置安装好的gitlab-ce的

vim /etc/gitlab/gitlab.rb #打开配置文件

external_url http://*****:8081#修改成自己到其他机器要访问的IP

#找到  GitLab Unicorn 下的  unicorn[port] = 80 修改成  
  unicorn[port] = 9090

5.是配置文件生效

sudo gitlab-ctl reconfigure#

6.配置文件不生效则启动该语句

sudo /etc/init.d/postfix restart

7.gitlab的启动,停止,重启

            # Start all GitLab components  启动
sudo gitlab-ctl start

# Stop all GitLab components    停止
sudo gitlab-ctl stop

# Restart all GitLab components   重启
sudo gitlab-ctl restart
            

8.登陆访问gitlab,校验gitlab是否成功:

http://*****:8081

 

原文:https://www.cnblogs.com/yvanBk/p/9709158.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐