首页 > 其他分享 >gitlab-ce-15.9.4安装

gitlab-ce-15.9.4安装

时间:2023-04-11 17:12:53浏览次数:43  
标签:run log 15.9 gitlab pid ce password root

如果需要汉化,请根据汉化来选择版本

汉化包下载地址:https://gitlab.com/xhang/gitlab/

1.依赖包安装

yum -y install policycoreutils openssh-server openssh-clients postfix

2.下载gitlab-ce并安装

# 下载安装包
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-15.9.4-ce.0.el7.x86_64.rpm
rpm -ivh gitlab-ce-15.9.4-ce.0.el7.x86_64.rpm

# 修改gitlab配置文件指定服务器ip和自定义端口,如果有需要可以修改数据存放路径
# 自定义IP和端口:
external_url 'http://0.0.0.0:9981'

# 修改存储路径
# gitlab默认存储路径:/var/opt/gitlab/git-data
# 修改为新路径:/db/gitlab/git-data
git_data_dirs({
  "default" => {
    "path" => "/db/gitlab/git-data",
    "failure_count_threshold" => "10",
    "failure_wait_time" => "30",
    "failure_reset_time" => "1800",
    "storage_timeout" => "30"
   }
})

# 使用gitlab-ctl reconfigure 自动配置,并安装数据库,初始化信息
gitlab-ctl reconfigure
Notes:
Default admin account has been configured with following details:
Username: root
Password: You didn't opt-in to print initial root password to STDOUT.
Password stored to /etc/gitlab/initial_root_password. This file will be cleaned up in first reconfigure run after 24 hours.

NOTE: Because these credentials might be present in your log files in plain text, it is highly recommended to reset the password following 
https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password. gitlab Reconfigured!

# 修改初始密码

gitlab-rake "gitlab:password:reset"
Enter username: root
Enter password: 
Confirm password: 
Password successfully updated for user with username root.

3.查看命令

# 检查状态
[root@gitlab gitlab]# gitlab-ctl status
run: alertmanager: (pid 1598) 378s; run: log: (pid 16733) 3104s
run: gitaly: (pid 1635) 375s; run: log: (pid 15387) 3247s
run: gitlab-exporter: (pid 1591) 379s; run: log: (pid 16598) 3124s
run: gitlab-kas: (pid 1571) 381s; run: log: (pid 15754) 3228s
run: gitlab-workhorse: (pid 1582) 380s; run: log: (pid 16367) 3140s
run: logrotate: (pid 383) 498s; run: log: (pid 15270) 3259s
run: nginx: (pid 1247) 417s; run: log: (pid 16425) 3133s
run: node-exporter: (pid 1275) 416s; run: log: (pid 16457) 3130s
run: postgres-exporter: (pid 1626) 378s; run: log: (pid 16849) 3099s
run: postgresql: (pid 461) 490s; run: log: (pid 15586) 3236s
run: prometheus: (pid 1309) 411s; run: log: (pid 16676) 3110s
run: puma: (pid 1146) 421s; run: log: (pid 16259) 3154s
run: redis: (pid 394) 496s; run: log: (pid 15300) 3253s
run: redis-exporter: (pid 1295) 412s; run: log: (pid 16622) 3116s
run: sidekiq: (pid 1154) 420s; run: log: (pid 16292) 3146s

# 检查问题
[root@gitlab gitlab]# gitlab-rake gitlab:check SANITIZE=true --trace

# 记得注意端口,如果没问题,访问出现502的问题就再刷新下

4.gitlab服务

gitlab-ctl stop --停止服务
gitlab-ctl reconfigure --启动服务
gitlab-ctl start --启动所有gitlab组件
gitlab-ctl restart 重启

5.访问页面

http://192.168.1.1:9981/

6.页面配置

7.项目检出,上传,修改

标签:run,log,15.9,gitlab,pid,ce,password,root
From: https://www.cnblogs.com/yangmeichong/p/17306869.html

相关文章

  • oracle启动监听后提示no services的解决办法
    0x00问题经常安装完后,dbca建库,netca增加监听后,命令行提示:Thelistenersupportsnoservices0x01解决方法altersystemsetlocal_listener="(address=(PROTOCOL=TCP)(HOST=你的IP地址)(PORT=1521))";altersystemregister;0x02查看监听lsnrctlstatus0x0......
  • Java实现Excel导入和导出,看这一篇就够了(珍藏版)
    前言Java实现表格的相关操作进行了封装,本次封装是基于POI的二次开发,最终使用只需要调用一个工具类中的方法,就能满足业务中绝大部门的导入和导出需求。1.功能测试1.1测试准备在做测试前,我们需要將【2.环境准备】中的四个文件拷贝在工程里(如:我这里均放在了com.zyq.util.exc......
  • CentOS安装Minio(rpm和docker方式)
    RPM方式:1、下载minio  中国镜像地址:https://dl.minio.org.cn/server/minio/。我下载的版本是:minio-20230407052858.0.0.x86_64.rpm2、安装rpm文件[email protected]:/home#将文件从windows复制到linux主机中rpm-ivhminio-2......
  • 封装导出Excel文件
    utils/exportexcel.jsimport{parseTime}from'@/utils/format';import{Message}from'element-ui';/***导出Excel文件*@param{*}data文件数据流*@param{String}filePrefix文件前缀名*@param{String}fileSuffix文件后缀名*/exportfuncti......
  • 在EXCEL和WPS表格里实现邮件合并功能
    在EXCEL和WPS表格里实现邮件合并功能2020/3/2122:06:09 0人评论 10635次OFFICE邮件合并:在Office中,先建立两个文档:一个WORD包括所有文件共有内容的主文档(比如未填写的信封等)和一个包括变化信息的数据源EXCEL(填写的收件人、发件人、邮编等),然后使用邮件合并功能在主文档中插入......
  • 踩坑事件之@Autowired与@Resource引发的内存溢出
    java.lang.StackOverflowError:null(栈溢出异常)@ServicepublicclassSysUserServiceImplextendsServiceImpl<SysUserMapper,SysUser>implementsISysUserService{@AutowiredprivateAuthenticationManagerauthenticationManager;@Override......
  • (KMP 1.1)hdu 1711 Number Sequence(KMP的简单应用——求pattern在text中第一次出现的
    题目:NumberSequenceTimeLimit:10000/5000MS(Java/Others)    MemoryLimit:32768/32768K(Java/Others)TotalSubmission(s):12902    AcceptedSubmission(s):5845ProblemDescriptionGiventwosequencesofnumbers:a[1],a[2],......,a[N],andb[1......
  • Glide 加载圆角图片 CenterCrop
    /***加载圆角图片。并且充满屏幕*/funloadCropImageRadius(iv:ImageView,bkgColor:String?,radius:Int,path:String){valbitMap=ViewTool.createBmp4Rgb(bkgColor)valplaceholderDrawable=BitmapDrawable(iv.resources,bitMap......
  • 扒一扒Nacos、OpenFeign、Ribbon、loadbalancer组件协调工作的原理
    大家好,我是三友~~前几天有个大兄弟问了我一个问题,注册中心要集成SpringCloud,想实现SpringCloud的负载均衡,需要实现哪些接口和规范。既然这个兄弟问到我了,而我又刚好知道,这不得好好写一篇文章来回答这个问题,虽然在后面的聊天中我已经回答过了。接下来本文就以探究一下Nacos、O......
  • 解决NewBing报错【Sorry, looks like your network settings are preventing access t
    开全局,使用浏览器插件ProxySwitchyOmega进行代理1、x2ray软件配置2、ProxySwitchyOmega配置将以下规则加入配置:*.msftconnecttest.com+proxy*.1drv+proxy*.microsoft+proxy*.aadrm.com+proxy*.acompli.com+proxy*.acompli.net+proxy*.aka.ms+proxy*.aka......