zxcvb12 发表于 2019-2-15 14:29:57

centos7 gitlab搭建

  1. 安装依赖
  # yum -y install policycoreutils openssh-server openssh-clients postfix
  # yum -y install policycoreutils-python
  2.下载安装
  # wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
  # rpm -ivh gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
http://blog.运维网.com/calabash/C:/Users/Administrator/AppData/Local/YNote/data/wangluyu0326@163.com/f94ff32f82d94440aceccab35cc6ef86/d8b3c9815a104e14a559ec8839de6d37.jpg完成会有一个图案
  3. 修改配置文件,端口号最好修改,防止冲突
  # vim /etc/gitlab/gitlab.rb
  ....
  580 # unicorn['listen'] = '127.0.0.1'
  581 unicorn['port'] = 8888
  4. 初始化
  gitlab-ctl reconfigure
  5. 重启
  gitlab-ctl restart
  6. 其他基本命令
  #停止gitlab
  gitlab-ctl stop
  #卸载gitlab
  rpm -e gitlab-ce
  #查看gitlab进程
  ps aux | grep gitlab
  #杀掉gitlab进程
  kill -9 4473
  #删除gitlab文件
  find / -name gitlab|xargs rm -rf
  7. 设置超级管理员账户
  # cd /opt/gitlab/bin/
  # gitlab-rails console production



页: [1]
查看完整版本: centos7 gitlab搭建