当前位置: 首页 > news >正文

gitlab下载及安装

目录

1、gitlab下载

2、gitlab安装

3、完全卸载GitLab


1、gitlab下载

首页:https://about.gitlab.com
安装:https://about.gitlab.com/install
rpm包:https://packages.gitlab.com/gitlab/gitlab-ce

2、gitlab安装

 2.1 CentOS 7 
rpm -ivh /opt/gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm
sudo yum install -y curl policycoreutils-python openssh-server
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
sudo systemctl reload firewalld

sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo EXTERNAL_URL="http://gitlab.example.com" yum install -y gitlab-ce


2.2 CentOS 6
rpm -ivh /opt/gitlab-ce-10.8.2-ce.0.el7.x86_64.rpm
sudo yum install -y curl policycoreutils-python openssh-server cronie 
yum install lokkit
sudo lokkit -s http -s ssh 
sudo yum install postfix 
sudo service postfix start 
sudo chkconfig postfix on 
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash 
sudo EXTERNAL_URL="http://gitlab.example.com" yum -y install gitlab-ce

当前步骤完成后重启。


2.3 初始化配置
sudo gitlab-ctl reconfigure 
sudo gitlab-ctl start    # 启动所有 gitlab 组件;
sudo gitlab-ctl stop        # 停止所有 gitlab 组件;
sudo gitlab-ctl restart        # 重启所有 gitlab 组件;
sudo gitlab-ctl status        # 查看服务状态;
sudo gitlab-ctl reconfigure        # 启动服务;
sudo vim /etc/gitlab/gitlab.rb        # 修改默认的配置文件;
gitlab-rake gitlab:check SANITIZE=true --trace    # 检查gitlab;
sudo gitlab-ctl tail        # 查看日志;


是unicorn服务与tomcat端口冲突,配置下unicorn使用端口应该就可以了
vi /etc/gitlab/gitlab.rb
unicorn['port'] = 9090


访问 Linux 服务器 IP 地址即可,如果想访问 EXTERNAL_URL 指定的域名还需要配置 域名服务器或本地 hosts 文件。 初次登录时需要为 gitlab 的 root 用户设置密码。
应该会需要停止防火墙服务:


3、完全卸载GitLab

3.1 停止gitlab
sudo gitlab-ctl stop

3.2 卸载gitlab

(这块注意了,看看是gitlab-ce版本还是gitlab-ee版本,别写错误了)    
sudo rpm -e gitlab-ce

3.3 查看gitlab进程    
ps -ef | grep gitlab
  #杀掉第一个守护进程(runsvdir -P /opt/gitlab/service log)
 
kill -9 4473
#再次查看gitlab进程是否存在

3.4 删除gitlab文件
find / -name *gitlab*|xargs rm -rf 删除所有包含gitlab的文件及目录
find / -name gitlab |xargs rm -rf 
删除gitlab-ctl uninstall时自动在root下备份的配置文件(ls /root/gitlab* 看看有没有,有也删除)

http://www.lryc.cn/news/371339.html

相关文章:

  • YOLOv10改进|采用ADown降采样模块有效融合
  • libGL.so.1: cannot open shared object file: No such file or directory
  • 2024年消防设施操作员考试题库及答案
  • 30字以内免费翻译维吾尔语,汉维翻译工具推荐,维吾尔文字母OCR识别神器《维汉翻译通》App!
  • 省市县选择三级联动(使用高德API实现)
  • 【数据结构(邓俊辉)学习笔记】图06——最小支撑树
  • 海豚调度清理:使用 API 轻松清理历史工作流实例以及日志文件
  • python怎么显示行号
  • pytorch中,load_state_dict和torch.load的区别?
  • ObjectARX打印当前图纸为PDF,无延迟(亲测有效)
  • torch.squeeze() dim=1 dim=-1 dim=2
  • 智慧环保一体化平台简介
  • idea在空工程中添加新模块并测试的步骤
  • HCIE-QOS基本原理
  • pycharm基本使用(常用快捷键)
  • 机器学习--回归模型和分类模型常用损失函数总结(详细)
  • 企业选择数字工厂管理系统供应商的标准是什么
  • 京准电钟|基于纳秒级的GPS北斗卫星授时服务器
  • Flutter知识点
  • 2024-06-12 问AI: 在大语言模型中,什么是Jailbreak漏洞?
  • Vue22-v-model收集表单数据
  • 【深度学习】深入解码:提升NLP生成文本的策略与参数详解
  • Petalinux由于网络原因产生的编译错误(2)--Fetcher failure:Unable to find file
  • 随手记:商品信息过多,展开收起功能
  • uniapp上传头像并裁剪图片
  • 9.1.3 简单介绍单阶段模型YOLO、YOLOv2、YOLO9000、YOLOv3的发展过程
  • 英智教育智能体,AI Agent赋能教育培训行业数字化升级
  • 什么是电脑监控软件?六款知名又实用的电脑监控软件
  • 小程序名片怎么生成?AI名片生成器源码系统 为企业店铺创建自己的数字名片
  • 浅谈PMP:项目管理的专业化认证