centos7 安装部署gitlab


Gitlab官网地址:https://about.gitlab.com/downloads/git

 

Linux系统环境: Centos7vim

gitlab服务安装以前须要安装一些依赖包:
yum install postfix
systemctl enable postfix
systemctl start postfix浏览器

 

1、安装最新版本的gitlab
yum install git gitlab-ce
vim /etc/yum.repos.d/gitlab-ce.repo
[gitlab-ce]
name=gitlab-ce
baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key
sudo gitlab-ctl reconfigure
sudo gitlab-ctl restartgitlab

2、安装指定版本的gitlabpost

例以下载安装10.8.2版本的gitlab
下载地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.8.2-ce.0.el7.x86_64.rpmurl

wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm
rpm -i gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm
sudo gitlab-ctl reconfigure
sudo gitlab-ctl startrest

 

3、卸载gitlab
一、# sudo gitlab-ctl stop        ### 中止gitlab
二、# sudo rpm -e gitlab-ce    ### 卸载gitlab
三、查看gitlab进程进程

  # ps -elf  | grep gitlabip

  # kill -9 进程号内存

四、删除gitlab文件
find / -name gitlab | xargs rm -rf   ### 删除全部包含gitlab的文件及目录

 

4、安装遇到的错误信息

浏览器上输入ip地址,直接进入gitlab页面,若是刷新不出来,报错一、找不到服务缘由:防火墙开启,阻挡了外面的链接,关闭firewall便可,命令systemctl stop firewalld 二、505错误内存过小,删除一些无用的文件便可三、502错误端口被占用,修改默认端口

相关文章
相关标签/搜索