赞
踩
安装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
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
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 perl
systemctl enable sshd
systemctl start sshd
curl -fsSL https://packages.gitlab.cn/repository/raw/scripts/setup.sh | /bin/bash
EXTERNAL_URL="http://192.168.216.133" yum install -y gitlab-jh
gitlab-ctl start
- 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小时后会过期,所以登陆后需要修改密码。
开始修改密码:主菜单——>管理员——>用户——>编辑密码——>保存更改
重新登录验证新密码是否生效
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。