Gitlab(一)安装与配置

1、下载安装包

  下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/

  wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.9.7-ce.0.el7.x86_64.rpm

2、安装依赖,设置postfix开机自启

  yum -y install policycoreutils openssh-server openssh-clients postfix policycoreutils-python

  systemctl enable postfix && systemctl start postfix  #postfix支持gitlab发信功能

3、安装

  rpm -ivh gitlab-ce-12.9.7-ce.0.el7.x86_64.rpm

 4、修改配置文件,指定 ip、端口

  vim  /etc/gitlab/gitlab.rb 

    external_url 'http://IP:8088'

    unicorn['port'] = 8099

5、加载配置,初始化

  gitlab-ctl reconfigure

6、启动

  gitlab-ctl start

  gitlab-ctl stop

  gitlab-ctl restart

 

posted @ 2020-05-19 14:44  果园里的码农  阅读(252)  评论(0编辑  收藏  举报