tar<\/strong><\/div>\ntar\u547d\u4ee4\u6700\u521d\u88ab\u8bbe\u8ba1\u7528\u6765\u5728\u78c1\u76d8\u4e0a\u521b\u5efa\u6587\u4ef6\u7684\u5907\u4efd\u526f\u672c\uff0c\u4e8b\u5b9e\u4e0a\uff0ctar\u5b9e\u9645\u4e0a\u4ee3\u8868\u7684\u78c1\u76d8\u5f52\u6863\u3002<\/p>\n
tar\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u6216\u591a\u4e2a\u6587\u4ef6\u538b\u7f29\u6587\u4ef6\uff0c\u8fd9\u6837\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u4ece\u4e00\u4e2a\u76ee\u5f55\u79fb\u52a8\u5230\u53e6\u5916\u4e00\u4e2a\u76ee\u5f55\u3002<\/p>\n
\u60a8\u53ef\u4ee5\u4f7f\u7528tar\u547d\u4ee4\u521b\u5efa\u6574\u4e2a\u76ee\u5f55\u7684\u5b58\u6863\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n
tar \u2013cvf wljsghq.tar \u76ee\u5f55\u540d\/<\/pre>\n\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u53c2\u6570-cvf\u8c03\u7528\u4e09\u4e2a\u9009\u9879\uff1a
\nc\uff0c\u521b\u5efa\u4e00\u4e2a tar \u5b58\u6863\uff1b
\nv\uff0c\u4ee5\u8be6\u7ec6\u6a21\u5f0f\u8fd0\u884ctar\uff0c\u4ee5\u4fbf\u5355\u72ec\u5217\u51fa\u6dfb\u52a0\u5230\u5b58\u6863\u4e2d\u7684\u6587\u4ef6\uff1b
\nf\uff0c\u63d0\u4f9b\u8981\u521b\u5efa\u7684\u5b58\u6863\u6587\u4ef6\u7684\u540d\u79f0\u3002<\/p>\n
\u63a5\u4e0b\u6765\u662f\u5b58\u6863\u6587\u4ef6\u7684\u540d\u79f0\uff08\u5728\u672c\u4f8b\u4e2d\u4e3awljsghq.tar\uff09\uff0c\u6700\u540e\u662f\u5305\u542b\u8981\u5f52\u6863\u7684\u6587\u4ef6\u7684\u6587\u4ef6\u5939\u7684\u540d\u79f0\u3002\u8981\u4ece\u5b58\u6863\u4e2d\u63d0\u53d6\u6587\u4ef6\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n
tar \u2013xvf wljsghq.tar<\/pre>\n\u5728\u8fd9\u91cc\uff0c\u6307\u5b9a-x\u800c\u4e0d\u662f-c\u6765\u63d0\u53d6\u800c\u4e0d\u662f\u521b\u5efa\u5b58\u6863\uff0c\u6307\u5b9a\u5b58\u6863\u6587\u4ef6\uff08\u5728\u672c\u4f8b\u4e2d\u4e3awljsghq.tar\uff09\u7684\u5185\u5bb9\u88ab\u63d0\u53d6\u5230\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u3002<\/p>\n
shutdown<\/strong><\/div>\n\u7528\u547d\u4ee4\u5173\u95edlinux\u6bd4\u8f83\u5feb\u3002\u5982\u679c\u8981\u7acb\u5373\u5173\u95ed\uff0c\u8bf7\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n
shutdown now<\/pre>\n\u8981\u7acb\u5373\u91cd\u65b0\u542f\u52a8\u7cfb\u7edf\uff0c\u8bf7\u8f93\u5165\uff1a<\/p>\n
shutdown -r now<\/pre>\n\u8981\u5b89\u6392\u5728\u7279\u5b9a\u65f6\u95f4\uff08\u4f8b\u5982\u51cc\u6668 2:00\uff09\u91cd\u65b0\u542f\u52a8\uff0c\u8bf7\u8f93\u5165\uff1a<\/p>\n
shutdown -r 2:00<\/pre>\n\u8981\u5728\u4e00\u4e2a\u5c0f\u65f6\u540e\u91cd\u65b0\u542f\u52a8\uff0c\u8bf7\u8f93\u5165\uff1a<\/p>\n
shutdown \u2013r +60<\/pre>\nfree<\/strong><\/div>\nfree\u547d\u4ee4\u53ef\u4ee5\u8ba9\u4f60\u77e5\u9053Linux\u7cfb\u7edf\u4e0a\u6709\u591a\u5c11\u7a7a\u95f2\u7684\u5185\u5b58\uff0c\u53ea\u9700\u8f93\u5165free\uff0c\u60a8\u5c06\u770b\u5230\u7c7b\u4f3c\u4e8e\u4ee5\u4e0b\u5185\u5bb9\u7684\u8f93\u51fa\uff1a<\/p>\n
total used free shared buff\/cache available Mem: 4030488 961888 1795920 2228 1272680 2803356 Swap: 2097148 0 2097148<\/pre>\n\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528-h\u53c2\u6570\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a KB\u3001MB \u6216 GB\uff0c\u4ee5\u4fbf\u4eba\u4eec\u66f4\u5bb9\u6613\u9605\u8bfb\uff1a<\/p>\n
total used free shared buff\/cache available Mem: 3.8G 938M 1.7G 2.2M 1.3G 2.7G Swap: 2.0G 0B 2.0G<\/pre>\n\u5728\u8fd9\u91cc\uff0c\u4f60\u53ef\u4ee5\u770b\u5230\u7cfb\u7edf\u603b\u5171\u67093.8GB\u7684RAM\uff0c\u5176\u4e2d938MB\u662f\u4f7f\u7528\u7684\uff0c1.7GB\u662f\u514d\u8d39\u7684\u3002<\/p>\n
df<\/strong><\/div>\ndisk free\u7684\u7f29\u5199\uff0c\u5217\u51faLinux\u7cfb\u7edf\u4e0a\u7684\u6240\u6709\u78c1\u76d8\u5377\u53ef\u7528\u7a7a\u95f4\uff0c\u5bf9\u4e8e\u6bcf\u4e2a\u6302\u8f7d\u7684\u78c1\u76d8\uff0cdf\u5217\u51fa\u78c1\u76d8\u7a7a\u95f4\u603b\u91cf\u3001\u5df2\u7528\u7a7a\u95f4\u91cf\u3001\u53ef\u7528\u7a7a\u95f4\u91cf\u548c\u5df2\u7528\u7a7a\u95f4\u767e\u5206\u6bd4\u3002<\/p>\n
\u4f8b\u5982\uff0c\u8f93\u5165\u4e0d\u5e26\u53c2\u6570\u7684\u547d\u4ee4df\uff0c\u60a8\u5c06\u770b\u5230\u7c7b\u4f3c\u4ee5\u4e0b\u7684\u8f93\u51fa\uff1a<\/p>\n
Filesystem 1K-blocks Used Available Use% Mounted on devtmpfs 2005408 0 2005408 0% \/dev tmpfs 2015244 228 2015016 1% \/dev\/shm tmpfs 2015244 1336 2013908 1% \/run tmpfs 2015244 0 2015244 0% \/sys\/fs\/cgroup \/dev\/sda5 154803352 5044044 149759308 4% \/ tmpfs 2015244 96 2015148 1% \/tmp \/dev\/sda2 289293 92512 177325 35% \/boot tmpfs 403052 8 403044 1% \/run\/user\/42 tmpfs 403052 24 403028 1% \/run\/user\/1000<\/pre>\n\u6b64\u5904\uff0c\u6bcf\u4e2a\u5377\u7684\u78c1\u76d8\u7a7a\u95f4\u4ee5 1KB \u5757\u4e3a\u5355\u4f4d\u5217\u51fa\uff0c\u8fd9\u76f8\u5f53\u4e8e 2GB \u7684\u78c1\u76d8\u7a7a\u95f4\u3002\u56e0\u6b64\uff0c\u7b2c\u4e00\u4e2a\u9a71\u52a8\u5668 (devtmpfs) \u603b\u5171\u6709 2,005,408 \u4e2a 1KB \u6a21\u5757\u3002<\/p>\n
\u60a8\u53ef\u4ee5\u4f7f\u7528-h\u53c2\u6570\u6765\u83b7\u5f97\u66f4\u6613\u8bfb\u7684\u7ed3\u679c\uff1a<\/p>\n
Filesystem Size Used Avail Use% Mounted on devtmpfs 2.0G 0 2.0G 0% \/dev tmpfs 2.0G 228K 2.0G 1% \/dev\/shm tmpfs 2.0G 1.4M 2.0G 1% \/run tmpfs 2.0G 0 2.0G 0% \/sys\/fs\/cgroup \/dev\/sda5 148G 4.9G 143G 4% \/ tmpfs 2.0G 112K 2.0G 1% \/tmp \/dev\/sda2 283M 91M 174M 35% \/boot tmpfs 394M 8.0K 394M 1% \/run\/user\/42 tmpfs 394M 28K 394M 1% \/run\/user\/1000<\/pre>\nlocate<\/strong><\/div>\n\u5982\u679c\u4f60\u80fd\u8bb0\u5f97\u7684\u90e8\u5206\u6216\u5168\u90e8\u6587\u4ef6\u540d\uff0c\u4f46\u4f60\u4e0d\u77e5\u9053\u6587\u4ef6\u5728\u54ea\u4e2a\u76ee\u5f55\uff0c\u4f8b\u5982\uff0c\u5047\u8bbe\u4f60\u9700\u8981\u627e\u5230\u5305\u542b\u8be5\u6587\u4ef6\u7684\u76ee\u5f55\u7684httpd.conf\u3002\u4f4d\u6b64\uff0c\u8bf7\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n
locate httpd.conf<\/pre>\n\u60a8\u5c06\u83b7\u5f97\u7cfb\u7edf\u4e2d\u540d\u4e3ahttpd.conf\u7684\u4efb\u4f55\u6587\u4ef6\u7684\u4f4d\u7f6e\uff0c\u5728\u6211\u7684 Linux \u7cfb\u7edf\u4e0a\uff0c\u6709\u4e24\u4e2a\uff1a<\/p>\n
\/etc\/httpd\/conf\/httpd.conf \/usr\/lib\/tmpfiles.d\/httpd.conf<\/pre>\n\u5982\u679c\u60a8\u4e0d\u786e\u5b9a\u786e\u5207\u7684\u6587\u4ef6\u540d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u901a\u914d\u7b26\u3002\u4f8b\u5982\uff0c\u8981\u67e5\u627e\u6269\u5c55\u540d\u4e3a.conf \u7684\u6240\u6709\u6587\u4ef6\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n
locate *.conf<\/pre>\n\u7ed3\u679c\u5c06\u662f\u6570\u767e\u4e2a\u6587\u4ef6\u7684\u5217\u8868\uff0c\u8fd9\u4e9b\u6587\u4ef6\u53ef\u80fd\u96be\u4ee5\u9605\u8bfb\uff0c\u8981\u5c06\u663e\u793a\u9650\u5236\u4e3a\u4e00\u6b21\u53ea\u663e\u793a\u4e00\u4e2a\u5c4f\u5e55\uff0c\u60a8\u53ef\u4ee5\u5c06\u8f93\u51fa\u901a\u8fc7\u7ba1\u9053\u4f20\u9012\u7ed9more\u547d\u4ee4\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n
locate *.conf | more<\/pre>\n","protected":false},"excerpt":{"rendered":"tar\u547d\u4ee4\u6700\u521d\u88ab\u8bbe\u8ba1\u7528\u6765\u5728\u78c1\u76d8\u4e0a\u521b\u5efa\u6587\u4ef6\u7684\u5907\u4efd\u526f\u672c\uff0c\u4e8b\u5b9e\u4e0a\uff0ctar\u5b9e\u9645\u4e0a\u4ee3\u8868\u7684\u78c1\u76d8\u5f52\u6863\u3002 tar\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u6216 […]<\/p>\n","protected":false},"author":310,"featured_media":229837,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-229811","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/229811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/310"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=229811"}],"version-history":[{"count":15,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/229811\/revisions"}],"predecessor-version":[{"id":229875,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/229811\/revisions\/229875"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/229837"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=229811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=229811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=229811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}