{"id":656035,"date":"2026-01-08T10:01:07","date_gmt":"2026-01-08T02:01:07","guid":{"rendered":"http:\/\/puo.cn\/?p=656035"},"modified":"2026-01-08T10:01:07","modified_gmt":"2026-01-08T02:01:07","slug":"1%e6%a0%b81g-vps%e4%b8%80%e9%94%ae%e5%85%b3%e9%97%ad%e5%ae%9d%e5%a1%94%e9%9d%a2%e6%9d%bf%e5%8f%8a%e4%b8%80%e9%94%ae%e6%81%a2%e5%a4%8d%e7%9a%84%e8%ae%be%e7%bd%ae%e5%8f%82%e8%80%83","status":"publish","type":"post","link":"http:\/\/puo.cn\/?p=656035","title":{"rendered":"1\u68381G vps\u4e00\u952e\u5173\u95ed\u5b9d\u5854\u9762\u677f\u53ca\u4e00\u952e\u6062\u590d\u7684\u8bbe\u7f6e\u53c2\u8003"},"content":{"rendered":"<div class=\"ybc-p\">\u9488\u5bf9 <strong>1\u68381G\u4f4e\u914dVPS<\/strong>\uff0c\u901a\u8fc7\u7f16\u5199\u7b80\u5355\u7684 <strong>Shell\u811a\u672c<\/strong>\u200b \u5b9e\u73b0\u201c\u4e00\u952e\u5173\u95ed\u5b9d\u5854\u53caLNMP\u201d\u548c\u201c\u4e00\u952e\u6062\u590d\u201d\uff0c\u80fd\u6709\u6548\u8282\u7701\u5185\u5b58\uff081G\u5185\u5b58\u975e\u5e38\u5b9d\u8d35\uff0c\u95f2\u7f6e\u65f6\u91ca\u653e\u8d44\u6e90\u5f88\u6709\u5fc5\u8981\uff09\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u65b9\u6848\u548c\u6ce8\u610f\u4e8b\u9879\uff1a<\/div>\n<div><\/div>\n<h3>\u524d\u63d0\u80cc\u666f\uff1a<\/h3>\n<div>\n<div class=\"ybc-p\">\u6b63\u5e38\u60c5\u51b5\u4e0b\uff0c\u5f53\u4f60\u6267\u884c <code class=\"hyc-common-markdown__code__inline\">service bt stop<\/code>\u65f6\uff0c\u53ea\u4f1a\u505c\u6b62\u4e0a\u8ff0<strong>\u9762\u677f\u81ea\u8eab\u7684\u76f8\u5173\u8fdb\u7a0b<\/strong>\uff0c\u4f46<strong>\u4e0d\u4f1a\u52a8\u4f60\u901a\u8fc7\u5b9d\u5854\u5b89\u88c5\u7684\u7b2c\u4e09\u65b9\u670d\u52a1<\/strong>\uff08\u6bd4\u5982\u4f60\u642d\u5efa\u7f51\u7ad9\u7528\u7684 Nginx\u3001\u5b58\u6570\u636e\u7684 MySQL\u3001\u8dd1 PHP \u7684 PHP-FPM \u7b49\uff09\u3002<\/div>\n<h3>\u4e8c\u3001\u6b64\u65f6\u7684\u5185\u5b58\u5360\u7528 vs \u4e0d\u5b89\u88c5\u5b9d\u5854\u7684\u5dee\u5f02<\/h3>\n<div class=\"ybc-p\">\u5047\u8bbe\u4f60\u5728\u5b89\u88c5\u5b9d\u5854\u540e\uff0c<strong>\u989d\u5916\u5b89\u88c5\u4e86 LNMP \u73af\u5883<\/strong>\uff08Nginx + MySQL + PHP\uff09\uff0c\u90a3\u4e48\uff1a<\/div>\n<ul class=\"ybc-ul-component\">\n<li class=\"ybc-li-component ybc-li-component_ul\">\n<div class=\"ybc-p\"><strong>\u4e0d\u5b89\u88c5\u5b9d\u5854\u65f6<\/strong>\uff1a\u5185\u5b58\u4ec5\u5360\u7528\u7cfb\u7edf\u57fa\u7840\u8fdb\u7a0b\uff08sshd\u3001cron\u3001systemd \u7b49\uff09\uff0c\u7ea6 <strong>50-150MB<\/strong>\uff08\u8f7b\u91cf\u7cfb\u7edf\uff09\uff1b<\/div>\n<\/li>\n<li class=\"ybc-li-component ybc-li-component_ul\">\n<div class=\"ybc-p\"><strong>\u5b89\u88c5\u5b9d\u5854\u4f46\u6267\u884c <code class=\"hyc-common-markdown__code__inline\">service bt stop<\/code>\u540e<\/strong>\uff1a\u5185\u5b58\u4ecd\u4f1a\u5305\u542b<strong>\u7b2c\u4e09\u65b9\u670d\u52a1\u7684\u5360\u7528<\/strong>\uff08\u6bd4\u5982 Nginx \u7ea6 20-50MB\u3001MySQL \u7ea6 100-300MB\u3001PHP-FPM \u7ea6 30-100MB\uff09\uff0c\u518d\u52a0\u4e0a\u7cfb\u7edf\u57fa\u7840\u8fdb\u7a0b\uff0c\u603b\u5360\u7528\u53ef\u80fd\u5728 <strong>200-500MB+<\/strong>\uff08\u53d6\u51b3\u4e8e\u4f60\u7684\u914d\u7f6e\uff09\u3002<\/div>\n<\/li>\n<\/ul>\n<\/div>\n<h3><\/h3>\n<h3><\/h3>\n<h3><strong>\u6838\u5fc3\u601d\u8def<\/strong><\/h3>\n<div class=\"ybc-p\">\u901a\u8fc7\u4e24\u4e2a\u811a\u672c\u5b9e\u73b0\uff1a<\/div>\n<ul class=\"ybc-ul-component\">\n<li class=\"ybc-li-component ybc-li-component_ul\">\n<div class=\"ybc-p\"><strong><code>stop_all.sh<\/code><\/strong>\uff1a\u4e00\u952e\u505c\u6b62\u5b9d\u5854\u6838\u5fc3\u670d\u52a1 + LNMP\u7ec4\u4ef6\uff08Nginx\u3001MySQL\u3001PHP-FPM\u7b49\uff09\uff1b<\/div>\n<\/li>\n<li class=\"ybc-li-component ybc-li-component_ul\">\n<div class=\"ybc-p\"><strong><code>start_all.sh<\/code><\/strong>\uff1a\u4e00\u952e\u542f\u52a8LNMP\u7ec4\u4ef6 + \u5b9d\u5854\u6838\u5fc3\u670d\u52a1\u3002<\/div>\n<\/li>\n<\/ul>\n<h3><strong>\u4e00\u3001\u811a\u672c\u7f16\u5199\uff08\u5173\u952e\u6b65\u9aa4\uff09<\/strong><\/h3>\n<h4><strong>1. \u51c6\u5907\u5de5\u4f5c\uff1a\u786e\u8ba4\u670d\u52a1\u540d\u79f0<\/strong><\/h4>\n<div class=\"ybc-p\">\u5148\u901a\u8fc7\u547d\u4ee4\u67e5\u770b\u4f60\u5b9e\u9645\u5b89\u88c5\u7684\u7ec4\u4ef6\u540d\u79f0\uff08\u907f\u514d\u811a\u672c\u51fa\u9519\uff09\uff1a<\/div>\n<pre class=\"ybc-pre-component ybc-pre-component_not-math\"><code># \u67e5\u770b\u6240\u6709\u8fd0\u884c\u4e2d\u670d\u52a1\uff08\u627eLNMP\u76f8\u5173\uff09\r\nsystemctl list-units --type=service --state=running | grep -E 'nginx|mysql|mysqld|php-fpm|redis'\r\n\r\n# \u67e5\u770b\u5b9d\u5854\u670d\u52a1\u540d\u79f0\uff08\u901a\u5e38\u662f bt\uff09\r\nsystemctl status bt  # \u82e5\u80fd\u663e\u793a\u72b6\u6001\uff0c\u8bf4\u660e\u670d\u52a1\u540d\u662f bt<\/code><\/pre>\n<div class=\"ybc-p\">\u5047\u8bbe\u4f60\u7684\u7ec4\u4ef6\u540d\u79f0\u4e3a\uff08\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u4fee\u6539\u811a\u672c\uff09\uff1a<\/div>\n<ul class=\"ybc-ul-component\">\n<li class=\"ybc-li-component ybc-li-component_ul\">\n<div class=\"ybc-p\">\u5b9d\u5854\u6838\u5fc3\u670d\u52a1\uff1a<code>bt<\/code><\/div>\n<\/li>\n<li class=\"ybc-li-component ybc-li-component_ul\">\n<div class=\"ybc-p\">Web\u670d\u52a1\u5668\uff1a<code>nginx<\/code><\/div>\n<\/li>\n<li class=\"ybc-li-component ybc-li-component_ul\">\n<div class=\"ybc-p\">\u6570\u636e\u5e93\uff1a<code>mysqld<\/code>\uff08\u6216 <code>mariadb<\/code>\uff09<\/div>\n<\/li>\n<li class=\"ybc-li-component ybc-li-component_ul\">\n<div class=\"ybc-p\">PHP-FPM\uff1a<code>php-fpm-74<\/code>\uff08\u6839\u636e\u4f60\u7684PHP\u7248\u672c\uff0c\u59827.4\uff09<\/div>\n<\/li>\n<li class=\"ybc-li-component ybc-li-component_ul\">\n<div class=\"ybc-p\">Redis\uff08\u53ef\u9009\uff09\uff1a<code>redis<\/code><\/div>\n<\/li>\n<\/ul>\n<h4><strong>2. \u7f16\u5199\u201c\u4e00\u952e\u5173\u95ed\u201d\u811a\u672c\uff08<code>stop_all.sh<\/code>\uff09<\/strong><\/h4>\n<div class=\"ybc-p\">\u4f5c\u7528\uff1a\u505c\u6b62\u5b9d\u5854\u6838\u5fc3 + LNMP\u6240\u6709\u7ec4\u4ef6\uff0c\u91ca\u653e\u5185\u5b58\u3002<\/div>\n<pre class=\"ybc-pre-component ybc-pre-component_not-math\"><code>#!\/bin\/bash\r\necho \"===== \u5f00\u59cb\u5173\u95ed\u5b9d\u5854\u53caLNMP\u670d\u52a1 =====\"\r\n\r\n# \u505c\u6b62\u5b9d\u5854\u6838\u5fc3\u670d\u52a1\uff08\u9762\u677f\u754c\u9762\u548c\u7ba1\u7406\u8fdb\u7a0b\uff09\r\nsystemctl stop bt\r\nsystemctl disable bt  # \u53ef\u9009\uff1a\u7981\u7528\u5f00\u673a\u542f\u52a8\uff08\u5982\u9700\u9ed8\u8ba4\u4e0d\u542f\u52a8\uff09\r\n\r\n# \u505c\u6b62LNMP\u7ec4\u4ef6\uff08\u6309\u4f9d\u8d56\u53cd\u5411\u987a\u5e8f\uff1a\u5148\u505c\u4e0a\u5c42\u670d\u52a1\uff09\r\nsystemctl stop nginx       # Web\u670d\u52a1\u5668\r\nsystemctl stop php-fpm-74  # PHP-FPM\uff08\u66ff\u6362\u4e3a\u4f60\u7684\u7248\u672c\uff09\r\nsystemctl stop mysqld      # \u6570\u636e\u5e93\uff08\u6216 mariadb\uff09\r\nsystemctl stop redis       # \u53ef\u9009\uff1aRedis\uff08\u82e5\u5b89\u88c5\u4e86\uff09\r\n\r\n# \u53ef\u9009\uff1a\u7981\u7528LNMP\u7ec4\u4ef6\u5f00\u673a\u542f\u52a8\uff08\u5982\u9700\u9ed8\u8ba4\u4e0d\u542f\u52a8\uff09\r\nsystemctl disable nginx php-fpm-74 mysqld redis\r\n\r\necho \"===== \u6240\u6709\u670d\u52a1\u5df2\u505c\u6b62\uff0c\u5185\u5b58\u5df2\u91ca\u653e =====\"\r\nfree -m  # \u663e\u793a\u5f53\u524d\u5185\u5b58\u5360\u7528\uff08\u9a8c\u8bc1\u6548\u679c\uff09<\/code><\/pre>\n<h4><strong>3. \u7f16\u5199\u201c\u4e00\u952e\u6062\u590d\u201d\u811a\u672c\uff08<code>start_all.sh<\/code>\uff09<\/strong><\/h4>\n<div class=\"ybc-p\">\u4f5c\u7528\uff1a\u542f\u52a8LNMP\u7ec4\u4ef6\uff08\u6309\u4f9d\u8d56\u987a\u5e8f\uff09+ \u5b9d\u5854\u6838\u5fc3\u670d\u52a1\uff0c\u6062\u590d\u6b63\u5e38\u4f7f\u7528\u3002<\/div>\n<pre class=\"ybc-pre-component ybc-pre-component_not-math\"><code>#!\/bin\/bash\r\necho \"===== \u5f00\u59cb\u542f\u52a8LNMP\u53ca\u5b9d\u5854\u670d\u52a1 =====\"\r\n\r\n# \u542f\u52a8LNMP\u7ec4\u4ef6\uff08\u6309\u4f9d\u8d56\u987a\u5e8f\uff1a\u5148\u5e95\u5c42\u670d\u52a1\uff0c\u540e\u4e0a\u5c42\uff09\r\nsystemctl start mysqld      # \u6570\u636e\u5e93\uff08\u5148\u542f\u52a8\uff0c\u4f9bPHP\u8fde\u63a5\uff09\r\nsystemctl start php-fpm-74  # PHP-FPM\uff08\u4f9d\u8d56\u6570\u636e\u5e93\uff09\r\nsystemctl start nginx       # Web\u670d\u52a1\u5668\uff08\u4f9d\u8d56PHP-FPM\uff09\r\nsystemctl start redis       # \u53ef\u9009\uff1aRedis\uff08\u82e5\u9700\u8981\uff09\r\n\r\n# \u542f\u7528LNMP\u7ec4\u4ef6\u5f00\u673a\u542f\u52a8\uff08\u53ef\u9009\uff1a\u5982\u9700\u4e0b\u6b21\u5f00\u673a\u81ea\u52a8\u542f\u52a8\uff09\r\nsystemctl enable nginx php-fpm-74 mysqld redis\r\n\r\n# \u542f\u52a8\u5b9d\u5854\u6838\u5fc3\u670d\u52a1\uff08\u9762\u677f\u754c\u9762\uff09\r\nsystemctl start bt\r\nsystemctl enable bt  # \u53ef\u9009\uff1a\u542f\u7528\u5b9d\u5854\u5f00\u673a\u542f\u52a8\r\n\r\necho \"===== \u6240\u6709\u670d\u52a1\u5df2\u542f\u52a8\uff0c\u5b9d\u5854\u9762\u677f\u53ef\u8bbf\u95ee =====\"\r\nfree -m  # \u663e\u793a\u5f53\u524d\u5185\u5b58\u5360\u7528\uff08\u9a8c\u8bc1\u6548\u679c\uff09<\/code><\/pre>\n<h3><strong>\u4e8c\u3001\u4f7f\u7528\u65b9\u6cd5<\/strong><\/h3>\n<ol class=\"ybc-ol-component ybc-ol-component_1\">\n<li class=\"ybc-li-component ybc-li-component_ol\">\n<div class=\"ybc-p\"><strong>\u4fdd\u5b58\u811a\u672c<\/strong>\uff1a\u5c06\u4e0a\u8ff0\u4e24\u4e2a\u811a\u672c\u4fdd\u5b58\u5230 <code>\/root<\/code>\u76ee\u5f55\uff08\u6216\u5176\u4ed6\u8def\u5f84\uff09\uff0c\u4f8b\u5982\uff1a<\/div>\n<pre class=\"ybc-pre-component ybc-pre-component_not-math\"><code>nano \/root\/stop_all.sh   # \u7c98\u8d34\u5173\u95ed\u811a\u672c\u5185\u5bb9\uff0c\u4fdd\u5b58\u9000\u51fa\uff08Ctrl+O\u2192\u56de\u8f66\u2192Ctrl+X\uff09\r\nnano \/root\/start_all.sh  # \u7c98\u8d34\u542f\u52a8\u811a\u672c\u5185\u5bb9\uff0c\u4fdd\u5b58\u9000\u51fa<\/code><\/pre>\n<\/li>\n<li class=\"ybc-li-component ybc-li-component_ol\">\n<div class=\"ybc-p\"><strong>\u8d4b\u4e88\u6267\u884c\u6743\u9650<\/strong>\uff1a<\/div>\n<pre class=\"ybc-pre-component ybc-pre-component_not-math\"><code>chmod +x \/root\/stop_all.sh \/root\/start_all.sh<\/code><\/pre>\n<\/li>\n<li class=\"ybc-li-component ybc-li-component_ol\">\n<div class=\"ybc-p\"><strong>\u4e00\u952e\u6267\u884c<\/strong>\uff1a<\/div>\n<ul class=\"ybc-ul-component\">\n<li class=\"ybc-li-component ybc-li-component_ul\">\n<div class=\"ybc-p\">\u5173\u95ed\u6240\u6709\u670d\u52a1\uff1a<code>bash \/root\/stop_all.sh<\/code><\/div>\n<\/li>\n<li class=\"ybc-li-component ybc-li-component_ul\">\n<div class=\"ybc-p\">\u6062\u590d\u6240\u6709\u670d\u52a1\uff1a<code>bash \/root\/start_all.sh<\/code><\/div>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3><strong>\u4e09\u3001\u5173\u952e\u6ce8\u610f\u4e8b\u9879\uff081G\u5185\u5b58\u4f18\u5316\u914d\u7f6e\uff09<\/strong><\/h3>\n<ol class=\"ybc-ol-component ybc-ol-component_1\">\n<li class=\"ybc-li-component ybc-li-component_ol\">\n<div class=\"ybc-p\"><strong>1G\u5185\u5b58\u7684LNMP\u4f18\u5316\u914d\u7f6e<\/strong>\uff08\u542f\u52a8\u524d\u5fc5\u505a\uff01\u5426\u5219\u5bb9\u6613OOM\u5d29\u6e83\uff09\uff1a<\/div>\n<ul class=\"ybc-ul-component\">\n<li class=\"ybc-li-component ybc-li-component_ul\">\n<div class=\"ybc-p\"><strong>MySQL<\/strong>\uff1a\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\uff08<code>\/etc\/my.cnf<\/code>\uff09\uff0c\u51cf\u5c0f\u7f13\u5b58\uff1a<\/div>\n<pre class=\"ybc-pre-component ybc-pre-component_not-math\"><code>[mysqld]\r\ninnodb_buffer_pool_size=64M  # \u9ed8\u8ba4\u53ef\u80fd128M+\uff0c1G\u5185\u5b58\u5efa\u8bae\u226464M\r\nmax_connections=50           # \u51cf\u5c11\u8fde\u63a5\u6570<\/code><\/pre>\n<\/li>\n<li class=\"ybc-li-component ybc-li-component_ul\">\n<div class=\"ybc-p\"><strong>PHP-FPM<\/strong>\uff1a\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\uff08<code>\/www\/server\/php\/74\/etc\/php-fpm.conf<\/code>\uff09\uff0c\u9650\u5236\u8fdb\u7a0b\u6570\uff1a<\/div>\n<pre class=\"ybc-pre-component ybc-pre-component_not-math\"><code>pm = dynamic\r\npm.max_children = 10         # \u6700\u5927\u8fdb\u7a0b\u6570\uff081G\u5185\u5b58\u5efa\u8bae\u226415\uff09\r\npm.start_servers = 2\r\npm.min_spare_servers = 2\r\npm.max_spare_servers = 5<\/code><\/pre>\n<\/li>\n<li class=\"ybc-li-component ybc-li-component_ul\">\n<div class=\"ybc-p\"><strong>Nginx<\/strong>\uff1a\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\uff08<code>\/www\/server\/nginx\/conf\/nginx.conf<\/code>\uff09\uff0c\u51cf\u5c0f\u7f13\u51b2\u533a\uff1a<\/div>\n<pre class=\"ybc-pre-component ybc-pre-component_not-math\"><code>http {\r\n    client_max_body_size 10m;  # \u51cf\u5c0f\u4e0a\u4f20\u9650\u5236\r\n    gzip_buffers 4 8k;          # \u538b\u7f29\u7f13\u51b2\u533a\r\n}<\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li class=\"ybc-li-component ybc-li-component_ol\">\n<div class=\"ybc-p\"><strong>\u5173\u95ed\u4e0d\u5fc5\u8981\u7684\u7ec4\u4ef6<\/strong>\uff1a<\/div>\n<div class=\"ybc-p\">\u5982\u679c\u4f60\u53ea\u7528\u9759\u6001\u7f51\u7ad9\uff0c\u53ef\u5378\u8f7dMySQL\/PHP\uff0c\u4ec5\u4fdd\u7559Nginx\uff0c\u5185\u5b58\u5360\u7528\u4f1a\u66f4\u4f4e\uff08Nginx\u5355\u5b9e\u4f8b\u7ea620-30MB\uff09\u3002<\/div>\n<\/li>\n<li class=\"ybc-li-component ybc-li-component_ol\">\n<div class=\"ybc-p\"><strong>\u907f\u514d\u9891\u7e41\u5f00\u5173<\/strong>\uff1a<\/div>\n<div class=\"ybc-p\">\u811a\u672c\u672c\u8d28\u662f\u505c\u6b62\/\u542f\u52a8\u670d\u52a1\uff0c\u9891\u7e41\u64cd\u4f5c\u53ef\u80fd\u5bfc\u81f4\u6570\u636e\u5e93\u8fde\u63a5\u5f02\u5e38\uff08\u5982MySQL\u542f\u52a8\u6162\uff09\uff0c\u5efa\u8bae\u4ec5\u5728\u957f\u671f\u4e0d\u7528\u65f6\u5173\u95ed\uff08\u5982\u51e0\u5929\u4e0d\u7528\uff09\uff0c\u77ed\u671f\u4e0d\u7528\u53ef\u901a\u8fc7\u5b9d\u5854\u9762\u677f\u6682\u505c\u7f51\u7ad9\uff08\u800c\u975e\u5173\u95ed\u6574\u4e2a\u670d\u52a1\uff09\u3002<\/div>\n<\/li>\n<\/ol>\n<h3><strong>\u56db\u3001\u66ff\u4ee3\u65b9\u6848\uff1a\u66f4\u5f7b\u5e95\u7684\u201c\u5185\u5b58\u8282\u7701\u201d\uff08\u9002\u5408\u6781\u4f4e\u8d1f\u8f7d\uff09<\/strong><\/h3>\n<div class=\"ybc-p\">\u5982\u679c\u4f60\u7684VPS<strong>\u4ec5\u5076\u5c14\u7528<\/strong>\uff08\u6bd4\u5982\u6bcf\u5468\u4e00\u6b21\uff09\uff0c\u4e14\u4e0d\u9700\u8981\u6301\u7eed\u8fd0\u884c\u7f51\u7ad9\uff0c\u53ef\u8003\u8651\uff1a<\/div>\n<ol class=\"ybc-ol-component ybc-ol-component_1\">\n<li class=\"ybc-li-component ybc-li-component_ol\">\n<div class=\"ybc-p\"><strong>\u5378\u8f7d\u5b9d\u5854\u9762\u677f<\/strong>\uff1a\u7528\u547d\u4ee4\u884c\u76f4\u63a5\u7ba1\u7406LNMP\uff08\u9002\u5408\u719f\u6089Linux\u7684\u7528\u6237\uff09\uff0c\u5185\u5b58\u5360\u7528\u4f1a\u6bd4\u5b9d\u5854\u66f4\u4f4e\uff08\u7701\u53bb\u5b9d\u5854\u6838\u5fc3\u8fdb\u7a0b\u7684\u51e0\u5341MB\uff09\uff1b<\/div>\n<\/li>\n<li class=\"ybc-li-component ybc-li-component_ol\">\n<div class=\"ybc-p\"><strong>\u4f7f\u7528Docker\u5bb9\u5668<\/strong>\uff1a\u5c06LNMP\u90e8\u7f72\u5728Docker\u4e2d\uff0c\u4e0d\u7528\u65f6\u76f4\u63a5 <code>docker stop \u5bb9\u5668ID<\/code>\uff0c\u9700\u8981\u65f6 <code>docker start<\/code>\uff0c\u9694\u79bb\u6027\u66f4\u597d\uff0c\u4f461G\u5185\u5b58\u8dd1Docker\u53ef\u80fd\u7a0d\u663e\u7d27\u5f20\u3002<\/div>\n<\/li>\n<\/ol>\n<h3><strong>\u603b\u7ed3<\/strong><\/h3>\n<div class=\"ybc-p\">\u901a\u8fc7 <strong><code>stop_all.sh<\/code>\u548c <code>start_all.sh<\/code>\u811a\u672c<\/strong>\uff0c\u4f60\u53ef\u4ee5\u4e00\u952e\u5173\u95ed\u5b9d\u5854\u53caLNMP\u91ca\u653e\u5185\u5b58\uff0c\u9700\u8981\u65f6\u4e00\u952e\u6062\u590d\u3002\u5173\u952e\u662f<strong>\u4f18\u5316LNMP\u914d\u7f6e<\/strong>\uff08\u51cf\u5c0f\u7f13\u5b58\u548c\u8fdb\u7a0b\u6570\uff09\uff0c\u907f\u514d1G\u5185\u5b58\u6ea2\u51fa\u3002\u64cd\u4f5c\u540e\u8bb0\u5f97\u7528 <code>free -m<\/code>\u9a8c\u8bc1\u5185\u5b58\u53d8\u5316\uff0c\u786e\u4fdd\u8fbe\u5230\u9884\u671f\u6548\u679c\u3002<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u9488\u5bf9 1\u68381G\u4f4e\u914dVPS\uff0c\u901a\u8fc7\u7f16\u5199\u7b80\u5355\u7684 Shell\u811a\u672c\u200b \u5b9e\u73b0\u201c\u4e00\u952e\u5173\u95ed\u5b9d\u5854\u53caLNMP\u201d\u548c\u201c\u4e00\u952e\u6062\u590d\u201d\uff0c\u80fd\u6709\u6548\u8282\u7701\u5185\u5b58\uff081G\u5185\u5b58\u975e\u5e38\u5b9d\u8d35\uff0c\u95f2\u7f6e\u65f6\u91ca\u653e\u8d44\u6e90\u5f88\u6709\u5fc5\u8981\uff09\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u65b9\u6848\u548c\u6ce8\u610f\u4e8b\u9879\uff1a \u524d\u63d0\u80cc\u666f\uff1a \u6b63\u5e38\u60c5\u51b5\u4e0b\uff0c\u5f53\u4f60\u6267\u884c servic&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[128],"tags":[705,935,220],"topic":[],"class_list":["post-656035","post","type-post","status-publish","format-standard","hentry","category-128","tag-705","tag-935","tag-220"],"_links":{"self":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/656035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=656035"}],"version-history":[{"count":1,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/656035\/revisions"}],"predecessor-version":[{"id":656036,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/656035\/revisions\/656036"}],"wp:attachment":[{"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=656035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=656035"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=656035"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=656035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}