{"id":36214,"date":"2025-05-08T09:06:17","date_gmt":"2025-05-08T01:06:17","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/36214.html"},"modified":"2025-05-08T09:06:17","modified_gmt":"2025-05-08T01:06:17","slug":"window-%e5%ae%89%e8%a3%85gitlab%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%ac%94%e8%ae%b0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/36214.html","title":{"rendered":"window \u5b89\u88c5GitLab\u670d\u52a1\u5668\u7b14\u8bb0"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E8%A7%86%E9%A2%91%EF%BC%9A-toc\" style=\"margin-left:80px\">\u89c6\u9891&#xff1a;<\/p>\n<p id=\"%E8%B5%84%E6%BA%90%EF%BC%9A-toc\" style=\"margin-left:80px\">\u8d44\u6e90&#xff1a;<\/p>\n<p id=\"Linux%20CeneOS7%EF%BC%9A-toc\" style=\"margin-left:120px\">Linux CeneOS7&#xff1a;<\/p>\n<p id=\"VMware%EF%BC%9A-toc\" style=\"margin-left:120px\">VMware&#xff1a;<\/p>\n<p id=\"Linux%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%20yum%20install%20vim%20-y-toc\" style=\"margin-left:120px\">Linux\u65e0\u6cd5\u5b89\u88c5 yum install vim -y<\/p>\n<p id=\"1.%E6%89%8B%E5%8A%A8%E5%88%9B%E5%BB%BA%E7%9B%AE%E5%BD%95-toc\" style=\"margin-left:160px\">1.\u624b\u52a8\u521b\u5efa\u76ee\u5f55<\/p>\n<p id=\"2.%E4%B8%8B%E8%BD%BDrepo-toc\" style=\"margin-left:160px\">2.\u4e0b\u8f7drepo<\/p>\n<p id=\"PS-toc\" style=\"margin-left:120px\">PS<\/p>\n<p id=\"%E8%A1%A5%E5%85%85%E8%A7%86%E9%A2%91%E4%B8%8D%E5%8F%AF%E5%A4%8D%E5%88%B6%E7%9A%84%E4%BB%A3%E7%A0%81-toc\" style=\"margin-left:80px\">\u8865\u5145\u89c6\u9891\u4e0d\u53ef\u590d\u5236\u7684\u4ee3\u7801<\/p>\n<p style=\"margin-left:80px\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u5b89\u88c5GitLab<\/p>\n<p id=\"*%E4%BF%AE%E6%94%B9root%E7%94%A8%E6%88%B7%E5%AF%86%E7%A0%81%E7%9B%B8%E5%85%B3%EF%BC%88%E6%88%91%E5%8D%A1%E5%9C%A8%E7%AC%AC%E4%B8%80%E6%AD%A5%E5%B0%B1%E7%9B%B4%E6%8E%A5%E6%94%BE%E5%BC%83%E4%BA%86%E8%BF%99%E4%B8%AA%E6%93%8D%E4%BD%9C%EF%BC%89-toc\" style=\"margin-left:120px\">*\u4fee\u6539root\u7528\u6237\u5bc6\u7801\u76f8\u5173&#xff08;\u6211\u5361\u5728\u7b2c\u4e00\u6b65\u5c31\u76f4\u63a5\u653e\u5f03\u4e86\u8fd9\u4e2a\u64cd\u4f5c&#xff09;<\/p>\n<p id=\"*%E9%81%87%E5%88%B0%E7%9A%84%E9%97%AE%E9%A2%98-toc\" style=\"margin-left:80px\">*\u9047\u5230\u7684\u95ee\u9898<\/p>\n<p id=\"%E5%88%9D%E5%A7%8B%E5%AF%86%E7%A0%81-toc\" style=\"margin-left:160px\">\u521d\u59cb\u5bc6\u7801<\/p>\n<p id=\"%E6%97%A0%E6%B3%95%E8%AE%BF%E9%97%AEgitlab%E7%BD%91%E9%A1%B5-toc\" style=\"margin-left:160px\">\u65e0\u6cd5\u8bbf\u95eegitlab\u7f51\u9875<\/p>\n<p id=\"%E7%BB%99%E9%98%B2%E7%81%AB%E5%A2%99%E6%B7%BB%E5%8A%A0%E7%AB%AF%E5%8F%A3%E6%8F%90%E7%A4%BAALREADY_ENABLED%3A1001%20%3D%3Atcp-toc\" style=\"margin-left:160px\">\u7ed9\u9632\u706b\u5899\u6dfb\u52a0\u7aef\u53e3\u63d0\u793aALREADY_ENABLED:1001 &#061;:tcp<\/p>\n<p id=\"VIM%E7%BC%96%E8%BE%91%E4%BF%9D%E5%AD%98-toc\" style=\"margin-left:80px\">VIM\u7f16\u8f91\u4fdd\u5b58<\/p>\n<p id=\"%E8%99%9A%E6%8B%9F%E6%9C%BA%E8%87%AA%E5%8A%A8%E5%90%AF%E5%8A%A8%E8%AE%BE%E7%BD%AE-toc\" style=\"margin-left:80px\">\u865a\u62df\u673a\u81ea\u52a8\u542f\u52a8\u8bbe\u7f6e<\/p>\n<p id=\"%E7%AC%AC%E4%B8%80%E7%A7%8D%E6%96%B9%E6%B3%95%EF%BC%88%E7%9B%AE%E5%89%8D%E6%B2%A1%E6%88%90%E5%8A%9F%E8%BF%98%E5%9C%A8%E5%B0%9D%E8%AF%95%EF%BC%89%EF%BC%9A-toc\" style=\"margin-left:120px\">\u7b2c\u4e00\u79cd\u65b9\u6cd5&#xff08;\u76ee\u524d\u6ca1\u6210\u529f\u8fd8\u5728\u5c1d\u8bd5&#xff09;&#xff1a;<\/p>\n<p id=\"%E7%AC%AC%E4%BA%8C%E7%A7%8D%E6%96%B9%E6%B3%95%EF%BC%88%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%EF%BC%89%EF%BC%9A-toc\" style=\"margin-left:120px\">\u7b2c\u4e8c\u79cd\u65b9\u6cd5&#xff08;\u53ef\u4ee5\u4f7f\u7528&#xff09;&#xff1a;<\/p>\n<p id=\"%E6%97%A0%E6%B3%95%E6%9B%B4%E6%96%B0%E8%87%AA%E5%8A%A8%E5%90%AF%E5%8A%A8%E9%85%8D%E7%BD%AE-toc\" style=\"margin-left:120px\">\u65e0\u6cd5\u66f4\u65b0\u81ea\u52a8\u542f\u52a8\u914d\u7f6e<\/p>\n<p id=\"Linux%E6%8A%8A%2Fetc%2Fpasswd%E6%96%87%E4%BB%B6%E7%8E%A9%E5%9D%8F%E7%9A%84%E4%BF%AE%E5%A4%8D%E6%96%B9%E5%BC%8F-toc\" style=\"margin-left:120px\">Linux\u628a\/etc\/passwd\u6587\u4ef6\u73a9\u574f\u7684\u4fee\u590d\u65b9\u5f0f<\/p>\n<p id=\"Linux%E6%89%BE%E5%9B%9Eroot%E5%AF%86%E7%A0%81-toc\" style=\"margin-left:120px\">Linux\u627e\u56deroot\u5bc6\u7801<\/p>\n<hr id=\"hr-toc\" \/>\n<\/p>\n<h4 id=\"%E8%A7%86%E9%A2%91%EF%BC%9A\">\u89c6\u9891&#xff1a;<\/h4>\n<p>windows\u4e0b\u5185\u7f51\u672c\u5730\u90e8\u7f72gitlab<\/p>\n<\/p>\n<h4 id=\"%E8%B5%84%E6%BA%90%EF%BC%9A\">\u8d44\u6e90&#xff1a;<\/h4>\n<h5 id=\"Linux%20CeneOS7%EF%BC%9A\">Linux CeneOS7&#xff1a;<\/h5>\n<p>Everything\u548cDVD\u7684\u7248\u672c\u90fd\u80fd\u90e8\u7f72\u3002\u6211\u4e5f\u4f7f\u7528\u4e86\u547d\u4ee4\u884c\u754c\u9762(CLI)\u548c\u56fe\u5f62\u7528\u6237\u754c\u9762(GUI)\u8fdb\u884c\u4e86\u6d4b\u8bd5\u3002\u90fd\u662f\u53ef\u4ee5\u7684\u3002CLI\u636e\u8bf4\u76f8\u5bf9\u800c\u8a00\u8981\u7a33\u5b9a\u4e00\u4e9b\u3002GUI\u7684\u754c\u9762\u76f8\u5bf9\u4e8e\u627e\u4e1c\u897f\u8981\u76f4\u89c2\u4e00\u4e9b\u3002\u6309\u7167\u4e2a\u4eba\u559c\u597d\u5c31\u597d\u4e86\u3002\u53cd\u6b63GUI\u7684\u60c5\u51b5\u4e0b\u4e5f\u80fd\u4f7f\u7528\u547d\u4ee4\u884c\u3002\u6211\u53cd\u6b63\u662f\u4f7f\u7528\u4e86GUI\u8fd8\u662f\u7528\u7684\u547d\u4ee4\u884c\u6dfb\u52a0\u76f8\u5173\u4e1c\u897f\u3002\u8fd9\u4e9b\u63cf\u8ff0\u6027\u8bed\u53e5\u53ef\u80fd\u6709\u9519\u3002\u53cd\u6b63\u8868\u8fbe\u7684\u5c31\u662f\u8fd9\u4e2a\u610f\u601d\u3002\u55b7\u7684\u65f6\u5019\u8f7b\u70b9\u5c31\u884c\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"619\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010612-681c0384d65c9.png\" width=\"852\" \/><\/p>\n<p>linux\u64cd\u4f5c\u7cfb\u7edf\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u7684\u57fa\u672c\u73af\u5883\u542b\u4e49_linux\u5df2\u9009\u73af\u5883\u9644\u52a0\u9009\u9879-CSDN\u535a\u5ba2<\/p>\n<p>GUI&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"652\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010613-681c038512f31.png\" width=\"998\" \/><\/p>\n<h6><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"793\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010613-681c03854420e.png\" width=\"1048\" \/><\/h6>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"778\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010613-681c0385aacff.png\" width=\"1073\" \/><\/p>\n<h6>CLI:<\/h6>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"641\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010614-681c0386151fc.png\" width=\"857\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"873\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010614-681c038645741.png\" width=\"1702\" \/><\/p>\n<\/p>\n<p>CentOS7 \u955c\u50cf\u4e0b\u8f7d\u5730\u5740<\/p>\n<h5 id=\"VMware%EF%BC%9A\">VMware&#xff1a;<\/h5>\n<p>\u865a\u62df\u673a17.6\u4e0b\u8f7d\u5730\u5740<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"127\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010614-681c0386d959b.png\" width=\"276\" \/><\/p>\n<\/p>\n<p>\u5b89\u88c5vim\u7f16\u8f91\u5668<br \/>\nyum install vim -y<\/p>\n<p>\u7cfb\u7edf\u73af\u5883\u5347\u7ea7&#xff08;\u6211\u7b2c\u4e00\u6b21\u6ca1\u6709\u4f7f\u7528\u3002\u7b2c\u4e8c\u6b21\u6210\u529f\u4f7f\u7528\u4e86\u7684&#xff09;\u3002\u4e0d\u77e5\u9053\u5f71\u54cdGitlab\u90e8\u7f72\u4e0d<br \/>\nyum update -y <\/p>\n<h5 id=\"Linux%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%20yum%20install%20vim%20-y\"><span style=\"color:#fe2c24\">Linux\u65e0\u6cd5\u5b89\u88c5 yum install vim -y<\/span><\/h5>\n<h6 id=\"1.%E6%89%8B%E5%8A%A8%E5%88%9B%E5%BB%BA%E7%9B%AE%E5%BD%95\">1.\u624b\u52a8\u521b\u5efa\u76ee\u5f55<\/h6>\n<p>sudo mkdir -p \/etc\/yum.repos.d<\/p>\n<h6 id=\"2.%E4%B8%8B%E8%BD%BDrepo\">2.\u4e0b\u8f7drepo<\/h6>\n<p>repo\u4e0b\u8f7d\u53c2\u8003<\/p>\n<p>curl -o \/etc\/yum.repos.d\/CentOS-Base.repo https:\/\/mirrors.aliyun.com\/repo\/Centos-7.repo<\/p>\n<h5 id=\"PS\"><span style=\"color:#fe2c24\">PS<\/span><\/h5>\n<p><span style=\"color:#fe2c24\">\u6309\u7167\u89c6\u9891\u7684\u505a\u6cd5\u4f60\u4f1a\u53d1\u73b0\u4f60\u7684GitLab\u6210\u529f\u90e8\u7f72\u4ee5\u540e\u3002\u4e5f\u53ea\u80fd\u5728\u4f60\u7684\u865a\u62df\u673a\u6240\u5728\u7684\u7535\u8111\u767b\u5f55\u3002\u5c40\u57df\u7f51\u7684\u5176\u4ed6\u7535\u8111\u4e0d\u80fd\u6b63\u5e38\u8bbf\u95ee\u3002\u6240\u4ee5\u4f60\u9700\u8981\u4fee\u6539\u8fd9\u4e2a\u3002\u865a\u62df\u673a\u521b\u5efa\u4ee5\u540e\u5c31\u9700\u8981\u628a\u8fd9\u4e2a\u8fdb\u884c\u4fee\u6539\u4e86\u3002\u4e0d\u8981\u7528\u9ed8\u8ba4\u7684NAT\u6a21\u5f0f\u3002\u4e0d\u7136\u540e\u9762\u4f60\u8fd8\u8981\u53bb\u91cd\u65b0\u914d\u7f6e\u4f60\u7684<\/span><span style=\"color:#fe2c24\">vim \/etc\/gitlab\/gitlab.rb<\/span><span style=\"color:#fe2c24\">\u7684\u8fde\u63a5\u5730\u5740\u3002\u624d\u80fd\u7ed9\u5c40\u57df\u7f51\u5176\u4ed6\u7535\u8111\u4f7f\u7528\u3002<\/span><\/p>\n<p>VM\u4e2d\u7684\u865a\u62df\u673a&#xff0c;\u53ea\u6709\u672c\u673a\u80fd\u8bbf\u95ee\u5230&#xff0c;\u5c40\u57df\u7f51\u7684\u5176\u4ed6\u7535\u8111\u65e0\u6cd5\u8bbf\u95ee_vm\u4e3b\u673a\u53ef\u4ee5\u8fdc\u7a0b\u684c\u9762\u865a\u62df\u673a,\u5176\u4ed6\u673a\u5668\u4e0d\u80fd\u8fde\u63a5-CSDN\u535a\u5ba2<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"795\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010614-681c0386e17f3.png\" width=\"735\" \/><\/p>\n<\/p>\n<h4 id=\"%E8%A1%A5%E5%85%85%E8%A7%86%E9%A2%91%E4%B8%8D%E5%8F%AF%E5%A4%8D%E5%88%B6%E7%9A%84%E4%BB%A3%E7%A0%81\">\u8865\u5145\u89c6\u9891\u4e0d\u53ef\u590d\u5236\u7684\u4ee3\u7801<\/h4>\n<\/p>\n<p>\u5b89\u88c5SSH\u534f\u8bae<br \/>\nyum install -y curl policycoreutils-python openssh-server<\/p>\n<p>\u8bbe\u7f6eSSH \u670d\u52a1\u5f00\u673a\u81ea\u542f\u52a8<br \/>\nsystemctl enable sshd<\/p>\n<p>\u542f\u52a8SSH\u670d\u52a1<br \/>\nsystemctl start sshd<\/p>\n<p>\u5b89\u88c5\u9632\u706b\u5899<br \/>\nyum install firewalld systemd -y<\/p>\n<p>\u5f00\u542f\u9632\u706b\u5899<br \/>\nservice firewalld start<\/p>\n<p>\u6dfb\u52a0HTTP\u670d\u52a1<br \/>\nfirewall-cmd &#8211;permanent &#8211;add-service&#061;http<\/p>\n<p>\u91cd\u542f\u9632\u706b\u5899<br \/>\nsystemctl reload firewalld<\/p>\n<p>\u5b89\u88c5Postfix<br \/>\nyum install postfix<\/p>\n<p>\u5c06postfix\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8<br \/>\nsystemctl enable postfix<\/p>\n<p>\u542f\u52a8postfix<br \/>\nsystemctl start postfix<\/p>\n<p>\u5b89\u88c5 wget<br \/>\nyum -y install wget<\/p>\n<h6 id=\"%E5%AE%89%E8%A3%85GitLab\">\u5b89\u88c5GitLab<\/h6>\n<p>wget\u4e0b\u8f7d\u6e05\u534e\u5927\u5b66\u5f00\u6e90\u955c\u50cfgitlab\u5b89\u88c5\u94fe\u63a5&#xff08;\u89c6\u9891\u4f7f\u7528\u7684\u662f\u8fd9\u4e2a\u3002\u4f46\u662f\u6211\u8fd9\u8fb9\u4f1a\u62a5403\u9519\u8bef&#xff09;<br \/>\nwget http:\/\/mirrors.tuna.tsinghua.edu.cn\/gitlab-ce\/yum\/el7\/gitlab-ce-17.1.1-ce.0.el7.x86_64.rpm<\/p>\n<p>\u6211\u4f7f\u7528\u7684\u662f\u8fd9\u4e2a&#xff1a;(\u5982\u679c\u5361\u8fdb\u5ea6\u6761\u4e86 \u6211\u662fctrl&#043;z \u7136\u540e\u91cd\u65b0\u4e0b\u7684)<br \/>\nwget &#8211;content-disposition https:\/\/packages.gitlab.com\/gitlab\/gitlab-ce\/packages\/el\/7\/gitlab-ce-17.6.4-ce.0.el7.x86_64.rpm\/download.rpm<\/p>\n<p>\u5b89\u88c5gitlab&#xff08;\u4e0b\u8f7d\u6210\u529f\u540e\u4fdd\u5b58\u7684\u90a3\u4e2a\u540d\u5b57&#xff09;<br \/>\nrpm -i gitlab-ce-17.6.4-ce.0.el7.x86_64.rpm.2<\/p>\n<p>\u4fee\u6539gitlab\u914d\u7f6e\u6587\u4ef6<br \/>\nvim \/etc\/gitlab\/gitlab.rb<\/p>\n<p>\u5c06\u8bbe\u7f6e\u597d\u7684\u7aef\u53e3\u53f7\u6dfb\u52a0\u5230\u9632\u706b\u5899<br \/>\nfirewall-cmd &#8211;zone&#061;public &#8211;add-port&#061;1001\/tcp &#8211;permanent<\/p>\n<p>\u91cd\u542f\u9632\u706b\u5899<br \/>\nsystemctl reload firewalld<\/p>\n<p>\u91cd\u7f6egitlab&#xff08;\u7b49\u5f85N\u4e45&#xff09;<br \/>\ngitlab-ctl reconfigure<\/p>\n<p>\u6839\u636e\u914d\u7f6e\u6587\u4ef6\u8bbe\u7f6e\u7684ip&#043;\u7aef\u53e3\u4f7f\u7528\u6d4f\u89c8\u5668\u767b\u9646<\/p>\n<p>\u6309\u9700\u4f7f\u7528<br \/>\n\u91cd\u542fgitlab<br \/>\ngitlab-ctl restart<\/p>\n<h5 id=\"*%E4%BF%AE%E6%94%B9root%E7%94%A8%E6%88%B7%E5%AF%86%E7%A0%81%E7%9B%B8%E5%85%B3%EF%BC%88%E6%88%91%E5%8D%A1%E5%9C%A8%E7%AC%AC%E4%B8%80%E6%AD%A5%E5%B0%B1%E7%9B%B4%E6%8E%A5%E6%94%BE%E5%BC%83%E4%BA%86%E8%BF%99%E4%B8%AA%E6%93%8D%E4%BD%9C%EF%BC%89\"><span style=\"color:#fe2c24\">*\u4fee\u6539root\u7528\u6237\u5bc6\u7801\u76f8\u5173&#xff08;\u6211\u5361\u5728\u7b2c\u4e00\u6b65\u5c31\u76f4\u63a5\u653e\u5f03\u4e86\u8fd9\u4e2a\u64cd\u4f5c&#xff09;<\/span><\/h5>\n<p>\u6253\u5f00gitlab\u63a7\u5236\u53f0&#xff08;\u7b49\u5f85N\u4e45\u3002\u81f3\u4eca\u8fd8\u5361\u5728\u8fd9\u4e00\u6b65&#xff09;<br \/>\ngitlab-rails console -e production<\/p>\n<p>\u627e\u5230\u8d26\u6237<br \/>\nuser&#061;User.where(id:1).first<\/p>\n<p>\u4fee\u6539\u5bc6\u7801<br \/>\nuser.password&#061;123456789<\/p>\n<p>\u4fdd\u5b58<br \/>\nuser.save!<\/p>\n<p>\u9000\u51fa<br \/>\nquit<\/p>\n<p>\u91cd\u542fgitlab<br \/>\ngitlab-ctl restart <\/p>\n<h5 id=\"\"><\/h5>\n<h4 id=\"*%E9%81%87%E5%88%B0%E7%9A%84%E9%97%AE%E9%A2%98\">*\u9047\u5230\u7684\u95ee\u9898<\/h4>\n<h6 id=\"%E5%88%9D%E5%A7%8B%E5%AF%86%E7%A0%81\">\u521d\u59cb\u5bc6\u7801<\/h6>\n<p>Liunx\u642d\u5efaGitLab\u670d\u52a1\u5668\u540e\u5fd8\u8bb0\u767b\u5f55\u5bc6\u7801\u7684\u89e3\u51b3\u65b9\u6cd5<\/p>\n<p>\u521d\u59cb\u5bc6\u7801<br \/>\ncat \/etc\/gitlab\/initial_root_password<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"282\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010615-681c038706294.png\" width=\"1200\" \/><\/p>\n<p>Gitlab\u600e\u4e48\u8bbe\u7f6e\u4e2d\u6587<\/p>\n<p>\u6211\u662f\u76f4\u63a5\u4f7f\u7528\u521d\u59cb\u5bc6\u7801\u767b\u5f55root\u7ba1\u7406\u5458\u8d26\u6237\u3002\u7136\u540e\u4fee\u6539\u7684\u5bc6\u7801\u3002\u6211\u4e00\u76f4\u5361\u5728\u540e\u9762\u6253\u5f00gitlab\u63a7\u5236\u53f0\u8fd9\u4e00\u6b65\u3002\u6240\u4ee5\u6211\u76f4\u63a5\u653e\u5f03\u4e86\u3002\u76f4\u63a5\u4f7f\u7528\u521d\u59cb\u5bc6\u7801\u8fdb\u884c\u767b\u5f55\u3002\u7136\u540e\u4fee\u6539\u5bc6\u7801\u3002 <span style=\"color:#fe2c24\">*\u8fd9\u4e2a\u5bc6\u7801\u6587\u4ef6\u53ea\u4f1a\u4fdd\u5b5824\u5c0f\u65f6\u300224\u5c0f\u65f6\u4ee5\u540e\u4f1a\u81ea\u52a8\u5220\u9664<\/span>\u3002\u7b2c\u4e00\u6b21GitLab\u5b89\u88c5\u6210\u529f\u4e86\u3002\u4f46\u662f\u4e0d\u77e5\u9053\u5bc6\u7801\u4e0d\u80fd\u767b\u5f55\u548c\u64cd\u4f5c\u5c31\u662f\u56e0\u4e3a\u8fd9\u4e2a\u95ee\u9898\u3002\u6211\u53c8\u4e0d\u77e5\u9053\u600e\u4e48\u89e3\u51b3\u3002\u6240\u4ee5\u7b2c\u4e8c\u6b21\u91cd\u65b0\u5b89\u88c5\u3002\u5c31\u9a6c\u4e0a\u8fdb\u884c\u4fee\u6539\u4e86\u3002<\/p>\n<\/p>\n<h6 id=\"%E6%97%A0%E6%B3%95%E8%AE%BF%E9%97%AEgitlab%E7%BD%91%E9%A1%B5\">\u65e0\u6cd5\u8bbf\u95eegitlab\u7f51\u9875<\/h6>\n<p>\u5728vmware\u5b89\u88c5gitlab,\u542f\u52a8gitlab\u540e&#xff0c;\u5728\u672c\u5730\u6d4f\u89c8\u5668\u8bbf\u95ee\u670d\u52a1\u5668\u4e4b\u540e\u663e\u793a\u65e0\u6cd5\u8bbf\u95ee\u6b64\u7f51\u7ad9<\/p>\n<p>\u6211\u8fd9\u8fb9\u662f\u9632\u706b\u5899\u7684\u539f\u56e0\u3002\u56e0\u4e3a\u6211\u540e\u9762\u76f4\u63a5\u8df3\u8fc7\u4e86\u9632\u706b\u5899\u76f8\u5173\u7684\u4ee3\u7801\u3002\u4f46\u662f\u6211\u660e\u660e\u90fd\u6ca1\u6709\u5b89\u88c5\u9632\u706b\u5899\u8fd8\u662f\u88ab\u5899\u4e86\u3002<\/p>\n<p>\u67e5\u770b\u9632\u706b\u5899\u72b6\u6001<br \/>\nsystemctl status firewalld <\/p>\n<h6 id=\"%E2%80%8B%E7%BC%96%E8%BE%91\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"134\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010615-681c0387496e8.png\" width=\"859\" \/><\/h6>\n<p>\u5173\u95ed\u9632\u706b\u5899<br \/>\nservice firewalld stop <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"39\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010615-681c038759c50.png\" width=\"442\" \/><\/p>\n<p>\u6211\u8fd9\u8fb9\u5c31\u80fd\u767b\u5f55\u4e86\u3002<\/p>\n<p>\u6211\u540e\u9762\u8fd8\u662f\u628a\u7aef\u53e3\u53f7\u6dfb\u52a0\u8fdb\u4e86\u9632\u706b\u5899\u4e2d\u3002\u6211\u8fd9\u8fb9\u4e5f\u5efa\u8bae\u8fd9\u6837\u64cd\u4f5c\u3002\u4e0d\u7136\u9664\u975e\u4f60\u77e5\u9053\u600e\u4e48\u81ea\u52a8\u5173\u95ed\u9632\u706b\u5899\u3002\u4e0d\u7136\u6bcf\u6b21\u90fd\u8981\u5173\u95ed\u4e00\u6b21\u4ee5\u540e\u624d\u80fd\u6253\u5f00\u9875\u9762\u3002<\/p>\n<h6 id=\"%E7%BB%99%E9%98%B2%E7%81%AB%E5%A2%99%E6%B7%BB%E5%8A%A0%E7%AB%AF%E5%8F%A3%E6%8F%90%E7%A4%BAALREADY_ENABLED%3A1001%20%3D%3Atcp\">\u7ed9\u9632\u706b\u5899\u6dfb\u52a0\u7aef\u53e3\u63d0\u793aALREADY_ENABLED:1001 &#061;:tcp<\/h6>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"61\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010615-681c0387634fe.png\" width=\"604\" \/><\/p>\n<p>Linux\u5982\u4f55\u6dfb\u52a0\u9632\u706b\u5899\u670d\u52a1Warning: ALREADY_ENABLED: 8080:tcp_already enabled-CSDN\u535a\u5ba2<\/p>\n<p>\u5220\u9664\u6307\u5b9a\u7aef\u53e3<\/p>\n<p>firewall-cmd &#8211;zone&#061;public &#8211;remove-port&#061;1001\/tcp &#8211;permanent<\/p>\n<p>\u5728\u6dfb\u52a0\u6307\u5b9a\u7aef\u53e3<\/p>\n<p>firewall-cmd &#8211;zone&#061;public &#8211;add-port&#061;1001\/tcp &#8211;permanent <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"90\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010615-681c03876cdfd.png\" width=\"605\" \/><\/p>\n<\/p>\n<h4 id=\"VIM%E7%BC%96%E8%BE%91%E4%BF%9D%E5%AD%98\">VIM\u7f16\u8f91\u4fdd\u5b58<\/h4>\n<p>vim\u7f16\u8f91\u540e\u5982\u4f55\u4fdd\u5b58\u9000\u51fa<\/p>\n<p>&#8211; \u4f7f\u7528\u5355\u72ec\u7684\u547d\u4ee4\u4fdd\u5b58\u5e76\u9000\u51fa&#xff1a;\u5148\u6309<span style=\"color:#fe2c24\">Esc\u952e\u9000\u51fa\u7f16\u8f91\u6a21\u5f0f<\/span>&#xff08;<span style=\"color:#a2e043\">i\u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f<\/span>&#xff0c;\u5e95\u4e0b\u4f1a\u63d0\u793a\u63d2\u5165&#xff09;&#xff0c;\u518d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p>&#8211; w&#xff1a;\u4fdd\u5b58\u4f46\u4e0d\u9000\u51fa&#xff1b;<\/p>\n<p>&#8211; q&#xff1a;\u4e0d\u4fdd\u5b58\u5e76\u9000\u51fa&#xff1b;<\/p>\n<p>&#8211; q!&#xff1a;\u4e0d\u4fdd\u5b58\u5e76\u5f3a\u5236\u9000\u51fa&#xff1b;<\/p>\n<p>&#8211; wq&#xff1a;\u4fdd\u5b58\u540e\u9000\u51fa&#xff1b;<\/p>\n<p>&#8211; wq!&#xff1a;\u5f3a\u5236\u4fdd\u5b58\u540e\u9000\u51fa\u3002<\/p>\n<\/p>\n<h4 id=\"%E8%99%9A%E6%8B%9F%E6%9C%BA%E8%87%AA%E5%8A%A8%E5%90%AF%E5%8A%A8%E8%AE%BE%E7%BD%AE\" style=\"background-color:transparent\">\u865a\u62df\u673a\u81ea\u52a8\u542f\u52a8\u8bbe\u7f6e<\/h4>\n<h5 id=\"%E7%AC%AC%E4%B8%80%E7%A7%8D%E6%96%B9%E6%B3%95%EF%BC%88%E7%9B%AE%E5%89%8D%E6%B2%A1%E6%88%90%E5%8A%9F%E8%BF%98%E5%9C%A8%E5%B0%9D%E8%AF%95%EF%BC%89%EF%BC%9A\">\u7b2c\u4e00\u79cd\u65b9\u6cd5&#xff08;\u76ee\u524d\u6ca1\u6210\u529f\u8fd8\u5728\u5c1d\u8bd5&#xff09;&#xff1a;<\/h5>\n<p>VMware pro 17\u8bbe\u7f6e\u865a\u62df\u673a\u968f\u5bbf\u4e3b\u673a\u5f00\u673a\u81ea\u542f\u52a8<\/p>\n<p>Vmware\u5f00\u673a\u81ea\u542f&#xff08;Vmware17&#xff09;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"73\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010615-681c038776528.png\" width=\"587\" \/><\/p>\n<p>\u6587\u4ef6-&gt;\u914d\u7f6e\u865a\u62df\u673a\u7535\u6e90\u64cd\u4f5c<\/p>\n<p>\u9047\u5230\u65e0\u6cd5\u66f4\u65b0\u81ea\u52a8\u542f\u52a8\u914d\u7f6e\u7684\u95ee\u9898\u7684\u8bdd\u3002\u8bf7\u770b\u4e0b\u9762\u3002\u8fd9\u4e2a\u65b9\u6cd5<span style=\"color:#956fe7\">\u6211\u76ee\u524d\u8fd8\u6ca1\u6210\u529f\u3002\u7b49\u6211\u6210\u529f\u540e\u518d\u6765\u5220\u9664\u8fd9\u53e5\u8bdd<\/span><\/p>\n<h5 id=\"\"><\/h5>\n<h5 id=\"%E7%AC%AC%E4%BA%8C%E7%A7%8D%E6%96%B9%E6%B3%95%EF%BC%88%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%EF%BC%89%EF%BC%9A\">\u7b2c\u4e8c\u79cd\u65b9\u6cd5&#xff08;\u53ef\u4ee5\u4f7f\u7528&#xff09;&#xff1a;<\/h5>\n<p>\u4e0d\u662f\u81ea\u5df1\u4e3b\u52a8\u5173\u95ed\u865a\u62df\u673a\u3002\u76f4\u63a5\u5173\u95ed\u7535\u8111\u540e\u542f\u52a8\u3002\u865a\u62df\u673a\u4f1a\u81ea\u5df1\u6062\u590d\u64cd\u4f5c\u3002\u8fd9\u6837\u597d\u50cf\u4e5f\u7b97\u662f\u53d8\u76f8\u8df3\u8fc7\u4e86Linux\u7684\u767b\u5f55\u3002<\/p>\n<p>\u5728windows\u73af\u5883\u4e0b\u5982\u4f55\u8bbe\u7f6e\u5f00\u673a\u81ea\u542fVMware\u5e76\u4e14\u81ea\u52a8\u5f00\u542f\u865a\u62df\u673a_\u5f00\u673a\u76f4\u63a5\u8fdb\u5165\u865a\u62df\u673a\u7cfb\u7edf-CSDN\u535a\u5ba2<\/p>\n<li>\u9996\u5148\u7b2c\u4e00\u6b65&#xff0c;\u627e\u5230VMware\u8def\u5f84\u3002\u53f3\u51fb\u7a0b\u5e8f&#xff0c;\u67e5\u770b\u5c5e\u6027&#xff0c;\u627e\u5230\u8def\u5f84&#xff0c;\u590d\u5236\u4e0b\u6765\u3002<\/li>\n<li>\u518d\u627e\u5230\u4f60\u7684\u865a\u62df\u673a\u4f4d\u7f6e&#xff0c;\u8def\u5f84\u590d\u5236\u4e0b\u6765\u3002<\/li>\n<li>\u5728\u684c\u9762\u65b0\u5efa\u4e00\u4e2a\u6587\u672c\u6587\u4ef6&#xff0c;\u5199\u5165\u4e00\u4e0b\u5185\u5bb9&#xff1a;&#034;D:\\\\Program Files\\\\VMware\\\\VMware Workstation\\\\vmware.exe&#034; -x &#034;D:\\\\Virtual Machines\\\\CentOS 7 64 \u4f4d\\\\*.vmx&#034;&#xff0c;\u524d\u9762\u662f\u4f60\u7684Vmware\u8def\u5f84&#xff0c;\u540e\u9762\u662f\u865a\u62df\u673a\u8def\u5f84\u3002<\/li>\n<li>\u6587\u672c\u6587\u4ef6\u4e3a\u4efb\u610f\u540d.bat<\/li>\n<li>win &#043; R \u8f93\u5165shell:startup<\/li>\n<li>\u8fdb\u5165\u7a0b\u5e8f&#xff0c;\u542f\u52a8\u754c\u9762&#xff0c;\u628a\u4e4b\u524d\u7684.bat\u6587\u4ef6\u590d\u5236\u8fdb\u53bb\u5c31\u884c<\/li>\n<h5 id=\"%E2%80%8B%E7%BC%96%E8%BE%91\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"613\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010615-681c03877f8ec.png\" width=\"783\" \/><\/h5>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"152\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010615-681c0387a7abe.png\" width=\"608\" \/><\/p>\n<\/p>\n<p>\u5728\u7ed3\u5408\u4e0b\u9762\u8fd9\u4e2a\u8fde\u63a5\u7684\u65b9\u6cd5\u5c31\u53ef\u4ee5\u5b9e\u73b0\u542f\u52a8.bat\u540e\u3002CMD\u4e0d\u4f1a\u4e00\u76f4\u5728\u5c4f\u5e55\u4e0a\u663e\u793a\u3002\u800c\u4f1a\u88ab\u201c\u5173\u95ed\u201d\u3002<span style=\"color:#fe2c24\">\u4f46\u662f\u76ee\u524d\u8fd9\u4e2a\u53ea\u80fd\u5728\u4f7f\u7528.bat\u7684\u65f6\u5019\u6709\u6548\u3002\u7535\u8111\u542f\u52a8\u81ea\u52a8\u7684\u65f6\u5019\u4f1a\u6709\u95ee\u9898<\/span><\/p>\n<p>windows\u4e0a\u5173\u95edbat \u811a\u672ccmd\u7684dos\u547d\u4ee4\u7a97\u53e3 &#8211; \u58a8\u5929\u8f6e<\/p>\n<p>&#064;echo off <\/p>\n<p>if &#034;%1&#034; &#061;&#061; &#034;h&#034; goto begin <\/p>\n<p>mshta vbscript:createobject(&#034;wscript.shell&#034;).run(&#034;%~nx0 h&#034;,0)(window.close)&amp;&amp;exit <\/p>\n<p>:begin  <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"616\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010615-681c0387b3506.png\" width=\"803\" \/><\/p>\n<h5>\u7b2c\u4e09\u79cd\u65b9\u6cd5&#xff08;\u76ee\u524d\u6700\u63a8\u8350\u7684\u4e00\u4e2a\u65b9\u5f0f&#xff09;&#xff1a;<\/h5>\n<p>\u53c2\u8003\u7b2c\u4e8c\u79cd\u65b9\u5f0f\u3002\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u53d6\u5de7\u7684\u65b9\u5f0f\u3002\u8fbe\u5230\u6211\u4eec\u8981\u7684\u5f00\u673a\u81ea\u52a8\u542f\u52a8\u7684\u529f\u80fd<\/p>\n<li>\u9996\u5148\u7b2c\u4e00\u6b65&#xff0c;\u627e\u5230VMware\u7684\u5feb\u6377\u65b9\u5f0f\u3002\u590d\u5236\u4e00\u4efd\u5feb\u6377\u65b9\u5f0f\u3002<\/li>\n<li>\u00a0-x &#034;D:\\\\Virtual Machines\\\\CentOS 7 64 \u4f4d\\\\*.vmx&#034; \u628a -x \u865a\u62df\u673a\u8def\u5f84\u8fd9\u6bb5\u4ee3\u7801\u653e\u5728\u5feb\u6377\u65b9\u5f0f\u7684\u76ee\u6807\u540e\u9762<\/li>\n<li>win &#043; R \u8f93\u5165shell:startup<\/li>\n<li>\u8fdb\u5165\u7a0b\u5e8f&#xff0c;\u542f\u52a8\u754c\u9762&#xff0c;\u628a\u4fee\u6539\u8fc7\u7684\u5feb\u6377\u65b9\u5f0f\u653e\u8fdb\u53bb\u5c31\u53ef\u4ee5\u4e86<\/li>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"851\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010615-681c0387dc62b.png\" width=\"1088\" \/><\/p>\n<h5 id=\"%E6%97%A0%E6%B3%95%E6%9B%B4%E6%96%B0%E8%87%AA%E5%8A%A8%E5%90%AF%E5%8A%A8%E9%85%8D%E7%BD%AE\">\u65e0\u6cd5\u66f4\u65b0\u81ea\u52a8\u542f\u52a8\u914d\u7f6e<\/h5>\n<p>VMWare17\u914d\u7f6e\u81ea\u52a8\u542f\u52a8\u865a\u62df\u673a\u63d0\u793a&#xff1a;\u65e0\u6cd5\u66f4\u65b0\u201c\u81ea\u52a8\u542f\u52a8\u914d\u7f6e\u201d&#xff0c;\u8bf7\u786e\u4fdd\u5b58\u5728vmAutoStart.xml\u6587\u4ef6&#xff0c;\u5e76\u4e14\u60a8\u6709\u6743\u5199\u5165\u6b64\u6587\u4ef6\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"551\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010616-681c0388407e4.png\" width=\"662\" \/><\/p>\n<p id=\"%E9%9C%80%E8%A6%81%E4%BF%AE%E6%94%B9vmAutoStart.xml%E8%BF%99%E4%B8%AA%E6%96%87%E4%BB%B6%E6%9D%83%E9%99%90\">\u9700\u8981\u4fee\u6539vmAutoStart.xml\u8fd9\u4e2a\u6587\u4ef6\u6743\u9650<\/p>\n<p>\u8fd9\u662f\u6211\u7684\u6587\u4ef6\u8def\u5f84\u3002\u53ef\u4ee5\u4f7f\u7528everything\u641c\u7d22vmAutoStart.xml<\/p>\n<p>\u00a0C:\\\\ProgramData\\\\VMware\\\\VMware Workstation<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"75\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010616-681c038855b7a.png\" width=\"718\" \/><\/p>\n<p>\u53f3\u952e\u5c5e\u6027-&gt;\u5b89\u5168-&gt;\u7f16\u8f91-&gt;\u5b8c\u5168\u63a7\u5236-&gt;\u5e94\u7528<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"660\" src=\"2025-05-08kptbqykpzzv.png\" width=\"745\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"562\" src=\"2025-05-08gnzcwf4irjp.png\" width=\"437\" \/><\/p>\n<h5 id=\"\"><\/h5>\n<h5 id=\"Linux%E6%8A%8A%2Fetc%2Fpasswd%E6%96%87%E4%BB%B6%E7%8E%A9%E5%9D%8F%E7%9A%84%E4%BF%AE%E5%A4%8D%E6%96%B9%E5%BC%8F\">Linux\u628a\/etc\/passwd\u6587\u4ef6\u73a9\u574f\u7684\u4fee\u590d\u65b9\u5f0f<\/h5>\n<p>\u95ee\u9898\u8bb0\u5f55&#xff1a;\u89e3\u51b3Linux\u767b\u5f55\u6545\u969c&#xff0c;\/etc\/passwd\u914d\u7f6e\u53d7\u635f\u8be5\u600e\u4e48\u64cd\u4f5c_Linux\u5b66\u4e60\u7684\u90a3\u4e9b\u4e8b\u513f\u7684\u6280\u672f\u535a\u5ba2_51CTO\u535a\u5ba2<\/p>\n<p>linux\u4e0b\u4fee\u6539passwd\u6587\u4ef6\u7684\u6062\u590d\u65b9\u6cd5_linux\u7684passwd\u6587\u4ef6\u6539\u9519\u4e86-CSDN\u535a\u5ba2<\/p>\n<p>\u4e0d\u5c0f\u5fc3\u4fee\u6539\u4e86linux\u7cfb\u7edf\u7684\/etc\/passwd\u6587\u4ef6_\u4fee\u6539\u4e86 linux\u6587\u4ef6\u540e\u600e\u4e48\u6062\u590d-CSDN\u535a\u5ba2<\/p>\n<p>Linux\u5355\u7528\u6237\u6a21\u5f0f\u542f\u52a8\u4e0e\u5b8c\u5168\u6307\u5357 &#8211; OSCHINA &#8211; \u4e2d\u6587\u5f00\u6e90\u6280\u672f\u4ea4\u6d41\u793e\u533a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"429\" src=\"2025-05-08i2rcspnerlw.png\" width=\"894\" \/><\/p>\n<p>\u5728\u8fd9\u4e2a\u754c\u9762\u6309e<\/p>\n<p>\u627e\u5230Linux\u6216\u8005Linux16\u5f00\u5934\u7684\u884c\u3002\u5728\u884c\u5c3e\u6dfb\u52a0single\u00a0\u6216\u00a0init&#061;\/bin\/bash\u3002<\/p>\n<p>\u6309\u4e0b\u00a0Ctrl &#043; X\u00a0\u6216\u00a0F10\u00a0\u542f\u52a8\u7cfb\u7edf\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"113\" src=\"2025-05-08kt2hbmhouol.png\" width=\"833\" \/><\/p>\n<p>*\u4f7f\u7528\u4e0b\u9762\u4ee3\u7801\u83b7\u5f97\/etc\/passwd \u7684\u6743\u9650\u3002\u4e0d\u7136\u7f16\u8f91\u7684\u65f6\u5019\/etc\/passwd<span style=\"color:#fe2c24\">\u53ea\u80fd\u662f\u53ea\u8bfb\u4e0d\u80fd\u4fee\u6539<\/span>\u3002<\/p>\n<p>chmod 644 \/etc\/passwd(\u6211\u81ea\u5df1\u4f7f\u7528\u7684\u8fd9\u4e2a)<br \/>\n\u6216<br \/>\nchown root:root \/etc\/passwd<\/p>\n<p>\u7136\u540e\u5c31\u53ef\u4ee5\u7f16\u8f91\u4e86<br \/>\nvim \/etc\/passwd <\/p>\n<h5 id=\"Linux%E6%89%BE%E5%9B%9Eroot%E5%AF%86%E7%A0%81\">Linux\u627e\u56deroot\u5bc6\u7801<\/h5>\n<p>Linux\u4fee\u6539\u5bc6\u7801_linux \u91cd\u7f6e\u5bc6\u7801\u63d0\u793a\u5168\u662f\u6846\u6846-CSDN\u535a\u5ba2<\/p>\n<p>\u6211\u627e\u4e86\u5f88\u591a\u4e2a\u6587\u6863\u53c2\u8003\u3002\u6700\u540e\u4f7f\u7528\u4e0a\u9762\u90a3\u4e2a\u624d\u6210\u529f\u627e\u56de\u3002\u6211\u4f7f\u7528\u7684\u7684\u662f\u7b2c\u4e8c\u79cd\u3002<span style=\"color:#fe2c24\">*\u6ce8\u610f<\/span>\u4e00\u5b9a\u8981\u5c06\u00a0LANG&#061;zh_CN.UTF-8 \u66f4\u6539\u4e3a LANG&#061;en_US.UTF-8\u3002\u4e0d\u7136\u4fee\u6539\u5bc6\u7801\u7684\u65f6\u5019\u63d0\u793a\u5168\u662f\u6846\u6846\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb676\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u8ddf\u7740\u89c6\u9891\u642d\u5efaGitLab\u670d\u52a1\u5668\u3002_window \u5b89\u88c5gitlab<\/p>\n","protected":false},"author":2,"featured_media":36194,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[273,3115,3114,305],"topic":[],"class_list":{"0":"post-36214","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-server","8":"tag-gitlab","10":"tag-ue","11":"tag-305"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>window \u5b89\u88c5GitLab\u670d\u52a1\u5668\u7b14\u8bb0 - \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\/36214.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"window \u5b89\u88c5GitLab\u670d\u52a1\u5668\u7b14\u8bb0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb676\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u8ddf\u7740\u89c6\u9891\u642d\u5efaGitLab\u670d\u52a1\u5668\u3002_window \u5b89\u88c5gitlab\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/36214.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-08T01:06:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010612-681c0384d65c9.png\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/36214.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/36214.html\",\"name\":\"window \u5b89\u88c5GitLab\u670d\u52a1\u5668\u7b14\u8bb0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-08T01:06:17+00:00\",\"dateModified\":\"2025-05-08T01:06:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/36214.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/36214.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/36214.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"window \u5b89\u88c5GitLab\u670d\u52a1\u5668\u7b14\u8bb0\"}]},{\"@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":"window \u5b89\u88c5GitLab\u670d\u52a1\u5668\u7b14\u8bb0 - \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\/36214.html","og_locale":"zh_CN","og_type":"article","og_title":"window \u5b89\u88c5GitLab\u670d\u52a1\u5668\u7b14\u8bb0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb676\u6b21\uff0c\u70b9\u8d5e4\u6b21\uff0c\u6536\u85cf10\u6b21\u3002\u8ddf\u7740\u89c6\u9891\u642d\u5efaGitLab\u670d\u52a1\u5668\u3002_window \u5b89\u88c5gitlab","og_url":"https:\/\/www.wsisp.com\/helps\/36214.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-08T01:06:17+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/05\/20250508010612-681c0384d65c9.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/36214.html","url":"https:\/\/www.wsisp.com\/helps\/36214.html","name":"window \u5b89\u88c5GitLab\u670d\u52a1\u5668\u7b14\u8bb0 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-08T01:06:17+00:00","dateModified":"2025-05-08T01:06:17+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/36214.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/36214.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/36214.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"window \u5b89\u88c5GitLab\u670d\u52a1\u5668\u7b14\u8bb0"}]},{"@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\/36214","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=36214"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/36214\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/36194"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=36214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=36214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=36214"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=36214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}