当前位置:   article > 正文

LInux上搭建GitLab详细步骤_linux搭建gitlab

linux搭建gitlab

查看内存是否符合条件

下载最新的yum源和epel源

yum源:

epel源:

清除缓存

创建数据源

安装依赖

配置镜像

安装gitlab必须是你linux的端口192.168. * . * 

启动 访问

GitLab使用命令 

登录并修改密码 


查看内存是否符合条件

内存必须大于3G以上

  1. [root@VM-16-2-centos ~]# free -m
  2. total used free shared buff/cache available
  3. Mem: 7725 231 7262 0 231 7260
  4. Swap: 0 0 0

下载最新的yum源和epel源

yum源:

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo

epel源:

 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

安装gitlab必须是你linux的端口192.168. * . * 

EXTERNAL_URL="http://192.168.216.133" yum install -y gitlab-jh

启动 访问

gitlab-ctl start

GitLab使用命令 

  1. 1、gitlab-ctl help # 命令帮助
  2. 2、gitlab-ctl reconfigure # 重新配置
  3. 3、gitlab-ctl show-config # 显示配置
  4. 4、gitlab-ctl uninstall # 卸载
  5. 5、gitlab-ctl kill # 杀服务
  6. 6、gitlab-ctl restart # 重启服务
  7. 7、gitlab-ctl service-list # 服务清单
  8. 8、gitlab-ctl start # 启动服务
  9. 9、gitlab-ctl status # 查看状态
  10. 10、gitlab-ctl stop # 停止服务
  11. 11、gitlab-ctl tail # 查看所有启动服务的服务日志

登录并修改密码 

访问网址:http://192.168.216.133

用户名:root
密码:密码存在/etc/gitlab/initail_root_password中,24小时后会过期,所以登陆后需要修改密码。

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

 

 

重新登录验证新密码是否生效

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/206838
推荐阅读
相关标签
  

闽ICP备14008679号