gitlab的安装

1、下载rpm 安装包

(1)直接命令下载

bash 复制代码
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.6.10-ce.0.el7.x86_64.rpm

(2)直接去服务器上下载包

Index of /gitlab-ce/yum/el7/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror

2、文件提权

bash 复制代码
chmod 777 gitlab-ce-11.6.10-ce.0.el7.x86_64.rpm

3、安装

bash 复制代码
rpm -ivh gitlab-ce-11.6.10-ce.0.el7.x86_64.rpm

4、更改环境配置

打开配置文件修改external_url。改成自己机器的地址和端口号

bash 复制代码
vim /etc/gitlab/gitlab.rb

启动服务

bash 复制代码
#(每次修改完gitlab.rb文件需要执行该操作)
gitlab-ctl reconfigure
gitlab-ctl restart
gitlab-ctl status

5、查看root 的密码

bash 复制代码
vim /etc/gitlab/initial_root_password

6、登录查看

7、修改默认密码

bash 复制代码
  $ gitlab-rails console -e production
  irb> user = User.find_by(username: 'root')
  irb> user.password = 'password'
  irb> user.password_confirmation = 'password'
  irb> user.save!
  irb> exit

重启服务

bash 复制代码
gitlab-ctl restart

8、关闭防火墙

bash 复制代码
systemctl stop firewalld.service

9、永久关闭防火墙

bash 复制代码
systemctl disable firewalld.service
相关推荐
青青草原技术员灰太狼28 分钟前
Nginx的https搭建
linux·服务器·网络
xu_yule38 分钟前
网络和Linux网络-4(应用层)序列化和反序列化(网络计算器)
linux·网络
宇钶宇夕42 分钟前
三旺 INP314T 网关快速入门指南:从登录到基础配置
运维·自动化·软件工程
2***s6721 小时前
Failed to restart nginx.service Unit nginx.service not found
运维·nginx
YongCheng_Liang2 小时前
Zabbix 6.4 完整部署教程:从环境准备到监控实战
linux·运维·zabbix
小白电脑技术2 小时前
旧电脑安装流畅的系统?用虚拟机先体验一下Linux Mint!
linux·电脑
数字化顾问2 小时前
(65页PPT)大型集团物料主数据管理系统建设规划方案(附下载方式)
大数据·运维·人工智能
翼龙云_cloud2 小时前
阿里云渠道商:新手怎么操作阿里云无影云电脑?
运维·服务器·阿里云·云计算·电脑
回忆是昨天里的海3 小时前
docker存储-目录挂载
运维·docker·容器
爱吃萝卜的美羊羊4 小时前
ubuntu下国内升级ollama
linux·运维·ubuntu