{"id":6935,"date":"2021-07-28T13:34:48","date_gmt":"2021-07-28T05:34:48","guid":{"rendered":"https:\/\/www.ldhost.cn\/jc\/?p=6935"},"modified":"2021-07-28T13:46:56","modified_gmt":"2021-07-28T05:46:56","slug":"linux-%e7%b3%bb%e7%bb%9f%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%8c%82%e8%bd%bd%e7%ac%ac%e4%ba%8c%e5%9d%97%e7%a1%ac%e7%9b%98%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.ldhost.cn\/jc\/linux\/6935.html","title":{"rendered":"Linux \u7cfb\u7edf\u670d\u52a1\u5668\u6302\u8f7d\u7b2c\u4e8c\u5757\u786c\u76d8\u65b9\u6cd5"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u26a0\ufe0f\u672c\u6559\u7a0b\u4ec5\u9002\u7528\u4e8e XEN \u67b6\u6784 VPS \uff0c\u8bf7\u6838\u5bf9\u540e\u7ee7\u7eed\u64cd\u4f5c<\/p><\/blockquote>\n\n\n\n<p>\u51fa\u4e8e\u6570\u636e\u4fdd\u62a4\u673a\u5236\uff0c\u6709\u4e9b<a href=\"https:\/\/www.ldhost.cn\/vps.html\" target=\"_blank\" rel=\"noreferrer noopener\">\u670d\u52a1\u5668<\/a>\u51c6\u59072\u5757\u786c\u76d8\uff0c\u4e00\u5757\u7528\u6765\u5b58\u653e\u7528\u6237\u6570\u636e\uff08\u5373\u7f51\u7ad9\u6570\u636e\u7b49\uff09\uff0c\u4e00\u5757\u7528\u6765\u5b58\u653e\u7cfb\u7edf\uff0c\u8fd9\u6837\u5728\u60a8\u7684\u7cfb\u7edf\u51fa\u73b0\u95ee\u9898\u4e4b\u540e\u540e\u53f0\u9009\u62e9\u91cd\u88c5\u7cfb\u7edf\uff0c\u53e6\u5916\u4e00\u4e2a\u78c1\u76d8\u5206\u533a\u7684\u6570\u636e\u5c31\u4e0d\u4f1a\u4e22\u5931\u4e86\uff0c\u6240\u4ee5\u5728\u8d2d\u4e70VPS\u4e4b\u540e\uff0c\u8981\u624b\u52a8\u5c06\u53e6\u5916\u4e00\u5757\u786c\u76d8\u6302\u8f7d\u5230\u7528\u6237\u6570\u636e\u7684\u76ee\u5f55\u3002\u8fd9\u4e2a\u673a\u5236\u6709\u4e00\u4e2a\u7f3a\u70b9\u5c31\u662f\u5b58\u653e\u7cfb\u7edf\u7684\u5206\u533a\u5c06\u65e0\u6cd5\u5e94\u7528\u4e8e\u7528\u6237\u6570\u636e\uff08\u7f51\u7ad9\u6570\u636e\u7b49\uff09\uff0c\u4e0d\u8fc7\u5982\u679c\u60a8\u9700\u8981\u5145\u5206\u5229\u7528\u60a8\u7684\u78c1\u76d8\uff0c\u60a8\u53ef\u4ee5\u6302\u8f7d\u78c1\u76d8\u4e3aLVM\u683c\u5f0f\uff0c\u8bf7\u6ce8\u610f\uff0c<strong>LVM\u6302\u8f7d\u65b9\u5f0f\u91cd\u88c5\u7cfb\u7edf\u5c06\u4f1a\u4e22\u5931\u6240\u6709\u6570\u636e<\/strong>\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>KVM \u865a\u62df\u5316\u4e3a\u5355\u76d8\uff0c\u65e0\u6570\u636e\u76d8\uff0c\u8bf7\u52ff\u6267\u884c\u672c\u6302\u8f7d\u811a\u672c<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u5f53\u60a8\u7684 VPS \u5f00\u901a\u540e\uff0c\u4f7f\u7528 SSH \u767b\u5f55\u5230\u60a8\u7684 VPS\uff0c\u4f1a\u663e\u793a\u5982\u4e0b\u63d0\u793a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Dear customer,\n\n    The second disk of your vps is not mounted yet.\n     Please run \".\/AutoTools.sh\" to mount your second disk.\n\n                        Yours sincerely,\n                        ldhost.cn\n<\/code><\/pre>\n\n\n\n<p>\u8be5\u63d0\u793a\u544a\u8bc9\u60a8\uff0c<strong>\u60a8\u7684\u7b2c\u4e8c\u5757\u78c1\u76d8\u53ef\u80fd\u9700\u8981\u6302\u8f7d\uff0c\u6b64\u65f6\u60a8\u53ef\u4ee5\u624b\u52a8\u6302\u8f7d&nbsp;<code>\/dev\/xvdb<\/code>&nbsp;\u78c1\u76d8\u6216\u4f7f\u7528\u6211\u4eec\u63d0\u4f9b\u7684\u6302\u8f7d\u811a\u672c\u3002<\/strong><\/p>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5f00\u59cb\u6302\u8f7d\u6b65\u594f\uff1a<br>\u5728SSH\u4e2d\u6267\u884c\uff1a<code><strong>bash \/root\/AutoTools.sh<\/strong><\/code><br>\u5c06\u4f1a\u63d0\u793a\u4ee5\u4e0b\u9009\u9879\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Choose your favorite language\n===============================================\n1. English\n2. \u4e2d\u6587\n===============================================\n\nEnter your choice:\n<\/code><\/pre>\n\n\n\n<p>\u6b64\u65f6\uff0c\u82e5\u60a8\u4f7f\u7528\u7684 SSH \u5ba2\u6237\u7aef\u53ef\u4ee5\u6b63\u5e38\u663e\u793a<code>2. \u4e2d\u6587<\/code>\uff0c\u8bf7\u8f93\u5165&nbsp;<code>2<\/code>&nbsp;\u5e76\u56de\u8f66\u3002<br>\u82e5\u7b2c\u4e8c\u4e2a\u9009\u9879\u5728\u60a8\u672c\u5730\u663e\u793a\u4e3a\u4e71\u7801\u6216\u4e0d\u53ef\u8bfb\u5b57\u7b26\uff0c\u8bf7\u8f93\u5165&nbsp;<code>1<\/code>&nbsp;\u5e76\u56de\u8f66\u3002<\/p>\n\n\n\n<p>\u6b64\u65f6\u60a8\u5c06\u770b\u5230\u4ee5\u4e0b\u9009\u9879\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>AutoMount for XenSystem\n=================================================\n\u5371\u96aa\u64cd\u4f5c\uff0c\u50c5\u9069\u7528\u65bc\u65b0\u7684VPS\n\u6309 q \u53d6\u6d88\n1. \u4f7f\u7528\u6578\u64da\u786c\u789f\u64f4\u5c55\u6839\u5206\u5340(\/)\uff0c\u4f7f\u7528 LVM \u65b9\u5f0f\u6302\u8f7d\uff0c\u91cd\u88c5\u7cfb\u7edf\u5c06\u4e22\u5931\u6240\u6709\u6570\u636e\n2. \u5c07\u6578\u64da\u786c\u789f\u6302\u8f09\u70ba\u53e6\u4e00\u500b\u5206\u5340\n=================================================\n\n\u8f38\u5165\u4f60\u7684\u9078\u64c7:\n<\/code><\/pre>\n\n\n\n<ol class=\"wp-block-list\"><li>\u6302\u8f7d\u7b2c\u4e8c\u5757\u786c\u76d8\u4e3a LVM\uff08\u5408\u5e76\u7cfb\u7edf\u76d8\u4e0e\u6570\u636e\u76d8\uff0c\u91cd\u88c5\u7cfb\u7edf\u4f1a\u4e22\u5931\u6240\u6709\u6570\u636e\uff09<\/li><li>\u6302\u8f7d\u7b2c\u4e8c\u5757\u786c\u76d8\u4e3a ext4\uff08\u91cd\u88c5\u7cfb\u7edf\u4e0d\u4f1a\u4e22\u5931\uff0c\u53ef\u81ea\u5b9a\u4e49\u6302\u8f7d\u70b9\uff09<\/li><\/ol>\n\n\n\n<p>\u9009\u60a8\u6240\u9700\u8981\u7684\u6302\u8f7d\u65b9\u5f0f\uff0c<strong>\u6bd4\u5982\u9700\u8981\u6302\u8f7d\u81f3&nbsp;<code>\/home<\/code>&nbsp;\u76ee\u5f55\u8bf7\u8f93\u5165\u201c2\u201d<\/strong>\uff0c\u6b64\u65f6\u4f1a\u63d0\u793a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u8f38\u5165\u60a8\u9996\u9078\u7684\u639b\u8f09\u9ede (\/home, \/www):\n<\/code><\/pre>\n\n\n\n<p>\u6b64\u65f6\uff0c\u82e5\u60a8\u5373\u5c06\u5b89\u88c5\u5b9d\u5854\u9762\u677f\uff0c\u8bf7\u8f93\u5165&nbsp;<code>\/www<\/code>\uff0c\u5982\u9700\u81ea\u5b9a\u4e49\u6302\u8f7d\u70b9\u8bf7\u81ea\u884c\u8f93\u5165\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u26a0\ufe0f\u82e5\u60a8\u662f\u5728\u90e8\u7f72\u73af\u5883\u540e\u6267\u884c\u6302\u8f7d\u811a\u672c\uff0c\u8bf7\u5148\u8fdb\u884c\u6570\u636e\u5907\u4efd\u6216\u8f6c\u79fb\u3002<\/p><\/blockquote>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u6b64\u65f6\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528&nbsp;<code>df -lh<\/code>&nbsp;\u67e5\u770b\u78c1\u76d8\u5927\u5c0f\u662f\u5426\u6b63\u5e38\uff1a<\/p>\n\n\n\n<p>[root@MyCloudServer ~]# df -lh<br>Filesystem Size Used Avail Use% Mounted on<br>\/dev\/mapper\/vg_501153278-lv_root<br>8.4G 922M 7.1G 12% \/<br>tmpfs 249M 0 249M 0% \/dev\/shm<br>\/dev\/xvda1 485M 84M 376M 19% \/boot<br>\/dev\/xvdb1 5.0G 139M 4.6G 3% \/home<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>\u82e5\u4ee5\u4e0a\u5730\u5740\u65e0\u6cd5\u4e0b\u8f7d\u6302\u8f7d\u811a\u672c\uff0c\u8bf7\u5c1d\u8bd5\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/strong><\/p>\n\n\n\n<p class=\"has-vivid-red-color has-text-color\">rm -rf AutoToolsWget.sh;<br>wget https:\/\/www.ldhost.cn\/down\/AutoToolsWget.sh;<br>chmod +x AutoToolsWget.sh;<br>bash AutoToolsWget.sh;<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u6211\u4eec\u5df2\u4e8e&nbsp;<code>2020\u5e7403\u670805\u65e5<\/code>&nbsp;\u66f4\u65b0\u6302\u8f7d\u811a\u672c\u4e3a\u7b2c\u4e8c\u7248\uff0c\u65e7\u7248\u6302\u8f7d\u6559\u7a0b\u5df2\u9690\u85cf\u3002<\/p>\n\n\n\n<p>\u5982\u4f60\u5728\u767b\u5f55SSH\u65f6\u6ca1\u6709\u63d0\u793a\uff1aThe second disk of your vps is not mounted yet. Please run &#8220;.\/AutoTools.sh&#8221; to mount your second disk. \u4f46\u4e5f\u8981\u6302\u8f7d\u7b2c\u4e8c\u4e2a\u786c\u76d8\uff0c\u7528\u4e8e\u5b89\u88c5\u5b9d\u5854\u7ba1\u7406\u9762\u677f\u5230\u7b2c\u4e8c\u4e2a\u786c\u76d8\u4e0a\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u7528\u5b9d\u5854\u63d0\u4f9b\u7684\u81ea\u52a8\u6302\u8f7d\u786c\u76d8\u5c0f\u5de5\u5177\uff0c\u65b9\u6cd5\u53c2\u89c1\uff1a<a href=\"https:\/\/www.ldhost.cn\/jc\/vps\/3921.html\" target=\"_blank\" rel=\"noreferrer noopener\">\u5b9d\u5854BT-Panel\u51fa\u54c1Linux\u670d\u52a1\u5668\u81ea\u52a8\u6302\u8f7d\u786c\u76d8\u5de5\u5177<\/a><\/p>\n<div><img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/images\/ad-845-3.png\" alt=\"\u56fe\u7247\u63cf\u8ff0\" \/><\/div>","protected":false},"excerpt":{"rendered":"<p>\u26a0\ufe0f\u672c\u6559\u7a0b\u4ec5\u9002\u7528\u4e8e XEN \u67b6\u6784 VPS \uff0c\u8bf7\u6838\u5bf9\u540e\u7ee7\u7eed\u64cd\u4f5c \u51fa\u4e8e\u6570\u636e\u4fdd\u62a4\u673a\u5236\uff0c\u6709\u4e9b\u670d\u52a1\u5668\u51c6\u59072\u5757\u786c\u76d8\uff0c\u4e00\u5757\u7528\u6765\u5b58\u653e\u7528\u6237\u6570\u636e\uff08\u5373\u7f51\u7ad9\u6570\u636e\u7b49\uff09\uff0c\u4e00\u5757\u7528\u6765\u5b58\u653e\u7cfb\u7edf\uff0c\u8fd9\u6837\u5728\u60a8\u7684\u7cfb\u7edf\u51fa\u73b0\u95ee\u9898\u4e4b\u540e\u540e\u53f0\u9009\u62e9\u91cd\u88c5\u7cfb\u7edf\uff0c\u53e6\u5916\u4e00\u4e2a\u78c1\u76d8\u5206\u533a\u7684\u6570\u636e\u5c31\u4e0d\u4f1a\u4e22\u5931\u4e86\uff0c\u6240\u4ee5\u5728\u8d2d\u4e70VPS\u4e4b\u540e\uff0c\u8981\u624b\u52a8\u5c06\u53e6\u5916\u4e00\u5757\u786c\u76d8\u6302\u8f7d\u5230\u7528\u6237\u6570\u636e\u7684\u76ee\u5f55\u3002\u8fd9\u4e2a\u673a\u5236\u6709\u4e00\u4e2a\u7f3a\u70b9\u5c31\u662f\u5b58\u653e\u7cfb\u7edf\u7684\u5206\u533a\u5c06\u65e0\u6cd5\u5e94\u7528\u4e8e\u7528\u6237\u6570\u636e\uff08\u7f51\u7ad9\u6570\u636e\u7b49\uff09\uff0c\u4e0d\u8fc7\u5982\u679c\u60a8\u9700\u8981\u5145\u5206\u5229\u7528\u60a8\u7684\u78c1\u76d8\uff0c\u60a8\u53ef\u4ee5\u6302\u8f7d\u78c1\u76d8\u4e3aLVM\u683c\u5f0f\uff0c\u8bf7\u6ce8\u610f\uff0cLVM\u6302\u8f7d\u65b9\u5f0f\u91cd\u88c5\u7cfb\u7edf\u5c06\u4f1a\u4e22\u5931\u6240\u6709\u6570\u636e\u3002 KVM \u865a\u62df\u5316\u4e3a\u5355\u76d8\uff0c\u65e0\u6570\u636e\u76d8\uff0c\u8bf7\u52ff\u6267\u884c\u672c\u6302\u8f7d\u811a\u672c \u5f53\u60a8\u7684 VPS \u5f00\u901a\u540e\uff0c\u4f7f\u7528 SSH \u767b\u5f55\u5230\u60a8\u7684 VPS\uff0c\u4f1a\u663e&#8230; <a href=\"https:\/\/www.ldhost.cn\/jc\/linux\/6935.html\" class=\"readmore\">\u9605\u8bfb\u5168\u6587<span class=\"screen-reader-text\">Linux \u7cfb\u7edf\u670d\u52a1\u5668\u6302\u8f7d\u7b2c\u4e8c\u5757\u786c\u76d8\u65b9\u6cd5<\/span><span class=\"fa fa-angle-double-right\" aria-hidden=\"true\"><\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[],"class_list":["post-6935","post","type-post","status-publish","format-standard","hentry","category-linux","content-layout-excerpt-thumb"],"_links":{"self":[{"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/posts\/6935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/comments?post=6935"}],"version-history":[{"count":7,"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/posts\/6935\/revisions"}],"predecessor-version":[{"id":6945,"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/posts\/6935\/revisions\/6945"}],"wp:attachment":[{"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/media?parent=6935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/categories?post=6935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ldhost.cn\/jc\/wp-json\/wp\/v2\/tags?post=6935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}