gitlab下载安装及部署

初次操作成功,记录一下

 
1. 安装依赖软件
  yum -y install policycoreutils openssh-server openssh-clients postfix
 
2.设置postfix开机自启,并启动,postfix支持gitlab发信功能
  systemctl enable postfix && systemctl start postfix
 
3.下载gitlab安装包,然后安装
 
  rpm -ivh gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm
 
4.修改gitlab配置文件指定服务器ip和自定义端口      --> 更改gitlab默认端口
  vim  /etc/gitlab/gitlab.rb 
  修改内容:external_url   后改为自己的http://ip:端口  ;    unicorn['port'] = 28080  修改 unicorn['port'] 端口     
  !注意,两个端口不能一样

 

 5: 使用gitlab-ctl reconfigure 自动配置,并安装数据库,初始化信息,如下所示(第一次使用配置时间较长):
命令:gitlab-ctl reconfigure 

 6: 使用gitlab-ctl start 启动gitlab服务。
命令:gitlab-ctl start 
  1.  sudo gitlab-ctl  stop --停止服务
  2.  sudo gitlab-ctl reconfigure  --启动服务
  3.  sudo gitlab-ctl  start --启动所有gitlab组件

7:在浏览器中输入 http://ip:端口/ ,然后 change password: ,并使用root用户登录 即可 (后续动作根据提示操作)


 
 

 

转载于:https://www.cnblogs.com/hero123/p/10559201.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值