安装gitlab必须是你linux的端口192.168. * . *
查看内存是否符合条件
内存必须大于3G以上
[root@VM-16-2-centos ~]# free -m
total used free shared buff/cache available
Mem: 7725 231 7262 0 231 7260
Swap: 0 0 0
下载最新的yum源和epel源
yum源:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repoepel源:
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-8.repo清除缓存
yum clean all 创建数据源
yum makecache 安装依赖
yum install -y curl policycoreutils-python openssh-server perlsystemctl enable sshdsystemctl start sshd配置镜像
curl -fsSL https://packages.gitlab.cn/repository/raw/scripts/setup.sh | /bin/bash安装gitlab必须是你linux的端口192.168. * . *
EXTERNAL_URL="http://192.168.216.133" yum install -y gitlab-jh启动 访问
gitlab-ctl startGitLab使用命令
1、gitlab-ctl help # 命令帮助
2、gitlab-ctl reconfigure # 重新配置
3、gitlab-ctl show-config # 显示配置
4、gitlab-ctl uninstall # 卸载
5、gitlab-ctl kill # 杀服务
6、gitlab-ctl restart # 重启服务
7、gitlab-ctl service-list # 服务清单
8、gitlab-ctl start # 启动服务
9、gitlab-ctl status # 查看状态
10、gitlab-ctl stop # 停止服务
11、gitlab-ctl tail # 查看所有启动服务的服务日志登录并修改密码
访问网址:http://192.168.216.133
用户名:root
密码:密码存在/etc/gitlab/initail_root_password中,24小时后会过期,所以登陆后需要修改密码。

开始修改密码:主菜单——>管理员——>用户——>编辑密码——>保存更改




重新登录验证新密码是否生效
版权声明:本文为qq_55629923原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。