centos7.4安装gitlab

Posted zouke1220

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos7.4安装gitlab相关的知识,希望对你有一定的参考价值。

1. 安装依赖软件
yum -y install policycoreutils openssh-server openssh-clients postfix

2.下载gitlab安装包,然后安装

centos 7系统的下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7

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

技术分享图片

3.修改gitlab配置文件指定服务器ip和自定义端口

vim  /etc/gitlab/gitlab.rb

技术分享图片

 技术分享图片

vi /etc/gitlab/gitlab.rb

技术分享图片

gitlab-ctl reconfigure
gitlab-ctl restart

4.卸载gitlab

#停止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

 

参考博文:centos7安装部署gitlab服务器

以上是关于centos7.4安装gitlab的主要内容,如果未能解决你的问题,请参考以下文章

CentOS7.4安装Gitlab10.5.1及汉化

centos7.4+GitLab部署

Git GitLab服务器社区版安装与使用

GitLab安装部署

Gitlab+Gerrit+Ldap+nginx+mysql 之Gerrit搭建与配置

Gitlab代码管理仓库安装部署