栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

Gilib 搭建

Gilib 搭建

Gilib 搭建
  • 安装
  • 申请证书

安装

centos8: 推荐cpu核心数量为4核,推荐内存大小为4GB。

vim /etc/yum.repos.d/gitlab-ce.repo
[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1
yum -y install policycoreutils openssh-server openssh-clients postfix  #安装相关依赖
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash #添加GitLab包存储库。
yum install -y gitlab-ee   #安装最新Gitlib

vim /etc/gitlab/gitlab.rb   #x修改服务器地址,改成自己IP
external_url = '你的IP:端口'

gitlab-ctl reconfigure  #重启服务

cat /etc/gitlab/initial_root_password  #查看root的密码
gitlab-rake "gitlab:password:reset"  #重置密码命令,会提示输入用户名,密码

访问:IP:端口

GitLab常用命令
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        # 查看日志;
申请证书


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/583180.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号