{"id":18119,"date":"2024-11-18T15:10:30","date_gmt":"2024-11-18T07:10:30","guid":{"rendered":"https:\/\/fwq.ai\/blog\/18119\/"},"modified":"2024-11-18T15:10:30","modified_gmt":"2024-11-18T07:10:30","slug":"linux%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%80%8e%e4%b9%88%e9%87%8d%e5%90%af","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/18119\/","title":{"rendered":"linux\u670d\u52a1\u5668\u600e\u4e48\u91cd\u542f"},"content":{"rendered":"<blockquote><p>\n  \u91cd\u542f linux \u670d\u52a1\u5668\u7684\u65b9\u6cd5\u5305\u62ec\uff1a1. \u547d\u4ee4\u884c\uff08reboot\/shutdown \uff09\uff0c2. systemctl\uff0c3. web \u754c\u9762\uff0c4. ssh\uff0c5. \u7269\u7406\u8bbf\u95ee\uff08\u7535\u6e90\u6309\u94ae\uff09\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202406\/03\/2024060312481510690.jpg\" class=\"aligncenter\" title=\"linux\u670d\u52a1\u5668\u600e\u4e48\u91cd\u542f\u63d2\u56fe\" alt=\"linux\u670d\u52a1\u5668\u600e\u4e48\u91cd\u542f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 Linux \u670d\u52a1\u5668\u4e0a\u91cd\u542f<\/strong><\/p>\n<p>\u91cd\u542f Linux \u670d\u52a1\u5668\u6709\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a<\/p>\n<p><strong>1. \u4f7f\u7528\u547d\u4ee4\u884c<\/strong><\/p>\n<ul>\n<li>\u4f7f\u7528 reboot \u547d\u4ee4\uff1a<\/li>\n<\/ul>\n<pre>reboot<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n<li>\u4f7f\u7528 shutdown \u547d\u4ee4\uff1a<\/li>\n<\/ul>\n<pre>shutdown -r now<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>2. \u4f7f\u7528 systemctl<\/strong><\/p>\n<ul>\n<li>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/li>\n<\/ul>\n<pre>systemctl reboot<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>3. \u4f7f\u7528 Web \u754c\u9762<\/strong><\/p>\n<ul>\n<li>\u5927\u591a\u6570\u73b0\u4ee3 Linux \u53d1\u884c\u7248\u90fd\u63d0\u4f9b\u4e00\u4e2a Web \u754c\u9762\u6765\u7ba1\u7406\u670d\u52a1\u5668\u3002<\/li>\n<li>\u767b\u5f55\u5230 Web \u754c\u9762\uff0c\u627e\u5230\u91cd\u542f\u670d\u52a1\u5668\u7684\u9009\u9879\u3002<\/li>\n<\/ul>\n<p><strong>4. \u4f7f\u7528 SSH<\/strong><\/p>\n<ul>\n<li>\u5982\u679c\u8fdc\u7a0b\u8bbf\u95ee\u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u4f7f\u7528 SSH \u5ba2\u6237\u7aef\u8fde\u63a5\u5230\u670d\u52a1\u5668\u5e76\u4f7f\u7528 reboot \u547d\u4ee4\u91cd\u542f\u670d\u52a1\u5668\u3002<\/li>\n<\/ul>\n<p><strong>5. \u901a\u8fc7\u7269\u7406\u8bbf\u95ee<\/strong><\/p>\n<ul>\n<li>\u5982\u679c\u53ef\u4ee5\u7269\u7406\u8bbf\u95ee\u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u6309\u670d\u52a1\u5668\u4e0a\u7684\u7535\u6e90\u6309\u94ae\u91cd\u542f\u670d\u52a1\u5668\u3002<\/li>\n<\/ul>\n<p><strong>\u6ce8\u610f:<\/strong><\/p>\n<ul>\n<li>\u5728\u6267\u884c\u4efb\u4f55\u91cd\u542f\u547d\u4ee4\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u5df2\u4fdd\u5b58\u6240\u6709\u91cd\u8981\u6570\u636e\u3002<\/li>\n<li>\u5982\u679c\u670d\u52a1\u5668\u6b63\u5728\u8fd0\u884c\u5173\u952e\u670d\u52a1\uff0c\u8bf7\u786e\u4fdd\u5728\u91cd\u542f\u524d\u5df2\u5b89\u6392\u597d\u505c\u673a\u65f6\u95f4\u3002<\/li>\n<li>\u5982\u679c\u5728\u91cd\u542f\u8fc7\u7a0b\u4e2d\u9047\u5230\u95ee\u9898\uff0c\u8bf7\u53c2\u8003\u670d\u52a1\u5668\u7684\u65e5\u5fd7\u6587\u4ef6\u4ee5\u83b7\u53d6\u66f4\u591a\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u670d\u52a1\u5668\u600e\u4e48\u91cd\u542f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u91cd\u542f linux \u670d\u52a1\u5668\u7684\u65b9\u6cd5\u5305\u62ec\uff1a1. \u547d\u4ee4\u884c\uff08reboot\/shutdown \uff09\uff0c2. systemctl\uff0c3. web \u754c\u9762\uff0c4. ssh\uff0c5. \u7269\u7406\u8bbf\u95ee\uff08\u7535\u6e90\u6309\u94ae\uff09\u3002 \u5982\u4f55\u5728 Linux \u670d\u52a1\u5668\u4e0a\u91cd\u542f \u91cd\u542f Linux \u670d\u52a1\u5668\u6709\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a 1. \u4f7f\u7528\u547d\u4ee4\u884c \u4f7f\u7528 reboot \u547d\u4ee4\uff1a reboot \u767b\u5f55\u540e\u590d\u5236 \u4f7f\u7528 shutdown \u547d\u4ee4\uff1a shutdown -r now \u767b\u5f55\u540e\u590d\u5236 2. \u4f7f\u7528 systemctl \u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a systemctl reboot \u767b\u5f55\u540e\u590d\u5236 3. \u4f7f\u7528 Web \u754c\u9762 \u5927\u591a\u6570\u73b0\u4ee3 Linux \u53d1\u884c\u7248\u90fd\u63d0\u4f9b\u4e00\u4e2a Web \u754c\u9762\u6765\u7ba1\u7406\u670d\u52a1\u5668\u3002 \u767b\u5f55\u5230 Web \u754c\u9762\uff0c\u627e\u5230\u91cd\u542f\u670d\u52a1\u5668\u7684\u9009\u9879\u3002 4. \u4f7f\u7528 SSH \u5982\u679c\u8fdc\u7a0b\u8bbf\u95ee\u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u4f7f\u7528 SSH \u5ba2\u6237\u7aef\u8fde\u63a5\u5230\u670d\u52a1\u5668\u5e76\u4f7f\u7528 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-18119","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/18119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=18119"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/18119\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=18119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=18119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=18119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}