{"id":20941,"date":"2025-04-19T03:56:24","date_gmt":"2025-04-18T19:56:24","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/20941.html"},"modified":"2025-04-19T03:56:24","modified_gmt":"2025-04-18T19:56:24","slug":"%e3%80%90linux%e3%80%91ubuntu%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e5%ae%89%e8%a3%85%e5%92%8c%e9%85%8d%e7%bd%ae%e7%ae%a1%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/20941.html","title":{"rendered":"\u3010Linux\u3011Ubuntu\u670d\u52a1\u5668\u7684\u5b89\u88c5\u548c\u914d\u7f6e\u7ba1\u7406"},"content":{"rendered":"<p>\u2139\ufe0f\u5927\u5bb6\u597d&#xff0c;\u6211\u662f\u7ec3\u5c0f\u6770&#xff0c;\u4eca\u5929\u5468\u4e8c\u4e86&#xff0c;\u54ea\u5412\u7684\u7968\u623f\u5df2\u7ecf\u5230\u4e86138\u4ebf\u4e86&#xff0c;\u997a\u5b50\u5bfc\u6f14\u597d\u6837\u7684&#xff01;&#xff01;\u6bcf\u4e2a\u4eba\u7684\u6210\u529f\u90fd\u4e0d\u662f\u5fc5\u7136\u7684&#xff0c;\u575a\u4fe1\u81ea\u5df1\u73b0\u5728\u505a\u7684\u4e8b\u662f\u53ef\u4ee5\u7684&#xff01;&#xff01;&#x1f606;<\/p>\n<hr \/>\n<p> \u672c\u6587\u662f\u6709\u5173Ubuntu\u670d\u52a1\u5668\u7684\u56fe\u5f62\u5b89\u88c5\u6b65\u9aa4\u4ee5\u53ca\u914d\u7f6e&#xff0c;\u540e\u7eed\u5c06\u6dfb\u52a0\u66f4\u591a\u76f8\u5173\u77e5\u8bc6\u5662&#xff0c;\u8c22\u8c22\u5404\u4f4d\u7684\u652f\u6301&#x1f64f; <\/p>\n<p>\u524d\u60c5\u56de\u987e: \u3010\u63a2\u8ba8\u8f6f\u94fe\u63a5(symbolic link)\u3011 Linux\u4e13\u680f&#xff1a;&#x1f51d; \u3010Linux\u96f6\u57fa\u7840\u5f00\u59cb\u3011\u3010Shell \u811a\u672c\u7f16\u7a0b\u3011 \u3010Linux\u6587\u4ef6\u7cfb\u7edf\u3011<\/p>\n<h2>\u4e3b\u9875&#xff1a;&#x1f449;\u3010\u7ec3\u5c0f\u6770\u7684CSDN\u3011<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195620-6802ae64473a6.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/p>\n<h4>Ubuntu\u670d\u52a1\u5668<\/h4>\n<ul>\n<li>\u4e3b\u9875&#xff1a;&#x1f449;\u3010[\u7ec3\u5c0f\u6770\u7684CSDN](https:\/\/blog.csdn.net\/weixin_55767624?spm&#061;1011.2415.3001.5343)\u3011<\/li>\n<li>\u524d\u8a00<\/li>\n<li>\u5b89\u88c5Ubuntu\u670d\u52a1\u5668<\/li>\n<li>\n<ul>\n<li>\u5b89\u88c5\u5f00\u59cb\u7684\u6b22\u8fce\u754c\u9762<\/li>\n<li>\u9009\u62e9\u952e\u76d8\u914d\u7f6e<\/li>\n<li>\u9009\u62e9\u5b89\u88c5\u7684\u5e73\u53f0<\/li>\n<li>\u914d\u7f6e\u7f51\u7edc\u8fde\u63a5<\/li>\n<li>\u914d\u7f6eUbuntu\u8f6f\u4ef6\u5305\u5b89\u88c5\u6e90<\/li>\n<li>\u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf<\/li>\n<li>\u9009\u62e9\u8981\u5b89\u88c5\u7cfb\u7edf\u7684\u78c1\u76d8<\/li>\n<li>\u786e\u8ba4\u6587\u4ef6\u7cfb\u7edf\u8bbe\u7f6e<\/li>\n<li>\u786e\u8ba4\u7ee7\u7eed\u64cd\u4f5c<\/li>\n<li>\u7528\u6237\u8d26\u6237\u548c\u4e3b\u673a\u540d\u8bbe\u7f6e<\/li>\n<li>SSH\u8bbe\u7f6e<\/li>\n<li>\u9009\u62e9\u7279\u8272\u670d\u52a1\u5668<\/li>\n<li>\u5b89\u88c5\u5b8c\u6bd5\u754c\u9762<\/li>\n<li>\u6210\u529f\u767b\u5f55\u670d\u52a1\u5668<\/li>\n<\/ul>\n<\/li>\n<li>\u8c03\u6574\u7f51\u7edc\u914d\u7f6e<\/li>\n<li>\n<ul>\n<li>netplan\u5de5\u5177<\/li>\n<li>\u4fee\u6539\u7f51\u7edc\u914d\u7f6e\u6587\u4ef6&#096;\/etc\/netplan\/50-cloud-init.yaml&#096;<\/li>\n<\/ul>\n<\/li>\n<li>\u901a\u8fc7SSH\u8fdc\u7a0b\u767b\u5f55\u670d\u52a1\u5668<\/li>\n<li>\u57fa\u4e8eWeb\u754c\u9762\u8fdc\u7a0b\u7ba1\u7406Ubuntu\u670d\u52a1\u5668<\/li>\n<li>\n<ul>\n<li>\u5b89\u88c5\u684c\u9762\u73af\u5883Ubuntu desktop<\/li>\n<li>\u5b89\u88c5Webmin<\/li>\n<li>\n<ul>\n<li>\u901a\u8fc7APT\u5b89\u88c5&#xff08;\u9002\u7528\u4e8eDebian\/Ubuntu&#xff09;<\/li>\n<li>\u901a\u8fc7YUM\u5b89\u88c5&#xff08;\u9002\u7528\u4e8eCentOS\/RHEL&#xff09;<\/li>\n<li>\u901a\u8fc7\u4e0b\u8f7d\u4e8c\u8fdb\u5236\u5305\u5b89\u88c5<\/li>\n<\/ul>\n<\/li>\n<li>Webmin\u7684\u914d\u7f6e<\/li>\n<li>Webmin\u7684\u5b89\u5168\u6027<\/li>\n<li>Webmin\u7684\u4f18\u7f3a\u70b9<\/li>\n<\/ul>\n<\/li>\n<li>\u901a\u8fc7\u6d4f\u89c8\u5668\u4f7f\u7528Webmin\u6765\u7ba1\u7406\u670d\u52a1\u5668<\/li>\n<li>\n<ul>\n<li>Webmin\u767b\u5f55\u754c\u9762<\/li>\n<li>Webmin\u4e3b\u754c\u9762<\/li>\n<li>SSH\u670d\u52a1\u5668\u7ba1\u7406\u754c\u9762<\/li>\n<li>\u6587\u4ef6\u7ba1\u7406\u5668\u754c\u9762<\/li>\n<\/ul>\n<\/li>\n<li>\u52a8\u6001\u8c03\u6574\u78c1\u76d8\u5b58\u50a8\u7a7a\u95f4<\/li>\n<li>\n<ul>\n<li>LVM\u7cfb\u7edf\u7ed3\u6784<\/li>\n<li>LVM\u7ba1\u7406\u5de5\u5177<\/li>\n<li>\u5e38\u7528\u5de5\u5177<\/li>\n<li>\u6269\u5c55\u903b\u8f91\u5377<\/li>\n<li>\n<ul>\n<li>1. \u68c0\u67e5\u5f53\u524d\u78c1\u76d8\u7a7a\u95f4<\/li>\n<li>2. \u68c0\u67e5\u5377\u7ec4\u662f\u5426\u6709\u53ef\u7528\u7a7a\u95f4<\/li>\n<li>3. \u6269\u5c55\u5377\u7ec4&#xff08;\u5982\u679c\u9700\u8981&#xff09;<\/li>\n<li>4. \u6269\u5c55\u903b\u8f91\u5377<\/li>\n<li>\u6269\u5c55\u6587\u4ef6\u7cfb\u7edf<\/li>\n<\/ul>\n<\/li>\n<li>\u7f29\u51cf\u903b\u8f91\u5377<\/li>\n<li>\n<ul>\n<li>1. \u5378\u8f7d\u6587\u4ef6\u7cfb\u7edf<\/li>\n<li>2. \u68c0\u67e5\u6587\u4ef6\u7cfb\u7edf<\/li>\n<li>3. \u7f29\u51cf\u6587\u4ef6\u7cfb\u7edf<\/li>\n<li>4. \u7f29\u51cf\u903b\u8f91\u5377&#xff1a;<\/li>\n<li>5. \u91cd\u65b0\u6302\u8f7d\u6587\u4ef6\u7cfb\u7edf&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<li>\u26a0\ufe0f\u6ce8\u610f<\/li>\n<\/ul>\n<\/li>\n<li>\u793a\u4f8b&#xff1a;\u6269\u5c55\u903b\u8f91\u5377<\/li>\n<li>\n<ul>\n<li>1. \u68c0\u67e5\u5f53\u524d\u78c1\u76d8\u7a7a\u95f4<\/li>\n<li>2.\u68c0\u67e5\u5377\u7ec4<\/li>\n<li>3.\u6269\u5c55\u903b\u8f91\u5377<\/li>\n<li>4.\u6269\u5c55\u6587\u4ef6\u7cfb\u7edf<\/li>\n<li>5.\u9a8c\u8bc1\u7ed3\u679c<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195620-6802ae64b5e01.gif\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>\u524d\u8a00<\/h2>\n<p>\u4e4b\u524d\u6211\u4eec\u5df2\u7ecf\u8bb2\u8fc7\u5de5\u5177\u3010VMware Workstation \u5b89\u88c5Ubuntu \u7cfb\u7edf\u3011\u7684\u56fe\u6587\u6b65\u9aa4&#xff0c;\u611f\u5174\u8da3\u7684\u53ef\u4ee5\u770b\u770b&#xff0c;\u800c\u672c\u6587\u662f\u5bf9\u6b64\u6b65\u9aa4\u4e0a\u7684\u4e00\u4e2a\u8865\u5145\u8bf4\u660e&#xff01;&#xff01;&#xff01;&#x1f64f;<\/p>\n<h2>\u5b89\u88c5Ubuntu\u670d\u52a1\u5668<\/h2>\n<p>\u4ee5\u4e0b\u64cd\u4f5c\u662f\u76f4\u63a5\u5229\u7528\u955c\u50cf\u5b89\u88c5Ubuntu\u670d\u52a1\u5668\u7684\u56fe\u6587\u8bf4\u660e&#xff01;&#xff01;<\/p>\n<h3>\u5b89\u88c5\u5f00\u59cb\u7684\u6b22\u8fce\u754c\u9762<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195620-6802ae64ceb75.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u9009\u62e9\u952e\u76d8\u914d\u7f6e<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195620-6802ae64f25c5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u9009\u62e9\u5b89\u88c5\u7684\u5e73\u53f0<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195621-6802ae6521edc.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u914d\u7f6e\u7f51\u7edc\u8fde\u63a5<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195621-6802ae6545c06.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u914d\u7f6eUbuntu\u8f6f\u4ef6\u5305\u5b89\u88c5\u6e90<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195621-6802ae656999d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u8bbe\u7f6e\u6587\u4ef6\u7cfb\u7edf<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195621-6802ae658b96e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u9009\u62e9\u8981\u5b89\u88c5\u7cfb\u7edf\u7684\u78c1\u76d8<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195621-6802ae65ae382.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u786e\u8ba4\u6587\u4ef6\u7cfb\u7edf\u8bbe\u7f6e<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195621-6802ae65d10ba.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u786e\u8ba4\u7ee7\u7eed\u64cd\u4f5c<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195622-6802ae66006ef.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u7528\u6237\u8d26\u6237\u548c\u4e3b\u673a\u540d\u8bbe\u7f6e<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195622-6802ae661c7d5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>SSH\u8bbe\u7f6e<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195622-6802ae663d960.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u9009\u62e9\u7279\u8272\u670d\u52a1\u5668<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195622-6802ae665e2be.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u5b89\u88c5\u5b8c\u6bd5\u754c\u9762<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195622-6802ae66804ba.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u6210\u529f\u767b\u5f55\u670d\u52a1\u5668<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195622-6802ae66a276b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>\u8c03\u6574\u7f51\u7edc\u914d\u7f6e<\/h2>\n<h3>netplan\u5de5\u5177<\/h3>\n<p>netplan\u662f\u62bd\u8c61\u7f51\u7edc\u914d\u7f6e\u751f\u6210\u5668&#xff0c;\u662f\u4e00\u4e2a\u7528\u4e8e\u914d\u7f6eLinux\u7f51\u7edc\u7684\u7b80\u5355\u5de5\u5177\u3002 \u901a\u8fc7netplan&#xff0c;\u53ea\u9700\u4f7f\u7528\u4e00\u4e2aYAML\u6587\u4ef6\u63cf\u8ff0\u6bcf\u4e2a\u7f51\u7edc\u63a5\u53e3\u6240\u9700\u8981\u7684\u914d\u7f6e\u5373\u53ef\u6839\u636e\u8fd9\u4e2a\u914d\u7f6e\u63cf\u8ff0&#xff0c;netplan\u4fbf\u53ef\u751f\u6210\u6240\u6709\u9700\u8981\u7684\u914d\u7f6e\u3002 netplan\u4ece\u6587\u4ef6\/etc\/netplan\/*.yaml\u8bfb\u53d6\u76f8\u5173\u914d\u7f6e\u3002<\/p>\n<h3>\u4fee\u6539\u7f51\u7edc\u914d\u7f6e\u6587\u4ef6\/etc\/netplan\/50-cloud-init.yaml<\/h3>\n<p>network:<br \/>\n  ethernets:<br \/>\n    ens33:<br \/>\n      addresses: <span class=\"token punctuation\">[<\/span>192<span class=\"token punctuation\">.<\/span>168<span class=\"token punctuation\">.<\/span>199<span class=\"token punctuation\">.<\/span>211\/24<span class=\"token punctuation\">]<\/span><br \/>\n      gateway4:  192<span class=\"token punctuation\">.<\/span>168<span class=\"token punctuation\">.<\/span>199<span class=\"token punctuation\">.<\/span>1<br \/>\n      nameservers:<br \/>\n         addresses: <span class=\"token punctuation\">[<\/span>114<span class=\"token punctuation\">.<\/span>114<span class=\"token punctuation\">.<\/span>114<span class=\"token punctuation\">.<\/span>114<span class=\"token punctuation\">,<\/span> 8<span class=\"token punctuation\">.<\/span>8<span class=\"token punctuation\">.<\/span>8<span class=\"token punctuation\">.<\/span>8<span class=\"token punctuation\">]<\/span><br \/>\n      dhcp4: no<br \/>\n      optional: no<br \/>\n  version:  2<\/p>\n<ul>\n<li>\u8bbe\u7f6e\u5b8c\u6210\u540e&#xff0c;\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u66f4\u65b0\u7f51\u7edc\u7684\u8bbe\u7f6e<\/li>\n<\/ul>\n<p><span class=\"token function\">sudo<\/span>  netplan apply<\/p>\n<h2>\u901a\u8fc7SSH\u8fdc\u7a0b\u767b\u5f55\u670d\u52a1\u5668<\/h2>\n<p>\u4e3b\u8981\u5229\u7528\u5de5\u5177JVM&#xff08;Java\u865a\u62df\u673a&#xff09;\u8fdb\u884c\u8fdc\u7a0b\u767b\u5f55&#xff0c;\u8d1f\u8d23\u6267\u884cJava\u5b57\u8282\u7801\u5e76\u63d0\u4f9b\u8fd0\u884c\u65f6\u73af\u5883\u3002<\/p>\n<ul>\n<li>\u5176\u4e2d&#xff0c;OpenJDK\u662f\u6700\u5e38\u7528\u7684\u5f00\u6e90JVM\u5b9e\u73b0\u3002\u5728Ubuntu\u670d\u52a1\u5668\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u53ef\u4ee5\u9009\u62e9\u5b89\u88c5OpenSSH server\u3002<\/li>\n<\/ul>\n<p><span class=\"token comment\">#\u76f4\u63a5\u5b89\u88c5OpenSSH\u670d\u52a1\u5668\u3002<\/span><br \/>\n<span class=\"token function\">sudo<\/span> tasksel <span class=\"token function\">install<\/span> openssh-server<\/p>\n<p><span class=\"token comment\">#\u4f7f\u7528SSH\u5ba2\u6237\u7aef\u6765\u8fdc\u7a0b\u767b\u5f55SSH\u670d\u52a1\u5668&#xff0c;\u5e76\u8fdb\u884c\u63a7\u5236\u548c\u7ba1\u7406\u64cd\u4f5c\u3002<\/span><br \/>\n<span class=\"token function\">ssh<\/span> <span class=\"token parameter variable\">-l<\/span> <span class=\"token punctuation\">[<\/span>\u8fdc\u7a0b\u4e3b\u673a\u7528\u6237\u8d26\u6237<span class=\"token punctuation\">]<\/span> <span class=\"token punctuation\">[<\/span>\u8fdc\u7a0b\u670d\u52a1\u5668\u4e3b\u673a\u540d\u6216IP\u5730\u5740<span class=\"token punctuation\">]<\/span><\/p>\n<h2>\u57fa\u4e8eWeb\u754c\u9762\u8fdc\u7a0b\u7ba1\u7406Ubuntu\u670d\u52a1\u5668<\/h2>\n<p>\u5728Ubuntu\u670d\u52a1\u5668\u4e0a\u53ef\u4ee5\u76f4\u63a5\u5b89\u88c5\u56fe\u5f62\u5316\u684c\u9762\u73af\u5883\u3002<\/p>\n<h3>\u5b89\u88c5\u684c\u9762\u73af\u5883Ubuntu desktop<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195622-6802ae66c5ebd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u5b89\u88c5Webmin<\/h3>\n<p>Webmin \u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u57fa\u4e8eWeb\u7684Linux\u7cfb\u7edf\u7ba1\u7406\u5de5\u5177&#xff0c;\u5141\u8bb8\u7528\u6237\u901a\u8fc7\u56fe\u5f62\u7528\u6237\u754c\u9762&#xff08;GUI&#xff09;\u6765\u7ba1\u7406\u5404\u79cd\u7cfb\u7edf\u914d\u7f6e&#xff0c;\u800c\u65e0\u9700\u76f4\u63a5\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\u6216\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u3002<\/p>\n<ul>\n<li>Webmin\u7684\u57fa\u672c\u529f\u80fd<\/li>\n<\/ul>\n<p>\u7528\u6237\u7ba1\u7406&#xff1a;\u521b\u5efa\u3001\u4fee\u6539\u548c\u5220\u9664\u7528\u6237\u548c\u7528\u6237\u7ec4&#xff0c;\u8bbe\u7f6e\u7528\u6237\u6743\u9650\u3002<\/p>\n<p>\u6587\u4ef6\u7ba1\u7406&#xff1a;\u901a\u8fc7\u6d4f\u89c8\u5668\u7ba1\u7406\u670d\u52a1\u5668\u4e0a\u7684\u6587\u4ef6\u548c\u76ee\u5f55&#xff0c;\u5305\u62ec\u4e0a\u4f20\u3001\u4e0b\u8f7d\u3001\u7f16\u8f91\u548c\u5220\u9664\u6587\u4ef6\u3002<\/p>\n<p>\u8f6f\u4ef6\u5305\u7ba1\u7406&#xff1a;\u5b89\u88c5\u3001\u66f4\u65b0\u548c\u5378\u8f7d\u8f6f\u4ef6\u5305&#xff0c;\u652f\u6301\u591a\u79cdLinux\u53d1\u884c\u7248\u7684\u5305\u7ba1\u7406\u5668&#xff08;\u5982APT\u3001YUM\u7b49&#xff09;\u3002<\/p>\n<p>\u670d\u52a1\u7ba1\u7406&#xff1a;\u542f\u52a8\u3001\u505c\u6b62\u3001\u91cd\u542f\u548c\u7ba1\u7406\u7cfb\u7edf\u670d\u52a1&#xff0c;\u5982Apache\u3001Nginx\u3001MySQL\u7b49\u3002<\/p>\n<p>\u7f51\u7edc\u914d\u7f6e&#xff1a;\u7ba1\u7406\u7f51\u7edc\u63a5\u53e3\u3001\u8def\u7531\u3001\u9632\u706b\u5899\u8bbe\u7f6e&#xff08;\u5982iptables&#xff09;\u7b49\u3002<\/p>\n<p>\u7cfb\u7edf\u76d1\u63a7&#xff1a;\u5b9e\u65f6\u76d1\u63a7\u7cfb\u7edf\u6027\u80fd&#xff0c;\u5305\u62ecCPU\u4f7f\u7528\u7387\u3001\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\u3001\u78c1\u76d8\u7a7a\u95f4\u7b49\u3002<\/p>\n<p>\u5907\u4efd\u4e0e\u6062\u590d&#xff1a;\u521b\u5efa\u548c\u7ba1\u7406\u7cfb\u7edf\u5907\u4efd&#xff0c;\u8bbe\u7f6e\u81ea\u52a8\u5907\u4efd\u4efb\u52a1\u3002<\/p>\n<h4>\u901a\u8fc7APT\u5b89\u88c5&#xff08;\u9002\u7528\u4e8eDebian\/Ubuntu&#xff09;<\/h4>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> <span class=\"token function\">wget<\/span> apt-transport-https<br \/>\n<span class=\"token function\">wget<\/span> https:\/\/download.webmin.com\/jcameron-key.asc<br \/>\n<span class=\"token function\">sudo<\/span> apt-key <span class=\"token function\">add<\/span> jcameron-key.asc<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">sh<\/span> <span class=\"token parameter variable\">-c<\/span> <span class=\"token string\">&#039;echo &#034;deb https:\/\/download.webmin.com\/download\/repository sarge contrib&#034; &gt; \/etc\/apt\/sources.list.d\/webmin.list&#039;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> webmin<\/p>\n<h4>\u901a\u8fc7YUM\u5b89\u88c5&#xff08;\u9002\u7528\u4e8eCentOS\/RHEL&#xff09;<\/h4>\n<p><span class=\"token function\">sudo<\/span> yum <span class=\"token function\">install<\/span> epel-release<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">rpm<\/span> <span class=\"token parameter variable\">-Uvh<\/span> https:\/\/download.webmin.com\/jcameron-key.asc<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">sh<\/span> <span class=\"token parameter variable\">-c<\/span> <span class=\"token string\">&#039;echo &#034;deb https:\/\/download.webmin.com\/download\/repository sarge contrib&#034; &gt; \/etc\/yum.repos.d\/webmin.repo&#039;<\/span><br \/>\n<span class=\"token function\">sudo<\/span> yum <span class=\"token function\">install<\/span> webmin<\/p>\n<h4>\u901a\u8fc7\u4e0b\u8f7d\u4e8c\u8fdb\u5236\u5305\u5b89\u88c5<\/h4>\n<p>\u8bbf\u95ee Webmin\u5b98\u7f51 \u4e0b\u8f7d\u9002\u7528\u4e8eLinux\u7684\u4e8c\u8fdb\u5236\u5305&#xff0c;\u7136\u540e\u6309\u7167\u5b98\u65b9\u6587\u6863\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<h3>Webmin\u7684\u914d\u7f6e<\/h3>\n<p>\u4e3a\u4fbf\u4e8e\u5176\u4ed6\u4e3b\u673a\u8fdc\u7a0b\u8bbf\u95eeWebmin\u7684\u63a7\u5236\u53f0&#xff0c;\u9700\u8981\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5728\u9632\u706b\u5899\u91cc\u5f00\u542f\u5668\u9ed8\u8ba4\u7aef\u53e3\u201c10000\u201d\u3002<\/p>\n<ul>\n<li>\u8bbf\u95eeWebmin&#xff1a;\u5b89\u88c5\u5b8c\u6210\u540e&#xff0c;\u6253\u5f00\u6d4f\u89c8\u5668&#xff0c;\u8bbf\u95ee https:\/\/your_server_ip:10000<\/li>\n<li>\u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff0c;Webmin\u4f7f\u752810000\u7aef\u53e3\u3002<\/li>\n<\/ul>\n<h3>Webmin\u7684\u5b89\u5168\u6027<\/h3>\n<ul>\n<li>\u4f7f\u7528\u5f3a\u5bc6\u7801&#xff1a;\u786e\u4fdd\u4f7f\u7528\u5f3a\u5bc6\u7801&#xff0c;\u5e76\u5b9a\u671f\u66f4\u6539\u3002<\/li>\n<li>\u9650\u5236\u8bbf\u95ee&#xff1a;\u901a\u8fc7\u9632\u706b\u5899&#xff08;\u5982iptables&#xff09;\u9650\u5236\u5bf9Webmin\u7aef\u53e3\u7684\u8bbf\u95ee&#xff0c;\u53ea\u5141\u8bb8\u53ef\u4fe1\u7684IP\u5730\u5740\u8bbf\u95ee\u3002<\/li>\n<li>\u542f\u7528SSL\/TLS&#xff1a;\u786e\u4fddWebmin\u901a\u8fc7HTTPS\u8bbf\u95ee&#xff0c;\u4ee5\u4fdd\u62a4\u6570\u636e\u4f20\u8f93\u5b89\u5168\u3002<\/li>\n<li>\u5b9a\u671f\u66f4\u65b0&#xff1a;\u4fdd\u6301Webmin\u7248\u672c\u6700\u65b0&#xff0c;\u4ee5\u83b7\u53d6\u6700\u65b0\u7684\u5b89\u5168\u8865\u4e01\u548c\u529f\u80fd\u66f4\u65b0\u3002<\/li>\n<\/ul>\n<h3>Webmin\u7684\u4f18\u7f3a\u70b9<\/h3>\n<ul>\n<li>\u4f18\u70b9<\/li>\n<\/ul>\n<p>\u6613\u4e8e\u4f7f\u7528&#xff1a;\u56fe\u5f62\u7528\u6237\u754c\u9762\u76f4\u89c2\u6613\u7528&#xff0c;\u9002\u5408\u4e0d\u719f\u6089\u547d\u4ee4\u884c\u7684\u7528\u6237\u3002 \u529f\u80fd\u5f3a\u5927&#xff1a;\u6db5\u76d6\u4e86\u7cfb\u7edf\u7ba1\u7406\u7684\u5404\u4e2a\u65b9\u9762&#xff0c;\u529f\u80fd\u4e30\u5bcc\u3002 \u8de8\u5e73\u53f0&#xff1a;\u652f\u6301\u591a\u79cdLinux\u53d1\u884c\u7248&#xff0c;\u4ee5\u53ca\u5176\u4ed6\u7c7bUnix\u7cfb\u7edf\u3002<\/p>\n<ul>\n<li>\u7f3a\u70b9<\/li>\n<\/ul>\n<p>\u5b89\u5168\u6027\u98ce\u9669&#xff1a;\u5982\u679c\u914d\u7f6e\u4e0d\u5f53&#xff0c;\u53ef\u80fd\u6210\u4e3a\u653b\u51fb\u76ee\u6807\u3002 \u6027\u80fd\u5f00\u9500&#xff1a;\u5bf9\u4e8e\u5927\u578b\u7cfb\u7edf&#xff0c;Webmin\u53ef\u80fd\u4f1a\u5e26\u6765\u4e00\u5b9a\u7684\u6027\u80fd\u5f00\u9500\u3002<\/p>\n<h2>\u901a\u8fc7\u6d4f\u89c8\u5668\u4f7f\u7528Webmin\u6765\u7ba1\u7406\u670d\u52a1\u5668<\/h2>\n<h3>Webmin\u767b\u5f55\u754c\u9762<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195622-6802ae66e9540.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>Webmin\u4e3b\u754c\u9762<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195623-6802ae6717721.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>SSH\u670d\u52a1\u5668\u7ba1\u7406\u754c\u9762<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195623-6802ae674cacf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u6587\u4ef6\u7ba1\u7406\u5668\u754c\u9762<\/h3>\n<p><img decoding=\"async\" src=\"2025-04-194simjnhjzrd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>\u52a8\u6001\u8c03\u6574\u78c1\u76d8\u5b58\u50a8\u7a7a\u95f4<\/h2>\n<p>\u5728Ubuntu Linux\u7cfb\u7edf\u4e2d&#xff0c;\u52a8\u6001\u8c03\u6574\u78c1\u76d8\u5b58\u50a8\u7a7a\u95f4&#xff08;\u901a\u5e38\u79f0\u4e3a\u52a8\u6001\u5206\u533a\u8c03\u6574\u6216\u5728\u7ebf\u5206\u533a\u8c03\u6574&#xff09;\u662f\u6307\u5728\u4e0d\u91cd\u542f\u7cfb\u7edf\u6216\u4e2d\u65ad\u670d\u52a1\u7684\u60c5\u51b5\u4e0b&#xff0c;\u8c03\u6574\u5206\u533a\u7684\u5927\u5c0f\u6216\u91cd\u65b0\u5206\u914d\u5b58\u50a8\u7a7a\u95f4\u3002<\/p>\n<h3>LVM\u7cfb\u7edf\u7ed3\u6784<\/h3>\n<p>LVM\u662fLinux\u7cfb\u7edf\u4e2d\u5e38\u7528\u7684\u903b\u8f91\u5377\u7ba1\u7406\u5de5\u5177&#xff0c;\u5b83\u63d0\u4f9b\u4e86\u6bd4\u4f20\u7edf\u5206\u533a\u66f4\u7075\u6d3b\u7684\u7ba1\u7406\u65b9\u5f0f\u3002<\/p>\n<ul>\n<li>\u7269\u7406\u5377&#xff08;Physical Volume&#xff0c;PV&#xff09;&#xff1a;\u5bf9\u5e94\u5b9e\u9645\u7684\u78c1\u76d8\u6216\u5206\u533a\u3002<\/li>\n<li>\u5377\u7ec4&#xff08;Volume Group&#xff0c;VG&#xff09;&#xff1a;\u7531\u4e00\u4e2a\u6216\u591a\u4e2a\u7269\u7406\u5377\u7ec4\u6210\u3002<\/li>\n<li>\u903b\u8f91\u5377&#xff08;Logical Volume&#xff0c;LV&#xff09;&#xff1a;\u4ece\u5377\u7ec4\u4e2d\u5206\u914d\u7684\u7a7a\u95f4&#xff0c;\u7c7b\u4f3c\u4e8e\u4f20\u7edf\u5206\u533a\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"2025-04-19h00e3fl0b0k.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>LVM\u673a\u5236<\/li>\n<\/ul>\n<p>\u903b\u8f91\u5377\u7684\u5f62\u6210\u8fc7\u7a0b&#xff1a;<\/p>\n<li>\u521d\u59cb\u5316\u7269\u7406\u5377&#xff08;PV&#xff09;\u3002<\/li>\n<li>\u5728\u7269\u7406\u5377\u4e0a\u521b\u5efa\u5377\u7ec4&#xff08;VG)\u3002<\/li>\n<li>\u5728\u5377\u7ec4\u4e0a\u521b\u5efa\u903b\u8f91\u5377&#xff08;LV&#xff09;\u3002<\/li>\n<p>\u5176\u4e2d&#xff0c;\u5377\u7ec4\u662f\u4ee5PE\u4e3a\u5355\u4f4d<\/p>\n<p><img decoding=\"async\" src=\"2025-04-19uiufpkow0uh.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>LVM\u7ba1\u7406\u5de5\u5177<\/h3>\n<p><img decoding=\"async\" src=\"2025-04-19vbxpfi5xqrv.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u5e38\u7528\u5de5\u5177<\/h3>\n<ul>\n<li>LVM\u5de5\u5177&#xff1a;\u5305\u62ecpvcreate\u3001vgcreate\u3001lvcreate\u3001lvextend\u3001lvreduce\u7b49&#xff0c;\u7528\u4e8e\u7ba1\u7406\u7269\u7406\u5377\u3001\u5377\u7ec4\u548c\u903b\u8f91\u5377\u3002<\/li>\n<li>\u6587\u4ef6\u7cfb\u7edf\u5de5\u5177&#xff1a;\u6839\u636e\u6587\u4ef6\u7cfb\u7edf\u7684\u4e0d\u540c&#xff0c;\u4f7f\u7528\u76f8\u5e94\u7684\u5de5\u5177\u8fdb\u884c\u6269\u5c55\u6216\u68c0\u67e5\u3002\u4f8b\u5982&#xff0c;resize2fs\u7528\u4e8eext2\/ext3\/ext4\u6587\u4ef6\u7cfb\u7edf&#xff0c;xfs_growfs\u7528\u4e8eXFS\u6587\u4ef6\u7cfb\u7edf\u3002<\/li>\n<li>\u56fe\u5f62\u5316\u5de5\u5177&#xff1a;\u5982gparted&#xff0c;\u63d0\u4f9b\u56fe\u5f62\u754c\u9762\u8fdb\u884c\u5206\u533a\u548c\u6587\u4ef6\u7cfb\u7edf\u7ba1\u7406\u3002<\/li>\n<\/ul>\n<h3>\u6269\u5c55\u903b\u8f91\u5377<\/h3>\n<p>\u5047\u8bbe\u9700\u8981\u6269\u5c55\u4e00\u4e2a\u903b\u8f91\u5377\/dev\/vg0\/lv0\u7684\u5927\u5c0f\u3002<\/p>\n<h4>1. \u68c0\u67e5\u5f53\u524d\u78c1\u76d8\u7a7a\u95f4<\/h4>\n<p><span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-h<\/span><\/p>\n<h4>2. \u68c0\u67e5\u5377\u7ec4\u662f\u5426\u6709\u53ef\u7528\u7a7a\u95f4<\/h4>\n<p>vgdisplay vg0<\/p>\n<p>\u5982\u679c\u6ca1\u6709\u53ef\u7528\u7a7a\u95f4&#xff0c;\u9700\u8981\u5148\u6269\u5c55\u5377\u7ec4\u3002<\/p>\n<h4>3. \u6269\u5c55\u5377\u7ec4&#xff08;\u5982\u679c\u9700\u8981&#xff09;<\/h4>\n<p><span class=\"token function\">sudo<\/span> pvcreate \/dev\/sdX<br \/>\n<span class=\"token function\">sudo<\/span> vgextend vg0 \/dev\/sdX<\/p>\n<p>\u5176\u4e2d&#xff0c;\/dev\/sdX\u662f\u65b0\u6dfb\u52a0\u7684\u78c1\u76d8\u6216\u5206\u533a\u3002<\/p>\n<h4>4. \u6269\u5c55\u903b\u8f91\u5377<\/h4>\n<p><span class=\"token function\">sudo<\/span> lvextend <span class=\"token parameter variable\">-L<\/span> &#043;5G \/dev\/vg0\/lv0<\/p>\n<p>\u6216\u8005\u4f7f\u7528\u767e\u5206\u6bd4&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> lvextend <span class=\"token parameter variable\">-l<\/span> &#043;50%FREE \/dev\/vg0\/lv0<\/p>\n<h4>\u6269\u5c55\u6587\u4ef6\u7cfb\u7edf<\/h4>\n<ul>\n<li>\n<p>\u5bf9\u4e8eext4\u6587\u4ef6\u7cfb\u7edf&#xff1a;<\/p>\n<p> <span class=\"token function\">sudo<\/span> resize2fs \/dev\/vg0\/lv0\n <\/li>\n<li>\n<p>\u5bf9\u4e8eXFS\u6587\u4ef6\u7cfb\u7edf&#xff1a;<\/p>\n<p> <span class=\"token function\">sudo<\/span> xfs_growfs \/\n <\/li>\n<\/ul>\n<p>\u26a0\ufe0f\u6ce8\u610f&#xff1a;XFS\u6587\u4ef6\u7cfb\u7edf\u53ea\u80fd\u6269\u5c55&#xff0c;\u4e0d\u80fd\u7f29\u51cf\u3002<\/p>\n<h3>\u7f29\u51cf\u903b\u8f91\u5377<\/h3>\n<p>\u7f29\u51cf\u64cd\u4f5c\u8f83\u4e3a\u590d\u6742&#xff0c;\u4e14\u6709\u4e00\u5b9a\u7684\u98ce\u9669&#xff0c;\u5efa\u8bae\u5728\u64cd\u4f5c\u524d\u8fdb\u884c\u6570\u636e\u5907\u4efd\u3002<\/p>\n<h4>1. \u5378\u8f7d\u6587\u4ef6\u7cfb\u7edf<\/h4>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">umount<\/span> \/dev\/vg0\/lv0<\/p>\n<h4>2. \u68c0\u67e5\u6587\u4ef6\u7cfb\u7edf<\/h4>\n<p><span class=\"token function\">sudo<\/span> e2fsck <span class=\"token parameter variable\">-f<\/span> \/dev\/vg0\/lv0<\/p>\n<h4>3. \u7f29\u51cf\u6587\u4ef6\u7cfb\u7edf<\/h4>\n<p>sudo resize2fs <span class=\"token operator\">\/<\/span>dev\/vg0\/lv0 10G<\/p>\n<p>\u6ce8\u610f&#xff0c;10G\u662f\u7f29\u51cf\u540e\u7684\u5927\u5c0f\u3002<\/p>\n<h4>4. \u7f29\u51cf\u903b\u8f91\u5377&#xff1a;<\/h4>\n<p><span class=\"token function\">sudo<\/span> lvreduce <span class=\"token parameter variable\">-L<\/span> 10G \/dev\/vg0\/lv0<\/p>\n<h4>5. \u91cd\u65b0\u6302\u8f7d\u6587\u4ef6\u7cfb\u7edf&#xff1a;<\/h4>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">mount<\/span> \/dev\/vg0\/lv0 \/mnt<\/p>\n<h3>\u26a0\ufe0f\u6ce8\u610f<\/h3>\n<ul>\n<li>\u5907\u4efd\u6570\u636e&#xff1a;\u5728\u8fdb\u884c\u4efb\u4f55\u8c03\u6574\u64cd\u4f5c\u524d&#xff0c;\u52a1\u5fc5\u5907\u4efd\u91cd\u8981\u6570\u636e&#xff0c;\u4ee5\u9632\u64cd\u4f5c\u5931\u8bef\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u3002<\/li>\n<li>\u9884\u7559\u7a7a\u95f4&#xff1a;\u786e\u4fdd\u5377\u7ec4\u4e2d\u6709\u8db3\u591f\u7684\u53ef\u7528\u7a7a\u95f4\u8fdb\u884c\u6269\u5c55\u64cd\u4f5c\u3002<\/li>\n<li>\u6587\u4ef6\u7cfb\u7edf\u652f\u6301&#xff1a;\u4e0d\u540c\u7684\u6587\u4ef6\u7cfb\u7edf\u5bf9\u52a8\u6001\u8c03\u6574\u7684\u652f\u6301\u7a0b\u5ea6\u4e0d\u540c\u3002\u4f8b\u5982&#xff0c;XFS\u6587\u4ef6\u7cfb\u7edf\u53ea\u80fd\u6269\u5c55&#xff0c;\u4e0d\u80fd\u7f29\u51cf\u3002<\/li>\n<li>\u8c28\u614e\u64cd\u4f5c&#xff1a;\u7f29\u51cf\u64cd\u4f5c\u98ce\u9669\u8f83\u9ad8&#xff0c;\u5efa\u8bae\u5728\u64cd\u4f5c\u524d\u8be6\u7ec6\u9605\u8bfb\u76f8\u5173\u6587\u6863&#xff0c;\u5e76\u5728\u6d4b\u8bd5\u73af\u5883\u4e2d\u8fdb\u884c\u6f14\u7ec3\u3002<\/li>\n<\/ul>\n<h2>\u793a\u4f8b&#xff1a;\u6269\u5c55\u903b\u8f91\u5377<\/h2>\n<p>\u5047\u8bbe\u6211\u4eec\u9700\u8981\u5c06\u903b\u8f91\u5377\/dev\/vg0\/lv0\u6269\u5c555GB\u3002<\/p>\n<h3>1. \u68c0\u67e5\u5f53\u524d\u78c1\u76d8\u7a7a\u95f4<\/h3>\n<p><span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-h<\/span><\/p>\n<h3>2.\u68c0\u67e5\u5377\u7ec4<\/h3>\n<p>vgdisplay vg0<\/p>\n<h3>3.\u6269\u5c55\u903b\u8f91\u5377<\/h3>\n<p><span class=\"token function\">sudo<\/span> lvextend <span class=\"token parameter variable\">-L<\/span> &#043;5G \/dev\/vg0\/lv0<\/p>\n<h3>4.\u6269\u5c55\u6587\u4ef6\u7cfb\u7edf<\/h3>\n<p><span class=\"token function\">sudo<\/span> resize2fs \/dev\/vg0\/lv0<\/p>\n<h3>5.\u9a8c\u8bc1\u7ed3\u679c<\/h3>\n<p><span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-h<\/span><\/p>\n<hr \/>\n<p>\u4eca\u5929\u7684Ubuntu Linux \u670d\u52a1\u5668\u7684\u76f8\u5173\u5185\u5bb9\u5230\u8fd9\u91cc\u5c31\u7ed3\u675f\u4e86&#xff0c;\u611f\u8c22\u5404\u4f4d\u670b\u53cb\u7684\u966a\u4f34&#x1f44b; \u2139\ufe0f\u4e86\u89e3\u66f4\u591a&#xff0c;\u4e3b\u9875\u3010\u7ec3\u5c0f\u6770\u7684CSDN\u3011 \u26a0\ufe0f\u82e5\u535a\u5ba2\u91cc\u7684\u5185\u5bb9\u6709\u95ee\u9898&#xff0c;\u6b22\u8fce\u6307\u6b63&#xff0c;\u6211\u4f1a\u53ca\u65f6\u4fee\u6539&#xff01;&#xff01;&#xff01; \u660e\u5929\u540c\u4e00\u65f6\u95f4\u518d\u89c1&#xff0c;\u5404\u4f4d\u4f19\u4f34\u4eec &#x1f6b4;&#x1f3fc;\u200d\u2640\ufe0f~~<\/p>\n<p><img decoding=\"async\" src=\"2025-04-19azxw4bex20c.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.9k\u6b21\uff0c\u70b9\u8d5e45\u6b21\uff0c\u6536\u85cf18\u6b21\u3002\u672c\u6587\u4e3b\u8981\u8bb2\u8ff0\u4e86 Ubuntu\u670d\u52a1\u5668\u7248\u672c\uff0c\u5b66\u4f1a\u5b89\u88c5Ubuntu\u52a1\u5668\u3001\u638c\u63e1Ubuntu\u670d\u52a1\u5668\u7684\u7f51\u7edc\u914d\u7f6e\u548c\u78c1\u76d8\u5b58\u50a8\u7684\u52a8\u6001\u8c03\u6574\uff0c\u4ee5\u53ca\u5b66\u4f1a\u901a\u8fc7SSH\u8fdc\u7a0b\u767b\u5f55\u548c\u7ba1\u7406Ubuntu\u670d\u52a1\u5668\u7b49\u77e5\u8bc6\u70b9\uff01\uff01\uff01_ubuntu linux\u670d\u52a1\u5668\u5b89\u88c5has host bits set<\/p>\n","protected":false},"author":2,"featured_media":20921,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,767,103,371,43,472,124,44],"topic":[],"class_list":{"0":"post-20941","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-server","8":"tag-linux","10":"tag-ubuntu","11":"tag-371","12":"tag-43","13":"tag-472","14":"tag-124","15":"tag-44"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Linux\u3011Ubuntu\u670d\u52a1\u5668\u7684\u5b89\u88c5\u548c\u914d\u7f6e\u7ba1\u7406 - \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\/20941.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Linux\u3011Ubuntu\u670d\u52a1\u5668\u7684\u5b89\u88c5\u548c\u914d\u7f6e\u7ba1\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.9k\u6b21\uff0c\u70b9\u8d5e45\u6b21\uff0c\u6536\u85cf18\u6b21\u3002\u672c\u6587\u4e3b\u8981\u8bb2\u8ff0\u4e86 Ubuntu\u670d\u52a1\u5668\u7248\u672c\uff0c\u5b66\u4f1a\u5b89\u88c5Ubuntu\u52a1\u5668\u3001\u638c\u63e1Ubuntu\u670d\u52a1\u5668\u7684\u7f51\u7edc\u914d\u7f6e\u548c\u78c1\u76d8\u5b58\u50a8\u7684\u52a8\u6001\u8c03\u6574\uff0c\u4ee5\u53ca\u5b66\u4f1a\u901a\u8fc7SSH\u8fdc\u7a0b\u767b\u5f55\u548c\u7ba1\u7406Ubuntu\u670d\u52a1\u5668\u7b49\u77e5\u8bc6\u70b9\uff01\uff01\uff01_ubuntu linux\u670d\u52a1\u5668\u5b89\u88c5has host bits set\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/20941.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T19:56:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195620-6802ae64473a6.jpg\" \/>\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\/20941.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/20941.html\",\"name\":\"\u3010Linux\u3011Ubuntu\u670d\u52a1\u5668\u7684\u5b89\u88c5\u548c\u914d\u7f6e\u7ba1\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T19:56:24+00:00\",\"dateModified\":\"2025-04-18T19:56:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/20941.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/20941.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/20941.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Linux\u3011Ubuntu\u670d\u52a1\u5668\u7684\u5b89\u88c5\u548c\u914d\u7f6e\u7ba1\u7406\"}]},{\"@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":"\u3010Linux\u3011Ubuntu\u670d\u52a1\u5668\u7684\u5b89\u88c5\u548c\u914d\u7f6e\u7ba1\u7406 - \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\/20941.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Linux\u3011Ubuntu\u670d\u52a1\u5668\u7684\u5b89\u88c5\u548c\u914d\u7f6e\u7ba1\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.9k\u6b21\uff0c\u70b9\u8d5e45\u6b21\uff0c\u6536\u85cf18\u6b21\u3002\u672c\u6587\u4e3b\u8981\u8bb2\u8ff0\u4e86 Ubuntu\u670d\u52a1\u5668\u7248\u672c\uff0c\u5b66\u4f1a\u5b89\u88c5Ubuntu\u52a1\u5668\u3001\u638c\u63e1Ubuntu\u670d\u52a1\u5668\u7684\u7f51\u7edc\u914d\u7f6e\u548c\u78c1\u76d8\u5b58\u50a8\u7684\u52a8\u6001\u8c03\u6574\uff0c\u4ee5\u53ca\u5b66\u4f1a\u901a\u8fc7SSH\u8fdc\u7a0b\u767b\u5f55\u548c\u7ba1\u7406Ubuntu\u670d\u52a1\u5668\u7b49\u77e5\u8bc6\u70b9\uff01\uff01\uff01_ubuntu linux\u670d\u52a1\u5668\u5b89\u88c5has host bits set","og_url":"https:\/\/www.wsisp.com\/helps\/20941.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T19:56:24+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418195620-6802ae64473a6.jpg"}],"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\/20941.html","url":"https:\/\/www.wsisp.com\/helps\/20941.html","name":"\u3010Linux\u3011Ubuntu\u670d\u52a1\u5668\u7684\u5b89\u88c5\u548c\u914d\u7f6e\u7ba1\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T19:56:24+00:00","dateModified":"2025-04-18T19:56:24+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/20941.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/20941.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/20941.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010Linux\u3011Ubuntu\u670d\u52a1\u5668\u7684\u5b89\u88c5\u548c\u914d\u7f6e\u7ba1\u7406"}]},{"@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\/20941","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=20941"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/20941\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/20921"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=20941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=20941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=20941"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=20941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}