{"id":123446,"date":"2026-11-07T08:48:48","date_gmt":"2026-11-07T00:48:48","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/123446.html"},"modified":"2026-11-07T08:48:48","modified_gmt":"2026-11-07T00:48:48","slug":"%e5%bd%ad%e5%a4%a7%e5%b8%85%e7%9a%84ci-cd%e5%ae%9e%e6%88%98%e7%ac%ac3%e7%af%87-%e8%b0%83%e5%ba%a6%e4%b8%ad%e6%9e%a2%ef%bc%9ajenkins-%e6%8e%a7%e5%88%b6%e5%99%a8%e9%83%a8%e7%bd%b2","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/123446.html","title":{"rendered":"\u5f6d\u5927\u5e05\u7684CI\/CD\u5b9e\u6218\u7b2c3\u7bc7 \u8c03\u5ea6\u4e2d\u67a2\uff1aJenkins \u63a7\u5236\u5668\u90e8\u7f72"},"content":{"rendered":"<p style=\"margin-left:.0001pt;margin-right:0;text-align:center\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u5b98\u65b9 rpm &#043; systemd \u6258\u7ba1 &#043; OpenJDK 21&#xff0c;\u4ece\u5b89\u88c5\u5230\u521d\u59cb\u5316\u5168\u6d41\u7a0b<\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:center\"><span style=\"color:#333333\"><span style=\"color:#808080\">\u7cfb\u5217\u7b2c 3 \u7bc7 \u00b7 \u5171 10 \u7bc7<\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:center\"><span style=\"color:#333333\"><span style=\"color:#808080\">\u73af\u5883\u7248\u672c&#xff1a;Jenkins 2.580.2 LTS \/ OpenJDK 21.0.13<\/span><\/span><\/p>\n<\/p>\n<h2 style=\"text-align:center\"><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">\u76ee \u00a0\u5f55<\/span><\/span><\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e00\u3001\u672c\u7bc7\u5728\u4e3b\u7ebf\u4e2d\u7684\u4f4d\u7f6e<\/span><\/span><\/p>\n<p><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e8c\u3001\u5b89\u88c5 OpenJDK 21<\/span><\/span><\/p>\n<p><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e09\u3001\u5b98\u65b9 yum \u6e90\u4e0e\u5b89\u88c5<\/span><\/span><\/p>\n<p><span style=\"color:#333333\"><span style=\"color:#333333\">\u56db\u3001systemd \u6258\u7ba1&#xff1a;drop-in \u8986\u76d6<\/span><\/span><\/p>\n<p><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e94\u3001\u542f\u52a8\u4e0e\u9a8c\u8bc1<\/span><\/span><\/p>\n<p><span style=\"color:#333333\"><span style=\"color:#333333\">\u516d\u3001Web \u521d\u59cb\u5316\u5411\u5bfc<\/span><\/span><\/p>\n<p><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e03\u3001\u5b89\u5168\u7b56\u7565&#xff1a;Webhook \u80fd\u4e0d\u80fd\u89e6\u53d1&#xff0c;\u73b0\u5728\u5c31\u5b9a\u4e86<\/span><\/span><\/p>\n<p><span style=\"color:#333333\"><span style=\"color:#333333\">\u516b\u3001\u751f\u6210 API Token<\/span><\/span><\/p>\n<p><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e5d\u3001\u65e5\u5e38\u8fd0\u7ef4\u4e0e\u5907\u4efd<\/span><\/span><\/p>\n<p><span style=\"color:#333333\"><span style=\"color:#333333\">\u5341\u3001\u672c\u7ae0\u9a8c\u8bc1<\/span><\/span><\/p>\n<\/p>\n<h2><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">\u4e00\u3001\u672c\u7bc7\u5728\u4e3b\u7ebf\u4e2d\u7684\u4f4d\u7f6e<\/span><\/span><\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u7b2c1\u7bc7 \u57fa\u7ebf \u00a0\u2192 \u00a0\u7b2c2\u7bc7 GitLab \u00a0\u2192 \u00a0\u7b2c3\u7bc7 Jenkins \u00a0<\/span><span style=\"color:#333333\">\u25c0<\/span><span style=\"color:#333333\">\u2500\u2500 \u4f60\u5728\u8fd9\u91cc<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u7b2c4\u7bc7 \u6784\u5efa\u8282\u70b9 \u00a0\u2192 \u00a0\u7b2c5\u7bc7 \u53cc\u6d3b\u96c6\u7fa4 \u00a0\u2192 \u00a0\u7b2c6~8\u7bc7 \u6d41\u6c34\u7ebf<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">GitLab \u7ba1\u4f4f\u4e86\u4ee3\u7801&#xff0c;\u8fd8\u5dee\u4e00\u4e2a\u300c\u6307\u6325\u5b98\u300d&#xff1a;\u8c01\u76d1\u542c push\u3001\u8c01\u7f16\u6392\u6784\u5efa\u3001\u8c01\u63a8\u52a8\u53d1\u5e03\u3002\u8fd9\u5c31\u662f Jenkins \u63a7\u5236\u5668\u3002\u672c\u7bc7\u5728 jenkins-master&#xff08;1 \u6838 \/ 3.5G \/ 10.10.10.77&#xff09;\u4e0a\u90e8\u7f72 Jenkins 2.580.2 LTS\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u5b89\u88c5\u65b9\u5f0f\u4e0a&#xff0c;\u672c\u7bc7\u4e0e\u5f88\u591a\u65e7\u6559\u7a0b\u6709\u672c\u8d28\u533a\u522b&#xff0c;\u5148\u5bf9\u6bd4\u4e00\u4e0b&#xff1a;<\/span><\/span><\/p>\n<table align=\"center\" border=\"1\" cellspacing=\"0\" style=\"width:450.0000pt\">\n<tbody>\n<tr>\n<td style=\"background-color:#1f4e79;width:110.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:center\"><span style=\"color:#333333\"><span style=\"color:#ffffff\">\u7ef4\u5ea6<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#1f4e79;width:185.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:center\"><span style=\"color:#333333\"><span style=\"color:#ffffff\">\u65e7\u6559\u7a0b\u5e38\u89c1\u505a\u6cd5<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#1f4e79;width:155.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:center\"><span style=\"color:#333333\"><span style=\"color:#ffffff\">\u672c\u7bc7\u505a\u6cd5&#xff08;\u5b9e\u6d4b&#xff09;<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:110.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u8fd0\u884c\u65b9\u5f0f<\/span><\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:185.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">jenkins.war \u6254\u8fdb Tomcat&#xff0c;\u6216\u88c5\u5b8c\u624b\u52a8\u914d sysconfig<\/span><\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:155.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u5b98\u65b9 rpm &#043; systemd \u6258\u7ba1&#xff0c;drop-in \u8986\u76d6\u914d\u7f6e<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#eaf1f8;width:110.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">Java \u7248\u672c<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#eaf1f8;width:185.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">OpenJDK 8 \/ 11&#xff08;\u65b0\u7248 Jenkins \u5df2\u4e0d\u652f\u6301&#xff09;<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#eaf1f8;width:155.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">OpenJDK 21&#xff0c;JAVA_HOME \u663e\u5f0f\u6307\u5b9a<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:110.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u914d\u7f6e\u5165\u53e3<\/span><\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:185.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\/etc\/sysconfig\/jenkins&#xff08;\u65b0\u5305\u5df2\u4e0d\u8bfb\u53d6&#xff09;<\/span><\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:155.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">systemctl edit jenkins&#xff08;override.conf&#xff09;<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#eaf1f8;width:110.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u5347\u7ea7\u65b9\u5f0f<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#eaf1f8;width:185.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u6362 war \u5305\u91cd\u90e8\u7f72<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#eaf1f8;width:155.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">dnf \u5347\u7ea7&#xff0c;\u914d\u7f6e\u4e0d\u4e22<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e00\u53e5\u8bdd&#xff1a;\u628a Jenkins \u5f53\u6210\u300c\u7cfb\u7edf\u670d\u52a1\u300d\u800c\u4e0d\u662f\u300c\u4e00\u4e2a war \u5305\u300d\u6765\u7ba1\u3002\u5347\u7ea7\u4e0d\u88ab\u8986\u76d6\u3001\u6545\u969c\u81ea\u62c9\u8d77\u3001\u65e5\u5fd7\u8fdb journal&#xff0c;\u8fd9\u4e9b\u90fd\u662f systemd \u767d\u9001\u7684\u3002<\/span><\/span><\/p>\n<h2><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">\u4e8c\u3001\u5b89\u88c5 OpenJDK 21<\/span><\/span><\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">Rocky 9 \u7684 appstream \u76f4\u63a5\u63d0\u4f9b JDK 21&#xff0c;\u4e0d\u8981\u7528\u7b2c\u4e09\u65b9 tar \u5305&#xff1a;<\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">dnf install -y java-21-openjdk java-21-openjdk-devel<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">java -version<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\"># openjdk version &#034;21.0.13&#034; 2026-10-20 LTS<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">ls -d \/usr\/lib\/jvm\/java-21-openjdk*<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\"># \/usr\/lib\/jvm\/java-21-openjdk<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u8bb0\u4f4f\u8fd9\u4e2a\u5b89\u88c5\u8def\u5f84&#xff0c;\u7b2c\u56db\u6b65\u7684 systemd \u5355\u5143\u91cc\u8981\u5199\u5b83\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e00\u4e2a\u5bb9\u6613\u5ffd\u7565\u7684\u98ce\u9669&#xff1a;\u672c\u673a\u540c\u65f6\u5b58\u5728 java-17 \u548c java-8 \u7684\u5386\u53f2\u4f9d\u8d56\u5305&#xff0c;\u9ed8\u8ba4 java \u547d\u4ee4\u6307\u5411\u54ea\u4e2a\u7248\u672c\u662f\u4e0d\u786e\u5b9a\u7684\u3002\u6240\u4ee5\u540e\u9762\u5fc5\u987b\u7528 JAVA_HOME \u663e\u5f0f\u6307\u5b9a 21&#xff0c;\u4e0d\u80fd\u8d4c\u7cfb\u7edf\u9ed8\u8ba4\u2014\u2014\u8fd9\u662f\u8e29\u8fc7\u7684\u5751&#xff08;\u7b2c 7 \u7bc7\u5751 6&#xff09;\u3002<\/span><\/span><\/p>\n<h2><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">\u4e09\u3001\u5b98\u65b9 yum \u6e90\u4e0e\u5b89\u88c5<\/span><\/span><\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u5bfc\u5165\u7b7e\u540d key \u5e76\u914d\u7f6e repo\u3002\u5b9e\u9a8c\u73af\u5883\u7528\u963f\u91cc\u4e91\u955c\u50cf\u52a0\u901f&#xff1a;<\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">curl -fsSL https:\/\/mirrors.aliyun.com\/jenkins\/rpm-stable\/jenkins.io-2026.key -o \/tmp\/jk.key<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">rpm &#8211;import \/tmp\/jk.key<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">cat &gt; \/etc\/yum.repos.d\/jenkins.repo &lt;&lt;EOF2<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">[jenkins]<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">name&#061;Jenkins Stable (Aliyun mirror)<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">baseurl&#061;https:\/\/mirrors.aliyun.com\/jenkins\/rpm-stable\/<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">gpgcheck&#061;1<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">gpgkey&#061;file:\/\/\/tmp\/jk.key<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">enabled&#061;0<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">EOF2<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">enabled&#061;0 \u662f\u523b\u610f\u7684&#xff1a;\u9632\u6b62\u65e5\u5e38 dnf update \u628a Jenkins \u8fde\u5e26\u63d2\u4ef6\u4e00\u8d77\u5347\u4e0a\u53bb&#xff08;\u65b0\u7248\u672c\u53ef\u80fd\u4e0e\u5df2\u88c5\u63d2\u4ef6\u4e0d\u517c\u5bb9&#xff09;\u3002\u5b89\u88c5\u65f6\u663e\u5f0f\u542f\u7528&#xff1a;<\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">dnf &#8211;enablerepo&#061;jenkins install -y jenkins<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">rpm -q jenkins \u00a0\u00a0\u00a0\u00a0\u00a0# jenkins-2.580.2-1.noarch<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u751f\u4ea7\u73af\u5883\u7684\u6539\u8fdb\u9879&#xff1a;\u628a key \u56fa\u5b9a\u653e\u5230 \/etc\/pki\/rpm-gpg\/ \u4e0b&#xff0c;repo \u7684 gpgkey \u6307\u8fc7\u53bb\u3002\u672c\u673a\u66fe\u628a key \u653e\u5728 \/tmp \u91cc&#xff0c;\u540e\u6765 \/tmp \u88ab\u6e05\u7406\u5bfc\u81f4\u518d\u88c5\u5305\u62a5 GPG \u6821\u9a8c\u5931\u8d25&#xff08;\u7b2c 7 \u7bc7\u5751 5&#xff09;\u3002<\/span><\/span><\/p>\n<h2><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">\u56db\u3001systemd \u6258\u7ba1&#xff1a;drop-in \u8986\u76d6<\/span><\/span><\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">rpm \u81ea\u5e26\u5355\u5143\u6587\u4ef6 \/usr\/lib\/systemd\/system\/jenkins.service\u3002\u539f\u5219&#xff1a;\u4e0d\u76f4\u63a5\u6539\u5b83&#xff08;\u5347\u7ea7\u4f1a\u88ab\u8986\u76d6&#xff09;&#xff0c;\u7528 drop-in \u8986\u76d6&#xff0c;\u4e5f\u5c31\u662f systemctl edit jenkins\u3002\u672c\u673a\u751f\u6210\u7684 \/etc\/systemd\/system\/jenkins.service.d\/override.conf&#xff1a;<\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">[Service]<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">Environment&#061;&#034;JAVA_HOME&#061;\/usr\/lib\/jvm\/java-21-openjdk&#034;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">Environment&#061;&#034;JAVA_OPTS&#061;-Djava.awt.headless&#061;true -Xms512m -Xmx1024m -XX:&#043;UseG1GC&#034;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">Environment&#061;&#034;JENKINS_PORT&#061;8080&#034;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e09\u884c\u914d\u7f6e\u5404\u81ea\u7684\u7528\u610f&#xff1a;<\/span><\/span><\/p>\n<table align=\"center\" border=\"1\" cellspacing=\"0\" style=\"width:450.0000pt\">\n<tbody>\n<tr>\n<td style=\"background-color:#1f4e79;width:120.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:center\"><span style=\"color:#333333\"><span style=\"color:#ffffff\">\u53c2\u6570<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#1f4e79;width:330.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:center\"><span style=\"color:#333333\"><span style=\"color:#ffffff\">\u4f5c\u7528\u4e0e\u7406\u7531<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:120.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">JAVA_HOME<\/span><\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:330.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u5f3a\u5236 JVM \u7528 JDK 21\u3002\u4e0d\u8bbe\u7684\u8bdd\u7528\u7cfb\u7edf\u9ed8\u8ba4 java&#xff0c;\u53ef\u80fd\u662f 8 \u6216 17&#xff0c;\u76f4\u63a5\u8d77\u4e0d\u6765&#xff08;\u5751 6&#xff09;<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#eaf1f8;width:120.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">JAVA_OPTS<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#eaf1f8;width:330.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u5806 512m~1024m \u9002\u914d 3.5G \u5c0f\u673a\u5668&#xff1b;G1 \u56de\u6536\u5668\u964d\u4f4e\u505c\u987f&#xff1b;headless \u514d\u53bb\u56fe\u5f62\u4f9d\u8d56<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:120.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">JENKINS_PORT<\/span><\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:330.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u9ed8\u8ba4\u5c31\u662f 8080&#xff0c;\u663e\u5f0f\u58f0\u660e\u4fbf\u4e8e\u65e5\u540e\u7edf\u4e00\u6539\u7aef\u53e3<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u5355\u5143\u6587\u4ef6\u672c\u8eab\u8fd8\u6709\u51e0\u4e2a\u503c\u5f97\u77e5\u9053\u7684\u9ed8\u8ba4\u503c&#xff1a;\u670d\u52a1\u4ee5 jenkins \u7528\u6237\u8fd0\u884c&#xff0c;\u4e3b\u76ee\u5f55 JENKINS_HOME \u5728 \/var\/lib\/jenkins&#xff0c;\u6545\u969c\u81ea\u52a8\u91cd\u542f&#xff08;Restart&#061;on-failure&#xff09;\u3002\u6700\u7279\u522b\u7684\u662f Type&#061;notify\u2014\u2014systemd \u4f1a\u7b49 Jenkins \u771f\u6b63\u5c31\u7eea\u624d\u6807\u8bb0 active&#xff0c;\u6240\u4ee5\u542f\u52a8\u547d\u4ee4\u505c\u987f 20~60 \u79d2\u5c5e\u6b63\u5e38&#xff0c;\u4e0d\u8981\u4ee5\u4e3a\u5361\u6b7b\u53c8\u53bb\u91cd\u542f\u3002<\/span><\/span><\/p>\n<h2><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">\u4e94\u3001\u542f\u52a8\u4e0e\u9a8c\u8bc1<\/span><\/span><\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">systemctl daemon-reload<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">systemctl enable &#8211;now jenkins<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">systemctl is-active jenkins \u00a0\u00a0\u00a0\u00a0# active<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">ss -lntp | grep 8080 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0# \u786e\u8ba4\u76d1\u542c<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">tail -f \/var\/log\/jenkins\/jenkins.log \u00a0\u00a0\u00a0# \u5e94\u7528\u65e5\u5fd7<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">journalctl -u jenkins -f \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0# systemd \u65e5\u5fd7<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u6700\u540e\u4e00\u6b65\u9a8c\u8bc1\u6700\u5bb9\u6613\u88ab\u7701\u7565&#xff0c;\u4e5f\u6700\u91cd\u8981&#xff1a;\u786e\u8ba4\u8fdb\u7a0b\u7528\u7684\u771f\u662f JDK 21&#xff0c;\u800c\u4e0d\u662f\u7cfb\u7edf\u9ed8\u8ba4\u7684\u67d0\u4e2a\u65e7\u7248\u672c\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">pgrep -f jenkins.jar \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0# \u62ff\u5230\u8fdb\u7a0b\u53f7<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">ls -l \/proc\/&lt;PID&gt;\/exe<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\"># \u9884\u671f\u6307\u5411 \/usr\/lib\/jvm\/java-21-openjdk-21.0.13&#8230;\/bin\/java<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e09\u6761\u9a8c\u8bc1\u5bf9\u5e94\u4e09\u4e2a\u5c42\u6b21&#xff1a;\u670d\u52a1\u6d3b\u7740&#xff08;is-active&#xff09;\u3001\u7aef\u53e3\u5728\u542c&#xff08;ss&#xff09;\u3001\u7248\u672c\u5bf9\u4e86&#xff08;\/proc \u94fe\u63a5&#xff09;\u3002\u7f3a\u4e00\u4e0d\u53ef\u2014\u2014\u524d\u4e24\u6761\u8fc7\u4e86\u3001\u7248\u672c\u4e0d\u5bf9\u7684\u6848\u4f8b&#xff0c;\u5c31\u662f\u5751 6 \u7684\u771f\u5b9e\u5f62\u6001\u3002<\/span><\/span><\/p>\n<h2><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">\u516d\u3001Web \u521d\u59cb\u5316\u5411\u5bfc<\/span><\/span><\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u6d4f\u89c8\u5668\u6253\u5f00 http:\/\/10.10.10.77:8080&#xff0c;\u56db\u6b65\u8d70\u5b8c\u521d\u59cb\u5316&#xff1a;<\/span><\/span><\/p>\n<li><span style=\"color:#333333\">\u89e3\u9501&#xff1a;\u521d\u59cb\u7ba1\u7406\u5458\u5bc6\u7801\u5728 \/var\/lib\/jenkins\/secrets\/initialAdminPassword\u3002<\/span><\/li>\n<li><span style=\"color:#333333\">\u63d2\u4ef6&#xff1a;\u9009\u300c\u5b89\u88c5\u63a8\u8350\u7684\u63d2\u4ef6\u300d\u3002\u63a8\u8350\u96c6\u5df2\u5305\u542b\u540e\u7eed\u6d41\u6c34\u7ebf\u9700\u8981\u7684\u5168\u90e8\u7ec4\u4ef6\u2014\u2014pipeline \u5168\u5bb6\u6876\u3001git\u3001credentials-binding\u3001ssh-slaves\u3001\u4e2d\u6587\u8bed\u8a00\u5305\u7b49&#xff0c;\u88c5\u5b8c\u5373\u53ef&#xff0c;\u4e0d\u8981\u9010\u4e2a\u624b\u9009\u3002<\/span><\/li>\n<li><span style=\"color:#333333\">\u521b\u5efa\u7ba1\u7406\u5458&#xff1a;\u672c\u673a\u521b\u5efa\u8d26\u53f7 peng\u3002\u8fd9\u4e00\u6b65\u521b\u5efa\u7684\u5c31\u662f\u8d85\u7ea7\u7ba1\u7406\u5458&#xff0c;\u4e0d\u8981\u7ee7\u7eed\u7528\u9ed8\u8ba4 admin\u3002<\/span><\/li>\n<li><span style=\"color:#333333\">\u5b9e\u4f8b\u5730\u5740&#xff1a;\u586b http:\/\/10.10.10.77:8080&#xff0c;\u5b83\u5f71\u54cd\u90ae\u4ef6\u91cc\u7684\u94fe\u63a5\u548c Webhook \u56de\u663e\u5730\u5740\u3002<\/span><\/li>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u521d\u59cb\u5316\u5b8c\u6210\u540e&#xff0c;\u63d2\u4ef6\u843d\u76d8\u5728 \/var\/lib\/jenkins\/plugins&#xff0c;\u53ef\u4ee5 ls \u786e\u8ba4&#xff1a;workflow \u7cfb\u5217\u662f\u58f0\u660e\u5f0f\u6d41\u6c34\u7ebf\u7684\u672c\u4f53&#xff0c;git \u4e0e git-client \u8d1f\u8d23\u62c9\u4ee3\u7801&#xff0c;localization-zh-cn \u8ba9\u754c\u9762\u53d8\u4e2d\u6587\u3002\u7b2c 6 \u7bc7\u914d\u6d41\u6c34\u7ebf\u65f6&#xff0c;\u9700\u8981\u7684\u63d2\u4ef6\u6b64\u523b\u5df2\u5168\u90e8\u5c31\u4f4d\u3002<\/span><\/span><\/p>\n<h2><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">\u4e03\u3001\u5b89\u5168\u7b56\u7565&#xff1a;Webhook \u80fd\u4e0d\u80fd\u89e6\u53d1&#xff0c;\u73b0\u5728\u5c31\u5b9a\u4e86<\/span><\/span><\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u521d\u59cb\u5316\u5411\u5bfc\u9ed8\u8ba4\u751f\u6210\u7684\u5b89\u5168\u914d\u7f6e&#xff0c;\u5b9e\u6d4b\u5728 \/var\/lib\/jenkins\/config.xml \u91cc\u662f\u4e09\u4ef6\u4e8b&#xff1a;\u5f00\u542f\u5b89\u5168\u3001\u6388\u6743\u7b56\u7565\u4e3a\u300c\u767b\u5f55\u7528\u6237\u62e5\u6709\u5168\u90e8\u6743\u9650\u3001\u533f\u540d\u65e0\u4efb\u4f55\u6743\u9650\u300d\u3001\u5f00\u542f CSRF \u9632\u62a4&#xff08;crumb&#xff09;\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u8fd9\u4e2a\u9ed8\u8ba4\u914d\u7f6e\u5f88\u5b89\u5168&#xff0c;\u4f46\u7acb\u523b\u4ea7\u751f\u4e00\u4e2a\u8fde\u9501\u95ee\u9898&#xff1a;GitLab \u7684 Webhook \u662f\u533f\u540d\u8bf7\u6c42&#xff0c;\u63a8\u8fc7\u6765\u76f4\u63a5\u88ab 403 \u62d2\u7edd\u3002\u4e24\u79cd\u89e3\u6cd5&#xff0c;\u9009\u54ea\u79cd\u662f\u539f\u5219\u95ee\u9898&#xff1a;<\/span><\/span><\/p>\n<ul>\n<li><span style=\"color:#333333\">\u653e\u5f00\u533f\u540d\u6784\u5efa\u6743\u9650\u2014\u2014\u4e0d\u63a8\u8350\u3002\u7b49\u4e8e\u628a\u6784\u5efa\u5165\u53e3\u5411\u6240\u6709\u4eba\u655e\u5f00\u3002<\/span><\/li>\n<li><span style=\"color:#333333\">\u7528 API Token \u505a Basic \u8ba4\u8bc1\u2014\u2014\u672c\u73af\u5883\u91c7\u7528&#xff0c;\u7b2c 6 \u7bc7\u6d41\u6c34\u7ebf\u96c6\u6210\u65f6\u843d\u5730\u3002<\/span><\/li>\n<\/ul>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">crumb \u7684\u5f71\u54cd\u8303\u56f4\u4e5f\u4ea4\u4ee3\u4e00\u4e0b&#xff1a;\u7528 curl \u76f4\u63a5 POST \u8c03 Jenkins API \u9700\u8981\u643a\u5e26 crumb \u4ee4\u724c&#xff1b;\u4f46\u7528\u6784\u5efa\u4ee4\u724c&#xff08;?token&#061;&#xff09;\u89e6\u53d1\u7684\u63a5\u53e3\u4e0d\u53d7 crumb \u9650\u5236\u2014\u2014\u8fd9\u6b63\u662f Webhook \u573a\u666f\u9009\u6784\u5efa\u4ee4\u724c\u7684\u539f\u56e0\u4e4b\u4e00\u3002\u6b64\u5904\u5148\u57cb\u4e2a\u4f0f\u7b14&#xff0c;\u7b2c 6\u30017 \u7bc7\u5c55\u5f00\u3002<\/span><\/span><\/p>\n<h2><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">\u516b\u3001\u751f\u6210 API Token<\/span><\/span><\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u8def\u5f84&#xff1a;\u53f3\u4e0a\u89d2\u8d26\u53f7 \u2192 \u8bbe\u7f6e \u2192 API Token \u2192 \u6dfb\u52a0\u65b0 Token\u3002\u751f\u6210\u540e\u53ea\u663e\u793a\u4e00\u6b21&#xff0c;\u7acb\u523b\u590d\u5236\u4fdd\u5b58\u3002\u8fd9\u4e2a Token \u5c31\u662f\u7b2c 2 \u7bc7 Webhook URL \u91cc\u5185\u5d4c\u7684\u90a3\u4e00\u4e2a\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u547d\u4ee4\u884c\u8c03\u7528\u9a8c\u8bc1&#xff08;\u7b2c 6 \u7bc7\u914d\u597d\u4efb\u52a1\u540e\u53ef\u7528&#xff09;&#xff1a;<\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">curl -u &#039;peng:&lt;API_TOKEN&gt;&#039; \\\\<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u00a0\u00a0&#034;http:\/\/10.10.10.77:8080\/job\/cicd-demo\/build?token&#061;&lt;\u6784\u5efa\u4ee4\u724c&gt;&#034;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\"># \u67e5\u6784\u5efa\u7ed3\u679c<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">curl -s -u &#039;peng:&lt;API_TOKEN&gt;&#039; \\\\<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u00a0\u00a0&#034;http:\/\/10.10.10.77:8080\/job\/cicd-demo\/api\/json?tree&#061;builds[number,result]&#034;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u5b89\u5168\u63d0\u793a&#xff1a;\u811a\u672c\u91cc\u5185\u8054 Token \u4f1a\u7559\u5728 history&#xff0c;\u6b63\u5f0f\u73af\u5883\u5efa\u8bae\u7528 netrc \u6587\u4ef6\u6216 Jenkins CLI\u3002<\/span><\/span><\/p>\n<h2><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">\u4e5d\u3001\u65e5\u5e38\u8fd0\u7ef4\u4e0e\u5907\u4efd<\/span><\/span><\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">systemctl restart jenkins \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0# \u91cd\u542f&#xff08;\u4f1a\u4e2d\u65ad\u6b63\u5728\u8dd1\u7684\u6784\u5efa&#xff09;<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">journalctl -u jenkins &#8211;since today \u00a0\u00a0# \u4eca\u65e5\u65e5\u5fd7<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">grep -iE &#039;error|exception&#039; \/var\/log\/jenkins\/jenkins.log | tail -50<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u5907\u4efd&#xff08;\u70ed\u5907\u5148\u505c\u670d\u52a1\u6700\u7a33&#xff09;&#xff1a;<\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">tar czf \/root\/jenkins-backup.tar.gz \\\\<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u00a0\u00a0\/var\/lib\/jenkins\/config.xml \\\\<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u00a0\u00a0\/var\/lib\/jenkins\/credentials.xml \\\\<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u00a0\u00a0\/var\/lib\/jenkins\/jobs \\\\<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u00a0\u00a0\/var\/lib\/jenkins\/nodes \\\\<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u00a0\u00a0\/var\/lib\/jenkins\/users \\\\<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u00a0\u00a0\/var\/lib\/jenkins\/secrets \\\\<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"background-color:#f5f6f8\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u00a0\u00a0\/etc\/systemd\/system\/jenkins.service.d<\/span><\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u4e00\u7ec4\u5bb9\u6613\u8e29\u96f7\u7684\u5173\u7cfb&#xff1a;secrets \u76ee\u5f55\u4e0e credentials.xml \u662f\u6210\u5bf9\u7684\u2014\u2014\u53ea\u62f7 credentials.xml \u4e0d\u62f7 secrets&#xff0c;\u6062\u590d\u540e\u6240\u6709\u51ed\u636e\u90fd\u89e3\u4e0d\u5f00&#xff0c;\u7b49\u4e8e\u767d\u5907\u3002<\/span><\/span><\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u672c\u673a\u6700\u7ec8\u72b6\u6001\u6838\u5bf9\u8868&#xff1a;<\/span><\/span><\/p>\n<table align=\"center\" border=\"1\" cellspacing=\"0\" style=\"width:450.0000pt\">\n<tbody>\n<tr>\n<td style=\"background-color:#1f4e79;width:160.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:center\"><span style=\"color:#333333\"><span style=\"color:#ffffff\">\u9879\u76ee<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#1f4e79;width:290.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:center\"><span style=\"color:#333333\"><span style=\"color:#ffffff\">\u503c<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:160.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u670d\u52a1<\/span><\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:290.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">jenkins&#xff1a;active \/ enabled<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#eaf1f8;width:160.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u76d1\u542c<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#eaf1f8;width:290.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">8080 \u7aef\u53e3<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:160.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">JVM<\/span><\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:290.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">OpenJDK 21.0.13&#xff08;\/usr\/lib\/jvm\/java-21-openjdk&#xff09;<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#eaf1f8;width:160.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">JENKINS_HOME<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#eaf1f8;width:290.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\/var\/lib\/jenkins&#xff08;\u672a\u72ec\u7acb\u5206\u533a&#xff0c;\u589e\u957f\u98ce\u9669\u89c1\u7b2c 9 \u7bc7&#xff09;<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"vertical-align:top;width:160.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u6839\u5206\u533a\u5360\u7528<\/span><\/span><\/p>\n<\/td>\n<td style=\"vertical-align:top;width:290.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">4.9G \/ 46G&#xff08;11%&#xff09;<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span style=\"color:#1f4e79\"><span style=\"color:#1f4e79\">\u5341\u3001\u672c\u7ae0\u9a8c\u8bc1<\/span><\/span><\/h2>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">Jenkins \u63a7\u5236\u5668\u5c31\u7eea\u7684\u9a8c\u6536\u6807\u51c6&#xff0c;\u4e94\u6761&#xff1a;<\/span><\/span><\/p>\n<li><span style=\"color:#333333\">rpm -q jenkins \u8f93\u51fa 2.580.2&#xff1b;\u670d\u52a1 active \u4e14 enabled\u3002<\/span><\/li>\n<li><span style=\"color:#333333\">\/proc\/&lt;PID&gt;\/exe \u6307\u5411 java-21 \u8def\u5f84&#xff0c;JVM \u7248\u672c\u6838\u5bf9\u65e0\u8bef\u3002<\/span><\/li>\n<li><span style=\"color:#333333\">Web \u53ef\u767b\u5f55&#xff08;\u7ba1\u7406\u5458\u8d26\u53f7 peng&#xff09;&#xff0c;\u754c\u9762\u4e3a\u4e2d\u6587&#xff0c;\u63a8\u8350\u63d2\u4ef6\u5b89\u88c5\u5b8c\u6210\u3002<\/span><\/li>\n<li><span style=\"color:#333333\">API Token \u5df2\u751f\u6210\u5e76\u59a5\u5584\u4fdd\u5b58&#xff0c;\u53ea\u663e\u793a\u4e00\u6b21\u7684\u90a3\u6b21\u590d\u5236\u6ca1\u6709\u4e22\u3002<\/span><\/li>\n<li><span style=\"color:#333333\">override.conf \u4e09\u884c\u914d\u7f6e\u5728\u4f4d&#xff0c;systemctl cat jenkins \u80fd\u770b\u5230\u5408\u5e76\u540e\u7684\u6548\u679c\u3002<\/span><\/li>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\"><span style=\"color:#333333\"><span style=\"color:#333333\">\u6307\u6325\u5b98\u5c31\u4f4d&#xff0c;\u4f46\u624b\u4e0b\u8fd8\u6ca1\u6709\u5175\u3002\u4e0b\u4e00\u7bc7\u90e8\u7f72\u6784\u5efa\u8282\u70b9 build-agent\u2014\u2014\u771f\u6b63\u8dd1 mvn package \u7684\u5730\u65b9\u3002<\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b98\u65b9 rpm  systemd \u6258\u7ba1  OpenJDK 21&#xff0c;\u4ece\u5b89\u88c5\u5230\u521d\u59cb\u5316\u5168\u6d41\u7a0b \u7cfb\u5217\u7b2c 3 \u7bc7 \u00b7 \u5171 10 \u7bc7 \u73af\u5883\u7248\u672c&#xff1a;Jenkins 2.580.2 LTS \/ OpenJDK 21.0.13 \u76ee \u00a0\u5f55 \u4e00\u3001\u672c\u7bc7\u5728\u4e3b\u7ebf\u4e2d\u7684\u4f4d\u7f6e \u4e8c\u3001\u5b89\u88c5 OpenJDK 21 \u4e09\u3001\u5b98\u65b9 yum \u6e90\u4e0e\u5b89\u88c5 \u56db\u3001systemd \u6258\u7ba1&#xff1a;drop-in \u8986\u76d6 \u4e94\u3001\u542f\u52a8\u4e0e\u9a8c\u8bc1 \u516d\u3001Web \u521d\u59cb\u5316\u5411\u5bfc \u4e03\u3001\u5b89\u5168\u7b56\u7565&#xff1a;Webhook \u80fd\u4e0d\u80fd\u89e6<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[597,392,44],"topic":[],"class_list":["post-123446","post","type-post","status-publish","format-standard","hentry","category-server","tag-ci-cd","tag-jenkins","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5f6d\u5927\u5e05\u7684CI\/CD\u5b9e\u6218\u7b2c3\u7bc7 \u8c03\u5ea6\u4e2d\u67a2\uff1aJenkins \u63a7\u5236\u5668\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/123446.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5f6d\u5927\u5e05\u7684CI\/CD\u5b9e\u6218\u7b2c3\u7bc7 \u8c03\u5ea6\u4e2d\u67a2\uff1aJenkins \u63a7\u5236\u5668\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5b98\u65b9 rpm systemd \u6258\u7ba1 OpenJDK 21&#xff0c;\u4ece\u5b89\u88c5\u5230\u521d\u59cb\u5316\u5168\u6d41\u7a0b \u7cfb\u5217\u7b2c 3 \u7bc7 \u00b7 \u5171 10 \u7bc7 \u73af\u5883\u7248\u672c&#xff1a;Jenkins 2.580.2 LTS \/ OpenJDK 21.0.13 \u76ee \u00a0\u5f55 \u4e00\u3001\u672c\u7bc7\u5728\u4e3b\u7ebf\u4e2d\u7684\u4f4d\u7f6e \u4e8c\u3001\u5b89\u88c5 OpenJDK 21 \u4e09\u3001\u5b98\u65b9 yum \u6e90\u4e0e\u5b89\u88c5 \u56db\u3001systemd \u6258\u7ba1&#xff1a;drop-in \u8986\u76d6 \u4e94\u3001\u542f\u52a8\u4e0e\u9a8c\u8bc1 \u516d\u3001Web \u521d\u59cb\u5316\u5411\u5bfc \u4e03\u3001\u5b89\u5168\u7b56\u7565&#xff1a;Webhook \u80fd\u4e0d\u80fd\u89e6\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/123446.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-07T00:48:48+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/123446.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/123446.html\",\"name\":\"\u5f6d\u5927\u5e05\u7684CI\/CD\u5b9e\u6218\u7b2c3\u7bc7 \u8c03\u5ea6\u4e2d\u67a2\uff1aJenkins \u63a7\u5236\u5668\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-07T00:48:48+00:00\",\"dateModified\":\"2026-11-07T00:48:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/123446.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/123446.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/123446.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5f6d\u5927\u5e05\u7684CI\/CD\u5b9e\u6218\u7b2c3\u7bc7 \u8c03\u5ea6\u4e2d\u67a2\uff1aJenkins \u63a7\u5236\u5668\u90e8\u7f72\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5f6d\u5927\u5e05\u7684CI\/CD\u5b9e\u6218\u7b2c3\u7bc7 \u8c03\u5ea6\u4e2d\u67a2\uff1aJenkins \u63a7\u5236\u5668\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/123446.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5f6d\u5927\u5e05\u7684CI\/CD\u5b9e\u6218\u7b2c3\u7bc7 \u8c03\u5ea6\u4e2d\u67a2\uff1aJenkins \u63a7\u5236\u5668\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5b98\u65b9 rpm systemd \u6258\u7ba1 OpenJDK 21&#xff0c;\u4ece\u5b89\u88c5\u5230\u521d\u59cb\u5316\u5168\u6d41\u7a0b \u7cfb\u5217\u7b2c 3 \u7bc7 \u00b7 \u5171 10 \u7bc7 \u73af\u5883\u7248\u672c&#xff1a;Jenkins 2.580.2 LTS \/ OpenJDK 21.0.13 \u76ee \u00a0\u5f55 \u4e00\u3001\u672c\u7bc7\u5728\u4e3b\u7ebf\u4e2d\u7684\u4f4d\u7f6e \u4e8c\u3001\u5b89\u88c5 OpenJDK 21 \u4e09\u3001\u5b98\u65b9 yum \u6e90\u4e0e\u5b89\u88c5 \u56db\u3001systemd \u6258\u7ba1&#xff1a;drop-in \u8986\u76d6 \u4e94\u3001\u542f\u52a8\u4e0e\u9a8c\u8bc1 \u516d\u3001Web \u521d\u59cb\u5316\u5411\u5bfc \u4e03\u3001\u5b89\u5168\u7b56\u7565&#xff1a;Webhook \u80fd\u4e0d\u80fd\u89e6","og_url":"https:\/\/www.wsisp.com\/helps\/123446.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-07T00:48:48+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/123446.html","url":"https:\/\/www.wsisp.com\/helps\/123446.html","name":"\u5f6d\u5927\u5e05\u7684CI\/CD\u5b9e\u6218\u7b2c3\u7bc7 \u8c03\u5ea6\u4e2d\u67a2\uff1aJenkins \u63a7\u5236\u5668\u90e8\u7f72 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-07T00:48:48+00:00","dateModified":"2026-11-07T00:48:48+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/123446.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/123446.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/123446.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5f6d\u5927\u5e05\u7684CI\/CD\u5b9e\u6218\u7b2c3\u7bc7 \u8c03\u5ea6\u4e2d\u67a2\uff1aJenkins \u63a7\u5236\u5668\u90e8\u7f72"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/123446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=123446"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/123446\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=123446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=123446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=123446"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=123446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}