id: 6d4de34ff3ca4f019c821ecbb5986ea3
parent_id: 
item_type: 1
item_id: 3c221494674f48db8a610540e57892fb
item_updated_time: 1764365022745
title_diff: "[{\"diffs\":[[1,\"搭建Gitlab私有仓库\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":12}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>搭建Gitlab私有仓库</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <meta name=\\\"content-class\\\" content=\\\"yinxiang.peso.superNote\\\"/>\\\r\\\n  <meta name=\\\"application-data:yinxiang.noteLayout\\\" content=\\\"{\\\"lineSpace\\\":\\\"recommend\\\",\\\"paragraphSpace\\\":\\\"recommend\\\"}\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"37257\\\"></a>\\\r\\\n<h1>搭建Gitlab私有仓库</h1>\\\r\\\n\\\r\\\n<div><span style=\\\"margin:0px;\\\"><div style=\\\"padding:8px 0px;margin:8px auto;max-width:700px;\\\"> <div><span></span></div>\\\n<p></p>\\\n<div style=\\\"--en-blockquote:true;box-sizing: border-box; padding-left: 19px; padding-top: 6px; padding-bottom: 6px; border-left: 3px solid #b4c0cc; background-position: initial initial; background-repeat: initial initial; margin-top: 6px\\\"><div>原文链接: <a href=\\\"http://mp.weixin.qq.com/s?__biz=MzkwMTY2NzQwNQ==&amp;mid=2247484291&amp;idx=1&amp;sn=7d051798f78ed89a5dc521c8ff2e13ec&amp;chksm=c1358dbf2324645522ab8019ac702e393994f286e485fb93d65b54506cfa1102a9921efde6cb&amp;mpshare=1&amp;scene=1&amp;srcid=01208aFdrfIpc5qr8sENpfWt&amp;sharer_shareinfo=d5d59c493a909b1f04e24b0511960c42&amp;sharer_shareinfo_first=d5d59c493a909b1f04e24b0511960c42#rd\\\"><span>http://mp.weixin.qq.com/s?__biz=MzkwMTY2NzQwNQ==&amp;mid=2247484...</span></a></div></div>\\\n<p></p>\\\n<div><span></span></div>\\\n<div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><h1 style=\\\"-webkit-tap-highlight-color:transparent;margin:0\\\"> 搭建Gitlab私有仓库 </h1><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;position:relative\\\">原创</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> sowler </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><a style=\\\"-webkit-tap-highlight-color:transparent;position:relative\\\"> sowler </a></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><em style=\\\"-webkit-tap-highlight-color:transparent\\\"></em></span></div><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:0;color:rgb(10,10,10);font-family:ui-sans-serif,system-ui,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Noto Color Emoji&quot;;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;white-space:normal;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;font-size:0;line-height:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> </span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(10,10,10);font-size:14px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;white-space:normal;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;\\\"><h1 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0 0 2px;border-style:solid;border-bottom-color:rgb(15,76,129);font-size:16.8px;font-weight:bold;margin:2em auto 1em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">1、下载gitlab</span></h1><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">首先在 </span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">/etc/yum.repos.d/</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">目录下配置</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">下载镜像源。</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 进入目录 /etc/yum.repos.d/</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">cd</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> /etc/yum.repos.d/</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 创建文件 gitlab-ce.repo </span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">vim gitlab-ce.repo</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 添加以下内容</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">[gitlab-ce]</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">name=gitlab-ce</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">baseurl=https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gpgcheck=0</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">enabled=1</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 清空缓存 &amp;&amp; 更新缓存</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">yum clean all &amp;&amp; yum makecache</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 配置成功后下载gitlab</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">yum install -y  gitlab-ce-16.9.9-ce.0.el7.x86_64</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 下载最新版</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">yum install -y gitlab-ce </span></div></pre><h1 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0 0 2px;border-style:solid;border-bottom-color:rgb(15,76,129);font-size:16.8px;font-weight:bold;margin:2em auto 1em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2、安装配置</span></h1><h2 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-size:16.8px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2.1、修改配置文件</span></h2><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">#修改配置文件</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">vim /etc/gitlab/gitlab.rb</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 修改访问路径：</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">external_url </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'http://xxx.xxx.xxx.xxx:9010'</span></span></div></pre><h2 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-size:16.8px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2.2、启动</span></h2><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 要使用命令重载一下配置文件</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl reconfigure </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 重新启动</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl restart</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 查看各个组件状态</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl status</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 输出以下信息启动成功</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">run: alertmanager: (pid 24037) 413s; run: </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">log</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: (pid 23539) 470s</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">run: gitaly: (pid 23986) 417s; run: </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">log</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: (pid 22354) 613s</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">run: gitlab-exporter: (pid 23981) 417s; run: </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">log</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: (pid 23371) 489s</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">run: gitlab-kas: (pid 22620) 598s; run: </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">log</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: (pid 22635) 597s</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">run: gitlab-workhorse: (pid 23958) 419s; run: </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">log</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: (pid 23183) 509s</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">run: logrotate: (pid 22194) 628s; run: </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">log</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: (pid 22233) 625s</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">run: nginx: (pid 23965) 419s; run: </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">log</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: (pid 23260) 501s</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">run: node-exporter: (pid 23973) 418s; run: </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">log</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: (pid 23307) 497s</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">run: postgres-exporter: (pid 24061) 413s; run: </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">log</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: (pid 23578) 465s</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">run: postgresql: (pid 22415) 604s; run: </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">log</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: (pid 22433) 603s</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">run: prometheus: (pid 24003) 416s; run: </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">log</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: (pid 23483) 477s</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">run: puma: (pid 23065) 522s; run: </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">log</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: (pid 23083) 519s</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">run: redis: (pid 22264) 622s; run: </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">log</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: (pid 22282) 618s</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">run: redis-exporter: (pid 23995) 417s; run: </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">log</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: (pid 23429) 483s</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">run: sidekiq: (pid 23099) 516s; run: </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">log</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: (pid 23140) 513s</span></div></pre><h2 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-size:16.8px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2.3、访问</span></h2><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">启动成功后，开放</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">9010端口</span></code></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640.jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">浏览器访问地址，发现启动成功</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [1].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><h2 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-size:16.8px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2.4、注册账号</span></h2><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">点击立即注册，注册账号，输入账号密码</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">账号：sowler</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">密码：aqwe1235</span></div></pre><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [2].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><h2 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-size:16.8px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2.5、登录</span></h2><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">注册成功后，开始登录，输入账号和密码后报错：</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [3].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">通过上面的这段报错内容可以看到错误原因</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Your account is pending approval from your GitLab administrator and hence blocked. Please contact your GitLabadministrator </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,123,114)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">if</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> you think this is an error</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">#翻译后</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">您的帐户正在等待您的GitLab管理员的批准，因此被封锁。如果您认为这是一个错误，请联系您的gitlab管理员</span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">需要管理员批准，通过查找发现</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">会内置一个管理员账号。默认账号为：</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">root</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> ,执行以下命令查看</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">root</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">的账号密码</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">[root@linux-servertwo opt]#  </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">cat</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> /etc/gitlab/initial_root_password</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># WARNING: This value is valid only in the following conditions</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">#          1. If provided manually (either via `GITLAB_ROOT_PASSWORD` environment variable or via `gitlab_rails['initial_root_password']` setting in `gitlab.rb`, it was provided before database was seeded for the first time (usually, the first reconfigure run).</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">#          2. Password hasn't been changed manually, either via UI or via command line.</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">#</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">#          If the password shown here doesn't work, you must reset the admin password following https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Password: KNARZgiUjFtm/IOELqQWiR4P2ds7+xK715CxNQpOyU4=</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># NOTE: This file will be automatically deleted in the first reconfigure run after 24 hours.</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">由此可以看出用户名就是root，密码就是上面的Password，通过以上账号再次进行登录。</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [4].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">发现登录成功。根据页面提示，可以点击 Deactivate 禁用注册功能。</span></p><h2 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-size:16.8px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2.6、设置中文</span></h2><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">点击登录用户头像，选择下图所示的菜单。</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [5].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">进入以下页面，选择中文简体语言。</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [6].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">保存成功后，刷新页面，发现文字已经更新</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [7].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><h2 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-size:16.8px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2.7、更新管理员密码</span></h2><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">设置好中文后，接下来就改尽快更新管理员密码了因为根据上面查看密码提示信息发现以上生成的管理员密码文件会在24小时后第一次重新配置时自动删除。</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [8].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">当前密码就是</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">/etc/gitlab/initial_root_password</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 文件的初始化密码，然后输入新密码进行更新。新密码：</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">aqwe1235</span></code></p><h2 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-size:16.8px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2.8、关闭注册功能</span></h2><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">点击管理中心</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [9].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">找到设置</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [10].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">取消以下勾选</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [11].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">点击下方保存按钮</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [12].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">访问登录页面，发现注册功能已经取消。</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [13].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><h2 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-size:16.8px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2.9、激活账号</span></h2><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">接下来激活刚刚创建的账号信息</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [14].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">点击管理中心，进入以下页面</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [15].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">点击等待批准菜单，显示未激活的账号列表，点击批准按钮进行激活</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [16].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">激活成功后，在激活列表展示已经激活的用户账号信息</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [17].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">激活后，使用</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">sowler</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">账号登录，发现登录成功。</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [18].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><h2 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-size:16.8px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2.10、管理员账号注册用户</span></h2><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">首先使用</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">root</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">账号登录</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">，进入管理中心</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [19].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">点击用户-&gt;新建用户</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [20].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">创建成功后，激活列表会显示用户信息</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [21].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">点击编辑，初始化用户密码</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [22].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">当第一次登录时，由用户进行修改密码</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [23].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">切换用户账号进行登录，进行修改密码</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [24].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><h2 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-size:16.8px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2.11、邮件通知发送</span></h2><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">修改</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">配置</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">/etc/gitlab/gitlab.rb </span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">启动邮件通知</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">vim /etc/gitlab/gitlab.rb</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 启用SMTP</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'smtp_enable'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(121,192,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">true</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># SMTP服务器配置</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'smtp_address'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;smtp.example.com&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 替换为你的SMTP服务器地址</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'smtp_port'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = 465                  </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># SMTP端口，一般是587(TLS)或465(SSL)</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'smtp_user_name'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;your-email@example.com&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># SMTP用户名</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'smtp_password'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;your-password&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># SMTP密码</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'smtp_domain'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;example.com&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">        </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 邮件域名</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'smtp_authentication'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;login&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">      </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 认证方式</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">#gitlab_rails['smtp_enable_starttls_auto'] = true   # 启用TLS</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'smtp_tls'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(121,192,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">true</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 配置成功后，查询加载配置</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl reconfigure</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl restart</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 测试邮件配置</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 进入GitLab Rails控制台</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">[root@linux-servertwo gitlab]#  gitlab-rails console -e production</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">--------------------------------------------------------------------------------</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> Ruby:         ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [x86_64-linux]</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> GitLab:       16.9.9 (ed54f379d9b) FOSS</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> GitLab Shell: 14.33.0</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> PostgreSQL:   14.11</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">------------------------------------------------------------[ booted </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,123,114)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">in</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 56.85s ]</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Loading production environment (Rails 7.0.8)</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">irb(main):001:0&gt; </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 发送测试邮件</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Notify.test_email(</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'test@example.com'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">, </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'Message Subject'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">, </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'Message Body'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">).deliver_now</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Notify.test_email(</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'1024409453@qq.com'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">, </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'GitLab注册通知'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">, </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'您注册的Gitlab账号已成功，欢迎登录查看。这是一封测试邮件'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">).deliver_now</span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">如果遇到问题，可以查看日志文件：</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 查看所有GitLab日志</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">tail</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 只查看邮件相关日志</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">tail</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> gitlab-rails</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 第一次没有配置成功，连接超时了</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">irb(main):002:0&gt; Notify.test_email(</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'1024409453@qq.com'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">, </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'GitLab注册通知'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">, </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'您注册的Gitlab账号已成功，欢迎登录查看。这是一封测试邮件'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">).deliver_now</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Delivered mail 676e255dc9029_76b52d00328@linux-servertwo.mail (30024.4ms)</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">/opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/net-smtp-0.3.3/lib/net/smtp.rb:645:</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,123,114)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">in</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> `rescue </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,123,114)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">in</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> tcp_socket</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">': Timeout to open TCP connection to smtp.163.com:456 (exceeds 30 seconds) (Net::OpenTimeout)</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">/opt/gitlab/embedded/lib/ruby/3.1.0/socket.rb:61:in `connect_internal'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">: Connection timed out - user specified </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">timeout</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> (Errno::ETIMEDOUT)</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">irb(main):003:0&gt; </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 再次发送</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">irb(main):001:0&gt; Notify.test_email(</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'1024409453@qq.com'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">, </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'GitLab注册通知'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">, </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'您注册的Gitlab账号已成功，欢迎登录查看。这是一封测试邮件'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">).deliver_now</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Delivered mail 676e312ae2e23_3bad2d00104f9@linux-servertwo.mail (616.7ms)</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">/opt/gitlab/embedded/lib/ruby/gems/3.1.0/gems/net-smtp-0.3.3/lib/net/smtp.rb:1076:</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,123,114)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">in</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> `check_response</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">': 553 Mail from must equal authorized user (Net::SMTPFatalError)</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 设置发件人</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 发件人邮箱设置 - 使用163邮箱</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails['</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_email_from</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'] = '</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_test@163.com</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'      # 必须和smtp_user_name一致</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails['</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_email_display_name</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'] = '</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">GitLab DevOps</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'         </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails['</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_email_reply_to</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'] = '</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_test@163.com</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'  # 保持一致</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails['</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_email_subject_suffix</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'] = '</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">[GitLab-DevOps]</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'  </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 以上配置成功后，再次发送，发送成功</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">irb(main):001:0&gt; Notify.test_email('</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">1024409453@qq.com</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">', '</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">GitLab注册通知</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">', '</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">您注册的Gitlab账号已成功，欢迎登录查看。这是一封测试邮件</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">').deliver_now</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Delivered mail 676e335528c0b_4a412d00629c9@linux-servertwo.mail (852.2ms)</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">=&gt; #&lt;Mail::Message:375740, Multipart: false, Headers: &lt;Date: Fri, 27 Dec 2024 12:55:49 +0800&gt;, &lt;From: GitLab DevOps &lt;sowlerblogs@163.com&gt;&gt;, &lt;Reply-To: GitLab DevOps &lt;gitlabe@test.com&gt;&gt;, &lt;To: 1024409453@qq.com&gt;, &lt;Message-ID: &lt;676e335528c0b_4a412d00629c9@linux-servertwo.mail&gt;&gt;, &lt;Subject: GitLab注册通知&gt;, &lt;Mime-Version: 1.0&gt;, &lt;Content-Type: text/html; charset=UTF-8&gt;, &lt;Content-Transfer-Encoding: 7bit&gt;, &lt;Auto-Submitted: auto-generated&gt;, &lt;X-Auto-Response-Suppress: All&gt;&gt;</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">邮件列表已经显示</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [25].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">查看邮件</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [26].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">企业邮箱发送邮件格式设置示例</span></strong></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'gitlab_email_from'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'gitlab@yourdomain.com'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'gitlab_email_display_name'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'GitLab DevOps'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'gitlab_email_reply_to'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'support@yourdomain.com'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'gitlab_email_subject_suffix'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'[GitLab-DevOps]'</span></span></div></pre><h2 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-size:16.8px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2.12、备份与恢复</span></h2><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">把提交的代码和操作的数据进行备份是很主要的，不然后面数据遗失了损失很大，由其对于公司来说。所以强烈建议定期备份数据文件或者编写脚本自动备份数据。数据备份不仅保证了数据安全可控，在</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">迁移到另一台服务器时，使用最佳方法就是通过备份和还原。</span></p><h3 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0 0 0 3px;border-style:solid;border-left-color:rgb(15,76,129);font-size:15.4px;font-weight:bold;margin:2em 8px 0.75em 0;text-align:left;line-height:1.2;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;padding-left:8px;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2.12.1、备份</span></h3><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">手动备份</span></strong></p><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Gitlab</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">提供了一个简单的命令行来备份整个</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Gitlab</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">，并且能灵活的满足需求。使用如下命令，备份数据到</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">/var/opt/gitlab/backups</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">目录下</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">[root@linux-servertwo gitlab]# gitlab-rake gitlab:backup:create</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2024-12-27 05:40:07 UTC -- Dumping database ... </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Dumping PostgreSQL database gitlabhq_production ... [DONE]</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2024-12-27 05:40:13 UTC -- Dumping database ... </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,123,114)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">done</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2024-12-27 05:40:13 UTC -- Dumping repositories ... </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2024-12-27 05:40:13 UTC -- Backup 1735278007_2024_12_27_16.9.9 is </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,123,114)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">done</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">.</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2024-12-27 05:40:13 UTC -- Deleting backup and restore PID file ... </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,123,114)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">done</span></span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">进入</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">/var/opt/gitlab/backups</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">目录查看备份文件</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">[root@linux-servertwo backups]# </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">ls</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> -l</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">total 720</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">-rw------- 1 git git 737280 Dec 27 13:40 1735278007_2024_12_27_16.9.9_gitlab_backup.tar</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [27].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">更改Gitlab备份目录</span></strong></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 更改/etc/gitlab/gitlab.rb文件</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">vim /etc/gitlab/gitlab.rb</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># Backup settings 数据存放的路径、权限、时间配置</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'manage_backup_path'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(121,192,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">true</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">              </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 开启备份功能</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'backup_path'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;/data/gitlab/backups&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 自定义备份路径</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'backup_archive_permissions'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = 0644        </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 备份文件权限</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'backup_keep_time'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = 604800               </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 备份保留时间(单位:秒),这里是7天</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 重新加载配置 </span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl reconfigure</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 重启服务</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl restart</span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">自定义备份目录需要创建备份目录并赋予目录git权限</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 创建备份目录</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">mkdir</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> -p /data/gitlab/backups</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 设置目录所有者</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">chown</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> -R git:git /data/gitlab/backups</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 设置目录权限</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">chmod</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 755 /data/gitlab/backups</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 开始备份</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">[root@linux-servertwo gitlab]# gitlab-rake gitlab:backup:create</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2024-12-27 06:05:08 UTC -- Dumping database ... </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Dumping PostgreSQL database gitlabhq_production ... [DONE]</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2024-12-27 06:05:36 UTC -- Dumping database ... </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,123,114)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">done</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2024-12-27 06:05:36 UTC -- Dumping repositories ... </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2024-12-27 06:05:36 UTC -- Warning: Your gitlab.rb and gitlab-secrets.json files contain sensitive data </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">and are not included </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,123,114)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">in</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> this backup. You will need these files to restore a backup.</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Please back them up manually.</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2024-12-27 06:05:36 UTC -- Backup 1735279508_2024_12_27_16.9.9 is </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,123,114)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">done</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">.</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2024-12-27 06:05:36 UTC -- Deleting backup and restore PID file ... </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,123,114)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">done</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 查看自定义的备份目录</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">[root@linux-servertwo gitlab]# </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">ls</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> -l /data/gitlab/backups</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">total 720</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">-rw-r--r-- 1 git git 737280 Dec 27 14:05 1735279508_2024_12_27_16.9.9_gitlab_backup.tar</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 发现备份成功</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">问题</span></strong></p><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">在备份的时候出现红字警告</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2024-12-27 06:05:36 UTC -- Warning: Your gitlab.rb and gitlab-secrets.json files contain sensitive data </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">and are not included </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,123,114)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">in</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> this backup. You will need these files to restore a backup.</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Please back them up manually.</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 翻译</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">警告：您的gitlab。Rb和gitlab的秘密。Json文件包含敏感数据并且不包含在此备份中。您将需要这些文件来恢复备份。请手动备份。</span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">根据提示，需要自己来备份</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab.rb </span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">和 </span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-secrets.json</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">两个文件</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">[root@linux-servertwo gitlab]# </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">cp</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> /etc/gitlab/gitlab.rb /etc/gitlab/gitlab.rb.bak</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">[root@linux-servertwo gitlab]# </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">cp</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> /etc/gitlab/gitlab-secrets.json /etc/gitlab/gitlab-secrets.json.bak</span></div></pre><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [28].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">自动备份</span></strong></p><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">使用</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Linux</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">的</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">crontab </span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">命令来实现自动备份</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 输入命令crontab -e</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">crontab -e  </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 输入相应的任务 -添加定时任务(每天凌晨2点备份)</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">0 2 * * * /opt/gitlab/bin/gitlab-rake gitlab:backup:create CRON=1</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">#注意：环境变量CRON=1的作用是如果没有任何错误发生时， 抑制备份脚本的所有进度输出</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">#查看周期性计划任务</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">crontab -l </span></div></pre><h3 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0 0 0 3px;border-style:solid;border-left-color:rgb(15,76,129);font-size:15.4px;font-weight:bold;margin:2em 8px 0.75em 0;text-align:left;line-height:1.2;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;padding-left:8px;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2.12.2、恢复</span></h3><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">首先进入</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> /var/opt/gitlab/backups</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 目录</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">cd</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> /var/opt/gitlab/backups</span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">把已经备份的文件上传进去，然后执行以下命令恢复数据</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 停止相关服务</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">sudo</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> gitlab-ctl stop unicorn</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">sudo</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> gitlab-ctl stop puma</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">sudo</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> gitlab-ctl stop sidekiq</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 恢复备份-填写备份文件的时间戳信息</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-rake gitlab:backup:restore BACKUP=1735279508_2024_12_27_16.9.9</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 启动服务</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl reconfigure</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl restart </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl status |grep run</span></div></pre><h2 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-size:16.8px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">2.13、登录欢迎页</span></h2><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">进入 </span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">管理中心-&gt;设置-&gt;外观</span></code></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [29].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><h1 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0 0 2px;border-style:solid;border-bottom-color:rgb(15,76,129);font-size:16.8px;font-weight:bold;margin:2em auto 1em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">3、内存优化</span></h1><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">使用云服务部署</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 的服务器是2C4G的云服务器，部署后内存占用太大，服务器出现卡顿现象，所以需要更改</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">启动配置来缩小内存占用。通过</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">Linux</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">的</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">free -h</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 命令查看内存占用信息，发现内存已经占用满了。</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [30].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">更改配置文件，关闭不需要的内置服务，首先找到并修改</span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab.rb</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\">主配置文件</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">vim /etc/gitlab/gitlab.rb </span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">减少Puma工作进程和线程数</span></strong></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># Puma 设置 </span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># Puma settings - reduce workers and threads</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># puma['enable'] = true</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># puma['ha'] = false</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">puma[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'worker_timeout'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = 60</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 减少 Puma worker 进程数，默认值为 2</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">puma[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'worker_processes'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = 2</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 减少每个 worker 的最小和最大线程数</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 默认值分别为 4 和 4，降低这些值可以减少内存使用</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">puma[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'min_threads'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = 1</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">puma[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'max_threads'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = 2</span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">降低后台守护进程并发数【Sidekiq并发数】</span></strong></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># Sidekiq settings - reduce concurrency</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 减少后台任务处理的并发数</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">sidekiq[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'max_concurrency'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = 5</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 设置最小并发数为 0，允许在空闲时释放更多内存</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">sidekiq[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'min_concurrency'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = 0</span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">减少PostgreSQL的内存缓冲区和工作内存</span></strong></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 并发连接数</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">postgresql[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'max_connections'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = 200</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 减少共享缓冲区大小，默认推荐值是系统内存的 25% ，对于小型部署，128MB 通常足够</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">postgresql[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'shared_buffers'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;128MB&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 减少每个数据库连接的工作内存， 降低此值可以减少总体内存使用，但可能影响复杂查询性能</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">postgresql[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'work_mem'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;8MB&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 设置维护操作的工作内存， 这个值影响 VACUUM, CREATE INDEX 等操作</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">postgresql[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'maintenance_work_mem'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;16MB&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 减少查询计划器预估可用的系统缓存大小</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 这不是实际分配的内存，而是告诉优化器系统有多少可用缓存</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">postgresql[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'effective_cache_size'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;256MB&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 限制后台工作进程数</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">postgresql[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'max_worker_processes'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = 2</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 禁用并行查询，可以节省内存</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">postgresql[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'max_parallel_workers_per_gather'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = 0</span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">限制Redis最大内存使用</span></strong></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 限制 Redis 最大内存使用</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">redis[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'maxmemory'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;256MB&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 内存达到限制时的淘汰策略</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># allkeys-lru: 当内存不足时，删除最近最少使用的 key</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">redis[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'maxmemory_policy'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;allkeys-lru&quot;</span></span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">限制Ruby垃圾收集器的内存分配</span></strong></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># GitLab application settings</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 环境变量配置</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">#gitlab_rails['env'] = {</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 限制 glibc 内存分配器的 arena 数量</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 可以减少内存碎片</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">#'MALLOC_ARENA_MAX' =&gt; &quot;2&quot;,</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 限制 Bundler 并行安装 gem 的作业数</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">#'BUNDLE_JOBS' =&gt; &quot;1&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">#}</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'env'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = {</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'MALLOC_ARENA_MAX'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> =&gt; </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;2&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">,</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'BUNDLE_JOBS'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> =&gt; </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;1&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">}</span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">减少GitLab后台任务的运行频率</span></strong></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 后台任务计划任务优化</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># Reduce number of background jobs</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 减少清理卡住的 CI 任务的频率（每 4 小时而不是每小时）</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'stuck_ci_jobs_worker_cron'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;0 */4 * * *&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 减少清理构建产物的频率（每 30 分钟而不是每 7 分钟）</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'expire_build_artifacts_worker_cron'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;*/30 * * * *&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 减少仓库检查的频率（每 2 小时而不是每小时）</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'repository_check_worker_cron'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;0 */2 * * *&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 减少管理员邮件发送的频率（每周而不是每天）</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'admin_email_worker_cron'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;0 0 * * 0&quot;</span></span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">重载配置</span></strong></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl reconfigure</span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">重启服务</span></strong></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl restart</span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">检查服务状态</span></strong></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl status</span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">这些设置会降低GitLab的性能，但可以显著减少内存使用。可以根据具体使用情况和服务器资源，可能需要进一步调整这些值。再次查看内存占用大小</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [31].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">可以发现内存已经成功下降到系统可控范围内。</span></p><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">问题</span></strong></p><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">通过执行以上命令，内存占用有一定的下降，但是当用户登录进去后，内存占用率有显著上升，但用户退出后内存占用不会下降</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">###############################################</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># Ruby GC (垃圾回收)优化</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">###############################################</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab_rails[</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'env'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">] = {</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 已有配置</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'MALLOC_ARENA_MAX'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> =&gt; </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;2&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">,</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'BUNDLE_JOBS'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> =&gt; </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;1&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">,</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># Ruby GC 调优</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 更激进的垃圾回收</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'RUBY_GC_HEAP_INIT_SLOTS'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> =&gt; </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;50000&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">,</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'RUBY_GC_HEAP_FREE_SLOTS'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> =&gt; </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;4096&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">,</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'RUBY_GC_HEAP_GROWTH_MAX_SLOTS'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> =&gt; </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;300000&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">,</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'RUBY_GC_HEAP_GROWTH_FACTOR'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> =&gt; </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;1.1&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">,</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 强制在大对象分配后进行GC</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'RUBY_GC_MALLOC_LIMIT'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> =&gt; </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;4000100&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">,</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'RUBY_GC_OLDMALLOC_LIMIT'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> =&gt; </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;4000100&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">,</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 减少Ruby进程的最大内存使用</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'RUBY_HEAP_MIN_SLOTS'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> =&gt; </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;150000&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">,</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'RUBY_HEAP_FREE_MIN'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> =&gt; </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;4096&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">,</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'RUBY_HEAP_SLOTS_INCREMENT'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> =&gt; </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;100000&quot;</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">}</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 重新加载配置</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl reconfigure</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 完全重启所有服务</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl stop</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 启动gitlab</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl start</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 检查服务状态</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl status</span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">通过 </span><code style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:12.6px;text-align:left;line-height:1.75;color:rgb(221,17,68);background:rgba(27,31,35,0.05);padding:3px 5px;border-radius:4px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">free -h</span></code><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 再次查看内存占用情况</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [32].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">通过以上配置，内存占用基本稳定在2.2~2.3G左右，已经达到预期效果可以正常使用了。</span></p><h1 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0 0 2px;border-style:solid;border-bottom-color:rgb(15,76,129);font-size:16.8px;font-weight:bold;margin:2em auto 1em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">4、服务器配置建议</span></h1><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">根据实际用户规模和项目数量调整硬件配置。</span></p><ul style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));list-style:circle;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63)\\\"><li style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;text-indent:-1em;display:block;margin:0.2em 8px;color:rgb(63,63,63)\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">• </span><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">CPU</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">：至少配置 4 核 CPU（中型团队建议 8 核以上）。</span></div></li><li style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;text-indent:-1em;display:block;margin:0.2em 8px;color:rgb(63,63,63)\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">• </span><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">内存</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">：最低要求 4GB，推荐至少 8GB 或更多（对于大型部署建议 16GB+）。</span></div></li><li style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;text-indent:-1em;display:block;margin:0.2em 8px;color:rgb(63,63,63)\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">• </span><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">存储空间</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\">：推荐使用 </span><strong style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-weight:bold;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:inherit;color:rgb(15,76,129)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">SSD</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> 提升 IO 性能，确保有足够空间存储代码仓库、备份和日志。</span></div></li></ul><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">| 小型团队 (1-10用户) | 2核 | 4GB | 50GB SSD | 100Mbps |</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">| 中小团队 (10-50用户) | 4核 | 8GB | 100GB SSD | 500Mbps |</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">| 中型团队 (50-100用户) | 8核 | 16GB | 500GB SSD | 1Gbps |</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">| 大型团队 (100+用户) | 16核 | 32GB | 1TB SSD (NVMe) | 10Gbps |</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 说明：</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 所有配置建议使用SSD存储以提升性能</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 内存建议预留25%用于系统运行</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 存储空间需要考虑代码仓库增长和备份需求</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 网络带宽需要根据实际访问量和并发数调整</span></span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">服务器硬件资源不足会导致 GitLab 运行缓慢或服务中断。官网说明：</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;color:rgb(63,63,63);\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><img src=\\\"搭建Gitlab私有仓库_files/640 [33].jpg\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:block;vertical-align:middle;max-width:100%;height:auto;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,\\\"Helvetica Neue\\\",\\\"PingFang SC\\\",\\\"Hiragino Sans GB\\\",\\\"Microsoft YaHei UI\\\",\\\"Microsoft YaHei\\\",Arial,sans-serif;font-size:14px;margin:0.1em auto 0.5em;border-radius:4px\\\" title=\\\"null\\\"/></span></div><h1 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0 0 2px;border-style:solid;border-bottom-color:rgb(15,76,129);font-size:16.8px;font-weight:bold;margin:2em auto 1em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">5、安装目录</span></h1><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">GitLab主安装目录，组件依赖程序：/opt/gitlab/</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">GitLab配置文件目录：/etc/gitlab/ </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">GitLab各个组件存储路径，数据目录：/var/opt/gitlab/          </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">GitLab组件日志目录：/var/log/gitlab/ </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">GitLab仓库默认存储路径：/var/opt/gitlab/git-data/repositories</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">版本文件备份路径：/var/opt/gitlab/backups/</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">nginx安装路径：/var/opt/gitlab/nginx/</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">redis安装路径：/var/opt/gitlab/redis</span></div></pre><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:14px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">详细信息</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">/opt/gitlab/                </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># GitLab主安装目录</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">├── bin/                   </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 可执行文件目录</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">│   ├── gitlab-ctl        </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># GitLab控制脚本</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">│   └── gitlab-rake       </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># GitLab rake命令</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">│</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">├── embedded/              </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># GitLab依赖的软件包</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">│   ├── bin/              </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 内置命令</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">│   ├── service/          </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 服务配置</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">│   └── lib/              </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 依赖库</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">│</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">/etc/gitlab/               </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 配置文件目录</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">├── gitlab.rb             </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 主配置文件</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">├── gitlab-secrets.json   </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 密钥配置</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">└── ssl/                  </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># SSL证书目录</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">/var/opt/gitlab/          </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 数据目录</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">├── backups/             </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 默认备份目录</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">├── git-data/            </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># Git仓库数据</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">├── postgresql/          </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># PostgreSQL数据</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">├── redis/              </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># Redis数据</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">├── gitlab-rails/       </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># Rails应用数据</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">└── nginx/              </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># Nginx配置和日志</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">/var/log/gitlab/         </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 日志目录</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">├── nginx/              </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># Nginx日志</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">├── postgresql/         </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 数据库日志</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">├── redis/             </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># Redis日志</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">├── gitlab-rails/      </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># Rails应用日志</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">└── sidekiq/           </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 后台任务日志</span></span></div></pre><h1 style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0 0 2px;border-style:solid;border-bottom-color:rgb(15,76,129);font-size:16.8px;font-weight:bold;margin:2em auto 1em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 1em;color:rgb(63,63,63)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">6、常用命令</span></h1><pre style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;font-size:14px;margin:10px 8px;color:rgb(201,209,217);background:rgb(13,17,23);text-align:left;line-height:1.5;overflow-x:auto;border-radius:8px;padding:0 !important\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));display:flex;padding:10px 14px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">#  检查 GitLab 当前配置</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">grep -E </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(165,214,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">'^[a-Z]'</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> /etc/gitlab/gitlab.rb </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 会显示所有未被注释的配置行,帮助查看当前生效的 GitLab 配置</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 重新加载配置文件</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl reconfigure</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 重启</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl restart</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 查看服务状态</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl status</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 启动gitlab    </span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl start</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 停止  </span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl stop</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 查看所有的logs; 按 Ctrl-C 退出</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">tail</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 拉取/var/log/gitlab下子目录的日志</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">tail</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> gitlab-rails</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 拉取某个指定的日志文件</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">tail</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> nginx/gitlab_error.log</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 帮助</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-ctl </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">help</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">#GitLab 诊断命令 建议使用时机：安装GitLab后、升级GitLab前后、遇到系统问题时、定期系统检查</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">gitlab-rake gitlab:check SANITIZE=</span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(121,192,255)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">true</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> --trace    </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 查看运行状态</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">systemctl status gitlab-runsvdir.service </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 禁止Gitlab开机自启动</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">systemctl </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">disable</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> gitlab-runsvdir.service </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(139,148,158)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># 启用Gitlab开机自启动</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\">systemctl </span><span style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));color:rgb(255,166,87)\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">enable</span></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> gitlab-runsvdir.service</span></div></pre></div><p style=\\\"-webkit-tap-highlight-color:transparent;box-sizing:border-box;border-width:0;border-style:solid;border-color:hsl(var(--border));margin:0;color:rgb(10,10,10);font-family:ui-sans-serif,system-ui,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Noto Color Emoji&quot;;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;white-space:normal;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;font-size:0;line-height:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> </span></p><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div></div></div></div></div></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":329267}]"
metadata_diff: {"new":{"id":"3c221494674f48db8a610540e57892fb","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764348856930,"user_updated_time":1764345620853,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":1764365022745},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T21:24:52.622Z
created_time: 2025-11-28T21:24:52.622Z
type_: 13