{"id":965,"date":"2023-02-01T18:10:04","date_gmt":"2023-02-01T10:10:04","guid":{"rendered":"https:\/\/www.jchj.top\/?p=965"},"modified":"2025-09-26T11:25:00","modified_gmt":"2025-09-26T03:25:00","slug":"jumpserver-%e5%a0%a1%e5%9e%92%e6%9c%ba%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.jchj.top\/?p=965","title":{"rendered":"Jumpserver \u5821\u5792\u673a\u5b89\u88c5\u914d\u7f6e"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\"><strong>\u4e00\u3001jumpserver\u4e00\u952e\u90e8\u7f72\u65b9\u5f0f\uff1a<\/strong><\/h3>\n\n\n\n<p>\u53ef\u4ee5\u76f4\u63a5\u767b\u5f55\u5b98\u7f51\u67e5\u770b\u4e00\u952e\u90e8\u7f72\u7684\u5730\u5740\uff1ahttps:\/\/docs.jumpserver.org\/zh\/master\/install\/setup_by_fast\/<\/p>\n\n\n\n<p>1\u3001\u9ed8\u8ba4\u4f1a\u5b89\u88c5\u5230 \/opt\/jumpserver-installer-v2.13.2 \u76ee\u5f55<\/p>\n\n\n\n<p><em>root@<\/em><em>localhost<\/em><em>:\/opt#<\/em>curl -SSL https:\/\/github.com\/jumpserver\/jumpserver\/releases\/download\/v2.28.6\/quick_start.sh | bash \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 100%[Success]: download install script to \/opt\/jumpserver-installer-v2.28.6 [Info]: Start executing the installation script. [Info]: In an automated script deployment, note the message prompts on the screen.\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588 100%[Success]: The Installation is Complete. For more commands, you can enter jmsctl &#8211;help to view help informatio<\/p>\n\n\n\n<p>\u4e5f\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u672c\u5730\u5740\u4e0b\u8f7d\u4e00\u952e\u90e8\u7f72\u811a\u672c\u5230\u672c\u5730\u518d\u8fd0\u884chttps:\/\/github.com\/jumpserver\/jumpserver\/releases\/download\/v2.28.6\/quick_start.sh<\/p>\n\n\n\n<p>\u76f4\u63a5\u4e0b\u8f7d\u90e8\u7f72\uff1a<\/p>\n\n\n\n<p>cd \/opt<\/p>\n\n\n\n<p>wget https:\/\/github.com\/jumpserver\/installer\/releases\/download\/v2.28.6\/jumpserver-installer-v2.28.6.tar.gz<\/p>\n\n\n\n<p>tar -xf jumpserver-installer-v2.28.6.tar.gz<\/p>\n\n\n\n<p>cd jumpserver-installer-v2.28.6<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1239\" height=\"848\" src=\"https:\/\/www.jchj.top\/wp-content\/uploads\/2023\/02\/image.png\" alt=\"\" class=\"wp-image-967\"\/><\/figure>\n\n\n\n<p>\u4e0b\u4e00\u6b65\u76f4\u63a5\u4fdd\u6301\u9ed8\u8ba4,\u76f4\u81f3\u5b89\u88c5\u5b8c\u6210<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"686\" src=\"https:\/\/www.jchj.top\/wp-content\/uploads\/2023\/02\/image-1.png\" alt=\"\" class=\"wp-image-968\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"835\" src=\"https:\/\/www.jchj.top\/wp-content\/uploads\/2023\/02\/image-2.png\" alt=\"\" class=\"wp-image-969\"\/><\/figure>\n\n\n\n<p>2\u3001\u5b89\u88c5\u5b8c\u6210\u540e\u914d\u7f6e\u6587\u4ef6<\/p>\n\n\n\n<p>cat \/opt\/jumpserver\/config\/config.txt<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"831\" src=\"https:\/\/www.jchj.top\/wp-content\/uploads\/2023\/02\/image-3.png\" alt=\"\" class=\"wp-image-970\"\/><\/figure>\n\n\n\n<p>cd \/opt\/jumpserver-installer-v2.28.6\/ \u542f\u52a8 .\/jmsctl.sh start \u505c\u6b62 .\/jmsctl.sh down \u5378\u8f7d .\/jmsctl.sh uninstall \u5e2e\u52a9 .\/jmsctl.sh -h<\/p>\n\n\n\n<p>\u542f\u52a8jumpserver<\/p>\n\n\n\n<p>[root@localhost jumpserver-installer-v2.28.6]# .\/jmsctl.sh start<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"199\" src=\"https:\/\/www.jchj.top\/wp-content\/uploads\/2023\/02\/image-4.png\" alt=\"\" class=\"wp-image-971\"\/><\/figure>\n\n\n\n<p>\u67e5\u770bjumpserver\u542f\u52a8\u7684\u76f8\u5173\u955c\u50cf<\/p>\n\n\n\n<p>[root@localhost \/]# docker ps -a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"138\" src=\"https:\/\/www.jchj.top\/wp-content\/uploads\/2023\/02\/image-5.png\" alt=\"\" class=\"wp-image-972\"\/><\/figure>\n\n\n\n<p>http:\/\/10.0.0.97 \u521d\u59cb\u8d26\u53f7\u5bc6\u7801\u4e3a\uff1aadmin admin<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"620\" src=\"https:\/\/www.jchj.top\/wp-content\/uploads\/2023\/02\/image-6.png\" alt=\"\" class=\"wp-image-973\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4e8c\u3001\u914d\u7f6e\u5f00\u673a\u81ea\u542f\u52a8\uff1a<\/strong><\/h3>\n\n\n\n<p>\u521b\u5efajms.service\u3001coco.service\u4e24\u4e2a\u6587\u4ef6<\/p>\n\n\n\n<p>[root@localhost ~]# vim \/usr\/lib\/systemd\/system\/jms.service<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"497\" src=\"https:\/\/www.jchj.top\/wp-content\/uploads\/2023\/02\/image-7.png\" alt=\"\" class=\"wp-image-974\"\/><\/figure>\n\n\n\n<p>[Unit]<\/p>\n\n\n\n<p>Description=jms<\/p>\n\n\n\n<p>After=network.target mariadb.service redis.service<\/p>\n\n\n\n<p>Wants=mariadb.service redis.service<\/p>\n\n\n\n<p>[Service]<\/p>\n\n\n\n<p>Type=forking<\/p>\n\n\n\n<p>Environment=&#8221;PATH=\/opt\/py3\/bin:\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/root\/bin&#8221;<\/p>\n\n\n\n<p>ExecStart=\/opt\/jumpserver\/jms start all -d<\/p>\n\n\n\n<p>ExecReload=<\/p>\n\n\n\n<p>ExecStop=\/opt\/jumpserver\/jms stop<\/p>\n\n\n\n<p>[Install]<\/p>\n\n\n\n<p>WantedBy=multi-user.target<\/p>\n\n\n\n<p>[root@localhost ~]# vim \/usr\/lib\/systemd\/system\/coco.service<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"378\" src=\"https:\/\/www.jchj.top\/wp-content\/uploads\/2023\/02\/image-8.png\" alt=\"\" class=\"wp-image-975\"\/><\/figure>\n\n\n\n<p>[Unit]<\/p>\n\n\n\n<p>Description=coco<\/p>\n\n\n\n<p>After=network.target jms.service<\/p>\n\n\n\n<p>[Service]<\/p>\n\n\n\n<p>Type=forking<\/p>\n\n\n\n<p>PIDFile=\/opt\/coco\/coco.pid<\/p>\n\n\n\n<p>Environment=&#8221;PATH=\/opt\/py3\/bin&#8221;<\/p>\n\n\n\n<p>ExecStart=\/opt\/coco\/cocod start -d<\/p>\n\n\n\n<p>ExecReload=<\/p>\n\n\n\n<p>ExecStop=\/opt\/coco\/cocod stop<\/p>\n\n\n\n<p>[Install]<\/p>\n\n\n\n<p>WantedBy=multi-user.target<\/p>\n\n\n\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef<\/p>\n\n\n\n<p>[root@localhost ~]# systemctl enable jms<\/p>\n\n\n\n<p>[root@localhost ~]# systemctl enable coco<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4e09\u3001\u914d\u7f6ehttps\u8bbf\u95ee<\/strong><\/h3>\n\n\n\n<p>\u9996\u5148\u68c0\u67e5\u5bbf\u4e3b\u673a\u4e0a\u7684firewalld\u9632\u706b\u5899\u4ee5\u53caselinux\u7684\u7a0b\u5e8f\u662f\u5426\u653e\u5f00\u6216\u5173\u95ed\uff0c\u914d\u7f6ehttps\u7684ssl\u8bc1\u4e66\u6587\u4ef6\u53ef\u7528openssl\u81ea\u5efa\u8bc1\u4e66\uff0c\u4f46\u662f\u6709\u53ef\u80fd\u4f1a\u62a5\u9519\u3002<\/p>\n\n\n\n<p>\u53e6\u4e00\u79cd\u65b9\u6cd5\u5c31\u662f\u5728\u817e\u8baf\u4e91\u6216\u662f\u963f\u91cc\u4e91\u7b49\u4e0a\u9762\u7533\u8bf7\u514d\u8d39\u8bc1\u4e66\uff0c\u8bc1\u4e66\u4e0a\u4f20\u81f3\u4e0a\u4f20\u8bc1\u4e66\u5230\u4e0a\u4f20\u8bc1\u4e66\u5230\/opt\/jumpserver\/config\/nginx\/cert\u76ee\u5f55\uff08\u57df\u540d\u662f\u548c\u8bc1\u4e66\u7ed1\u5b9a\u7684\u6211\u8fd9\u91cc\u7528\u7684\u662fsuuyuu.cn\u4e0b\u7684\u514d\u8d39\u8bc1\u4e66\u201c\u963f\u91cc\u4e91\u6bcf\u4e2a\u57df\u540d\u53ef\u7533\u8bf720\u4e2a\u514d\u8d39\u8bc1\u4e66\u201d\u8033\u673a\u57df\u540d\u53ef\u81ea\u5b9a\u4e49\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"974\" height=\"198\" src=\"https:\/\/www.jchj.top\/wp-content\/uploads\/2023\/02\/image-9.png\" alt=\"\" class=\"wp-image-976\"\/><\/figure>\n\n\n\n<p>\u7f16\u8f91 vim \/opt\/jumpserver\/config\/config.txt \u914d\u7f6e\u6587\u4ef6\uff0c\u628a\u8bc1\u4e66\u548c\u5bc6\u94a5\u6587\u4ef6\u6307\u5411\u6b64\u5904\u7684\u8def\u5f84\uff0c\u6ce8\u610fhttps\u7684\u914d\u7f6e\u9ed8\u8ba4\u662f\u6ce8\u91ca\u6389\u7684\uff0c\u8bb0\u5f97\u628a\u6ce8\u91ca\u6253\u5f00\u3002<\/p>\n\n\n\n<p>[root@localhost ~]# vim \/opt\/jumpserver\/config\/config.txt<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"548\" src=\"https:\/\/www.jchj.top\/wp-content\/uploads\/2023\/02\/image-10.png\" alt=\"\" class=\"wp-image-977\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001jumpserver\u4e00\u952e\u90e8\u7f72\u65b9\u5f0f\uff1a \u53ef\u4ee5\u76f4\u63a5\u767b&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,7],"tags":[],"class_list":["post-965","post","type-post","status-publish","format-standard","hentry","category-linux","category-7"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.jchj.top\/index.php?rest_route=\/wp\/v2\/posts\/965","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jchj.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jchj.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jchj.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jchj.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=965"}],"version-history":[{"count":3,"href":"https:\/\/www.jchj.top\/index.php?rest_route=\/wp\/v2\/posts\/965\/revisions"}],"predecessor-version":[{"id":1389,"href":"https:\/\/www.jchj.top\/index.php?rest_route=\/wp\/v2\/posts\/965\/revisions\/1389"}],"wp:attachment":[{"href":"https:\/\/www.jchj.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jchj.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=965"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jchj.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}