{"id":31540,"date":"2024-11-25T14:31:36","date_gmt":"2024-11-25T06:31:36","guid":{"rendered":"https:\/\/fwq.ai\/blog\/31540\/"},"modified":"2024-11-25T14:31:36","modified_gmt":"2024-11-25T06:31:36","slug":"%e5%9f%ba%e4%ba%8ecentos7%e6%90%ad%e5%bb%bawordpress%e4%b8%aa%e4%ba%ba%e7%bd%91%e7%ab%99%e7%9a%84%e6%96%b9%e6%b3%95%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/31540\/","title":{"rendered":"\u57fa\u4e8ecentos7\u642d\u5efawordpress\u4e2a\u4eba\u7f51\u7ad9\u7684\u65b9\u6cd5\u8be6\u89e3"},"content":{"rendered":"<p><span style=\"font-family:\">\u4e0b\u9762\u7531\/&#8221; target=&#8221;_blank&#8221;&gt;<strong>WordPress\u6280\u5de7<\/strong>\u680f\u76ee\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u57fa\u4e8ecentos7\u642d\u5efawordpress\u4e2a\u4eba\u7f51\u7ad9\u7684\u65b9\u6cd5\u8be6\u89e3\uff0c\u5e0c\u671b\u5bf9\u9700\u8981\u7684\u670b\u53cb\u6709\u6240\u5e2e\u52a9\uff01<\/span><\/p>\n<p style=\"text-align: center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/5ee9aaf12faf4825.jpg\" class=\"aligncenter\" title=\"\u57fa\u4e8ecentos7\u642d\u5efawordpress\u4e2a\u4eba\u7f51\u7ad9\u7684\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe\" alt=\"\u57fa\u4e8ecentos7\u642d\u5efawordpress\u4e2a\u4eba\u7f51\u7ad9\u7684\u65b9\u6cd5\u8be6\u89e3\u63d2\u56fe\" \/><\/p>\n<p><strong>\u524d\u8a00\uff1a<\/strong><\/p>\n<p>\u968f\u7740\u8ba1\u7b97\u673a\u6280\u672f\u7684\u666e\u53ca\uff0c\u641eIT\u7684\u8d8a\u6765\u8d8a\u591a\uff0c\u4f46\u662f\u968f\u7740\u6df1\u5165\u4f60\u4f1a\u53d1\u73b0\u81ea\u5df1\u4e0a\u4e86\u8d3c\u8239\uff0c\u771f\u7684\u662f\u4e00\u5982IT\u6df1\u4f3c\u6d77\uff0c\u4ece\u6b64\u59b9\u7eb8\u662f\u8def\u4eba\u554a\uff0c\u5f53\u4f60\u8d8a\u6765\u8d8a\u63a5\u8fd1\u81ea\u5df1\u60f3\u60f3\u4e2d\u7684\u76ee\u6807\u662f\uff0c\u5c31\u4f1a\u6709\u79cd\u6e3a\u5c0f\u611f\uff0c\u8fd9\u4e2a\u884c\u4e1a\u77e5\u8bc6\u592a\u8fc7\u6df1\u5965\u5e9e\u5927\u5566\u3002\u597d\u5566\u4e0d\u95f2\u626f\uff0c\u6211\u4eec\u5f00\u59cb\u6211\u4eec\u7684\u4e3b\u9898\uff1a\u4f7f\u7528wordpress\u642d\u5efa\u4e2a\u4eba\u535a\u5ba2\u3002<\/p>\n<h3>\u4e00\u3001\u73af\u5883\u51c6\u5907<\/h3>\n<p>\u6211\u4eec\u5148\u4ecb\u7ecd\u4e0b\u73af\u5883\u548c\u5b9e\u9a8c\u4e2d\u6240\u9700\u8981\u7684\u5305<\/p>\n<p><strong>\u73af\u5883\uff1a<\/strong><\/p>\n<p>\u6211\u4f7f\u7528\u7684\u662fcentos7.4\u7684\u7cfb\u7edf<\/p>\n<p>\u5efa\u8bae\u5173\u6389selinux\u548c\u5f71\u54cd\u523080\u7aef\u53e3\u7684\u9632\u706b\u5899\u7b56\u7565<\/p>\n<p><strong>\u7a0b\u5e8f\u5305\uff1a<\/strong><\/p>\n<p>nginx\uff08\u4f7f\u7528\u7cfb\u7edf\u9ed8\u8ba4\u5e26\u7684\u5149\u76d8\u91cc\u7684\u5305\uff0c\u5f53\u7136\u4e5f\u53ef\u4ee5\u81ea\u5df1\u7f16\u8bd1\u5b89\u88c5\uff0c\u4f46\u662f\u642d\u5efa\u4e2a\u4eba\u535a\u5ba2\u4e0d\u5efa\u8bae\uff0c\u56e0\u4e3a\u6ca1\u5fc5\u8981\uff09<\/p>\n<p>mariadb-server(\u6570\u636e\u5e93\u4f7f\u7528maridb-server\u4e5f\u662f\u7cfb\u7edf\u672c\u5730\u955c\u50cf\u91cc\u7684)<\/p>\n<p>php-fpm\uff08\u7528\u6765\u7ba1\u7406php\u7a0b\u5e8f\u7684\uff0c\u53e6\u5916nginx\u4e0d\u652f\u6301php\u6a21\u5757\uff09<\/p>\n<p>php-mysql\uff08\u7528\u6765\u4e8b\u9879php\u4e0e\u6570\u636e\u5e93\u8fde\u63a5\uff09<\/p>\n<p>wordpress\u7a0b\u5e8f\u5305\uff0c\u5b98\u7f51\u5730\u5740\uff1ahttps:\/\/wordpress.org\/download\/<\/p>\n<p>wordpress\u4e3b\u9898\uff1ahttps:\/\/wordpress.org\/themes\/<\/p>\n<pre># yum install nginx mariadb-server php-fpm php-mysql  -y\n# systemctl enable nginx mariadb php-fpm   \u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h3>\u4e8c\u3001\u5404\u670d\u52a1\u914d\u7f6e<\/h3>\n<p><strong>Nginx<\/strong><\/p>\n<p>\u5199nginx\u7684\u914d\u7f6e\u6587\u4ef6\u4e5f\u6709\u4e24\u79cd\u65b9\u5f0f\uff0c\u76f4\u63a5\u5199\u4e3b\u914d\u7f6e\u91cc\uff0c\u548c\u5199\u5230conf.d\u6587\u4ef6\u5939\u4e0b\uff0c\u8fd9\u91cc\u4f7f\u7528\u7b2c\u4e8c\u79cd\uff0c\u5176\u5b9e\u6ca1\u5565\u533a\u522b<\/p>\n<pre># vim \/etc\/nginx\/nginx.conf\n\u5728http\u914d\u7f6e\u6bb5\u91cc\u6dfb\u52a0\nhttp {\n    fastcgi_cache_path \/var\/cache\/nginx\/fcgi_cache levels=1:2:1 keys_zone=fcgicache:20m inactive=120s;          #\u7279\u522b\u6ce8\u610f\uff1a\u7528\u6765\u8bbe\u7f6e\u7f13\u5b58\u7684\u4e00\u4e9b\u53c2\u6570\uff0c\u5f53\u4f60\u8981\u505a\u591a\u865a\u62df\u4e3b\u673a\u65f6\u4e00\u5b9a\u8981\u5728\u91cd\u65b0\u8bbe\u7f6e\u4ee5\u4e2a\u5e76\u5728server\u914d\u7f6e\u6bb5\u91cc\u4fee\u6539\n}\n\u8fd9\u4e2a\u4e3b\u8981\u662f\u5b9a\u4e49\u7f13\u5b58\u7684\u4e00\u4e9b\u914d\u7f6e\uff0c\u53ef\u76f4\u63a5\u62ff\u6765\u7528\n# vim \/etc\/nginx\/conf.d\/blog.conf   #\u5fc5\u987bconf\u540e\u7f00\nserver {\n        listen       80 ;     #\u76d1\u542c\u5730\u5740\n        server_name  blog.luckynm.cn ;   #\u57df\u540d\n        root         \/data\/wordpress ;   #web\u7684\u6839\u8def\u5f84\n        index index.php index.html index.hml;   #\u9ed8\u8ba4\u7d22\u5f15\n        location \/ {\n                try_files $uri $uri\/ \/index.php?q=$uri&amp;$args;\n        }\n        location ~* .php$ {\n                fastcgi_pass 127.0.0.1:9000;\n                fastcgi_index index.php;\n                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n                include fastcgi_params;\n                fastcgi_cache fcgicache;\n                fastcgi_cache_key $request_uri;\n                fastcgi_cache_valid 200 302 10m;\n                fastcgi_cache_valid 301 1h;\n                fastcgi_cache_valid any 1m;\n        }\n        location ~* ^\/(status|ping)$ {        #\u7528\u6765\u67e5\u770b\u7f51\u7ad9\u7684\u72b6\u6001\u4fe1\u606f\uff0c\u53ef\u4ee5\u4e0d\u6dfb\u52a0\n                fastcgi_pass 127.0.0.1:9000;\n                fastcgi_param  SCRIPT_FILENAME  $fastcgi_script_name;\n                include fastcgi_params;\n        }\n        location \/files {            #\u7528\u6765\u5728\u7f51\u9875\u8bbf\u95ee\u6587\u4ef6\u5939\uff0c\u76f8\u5f53\u4e8e\u505a\u4e86\u4e2a\u6587\u4ef6\u5939\u6620\u5c04\uff0c\u53ef\u6839\u636e\u4e2a\u4eba\u60c5\u51b5\u6dfb\u52a0\n                root \/data\/wordpress;\n                autoindex on;\n                autoindex_exact_size off;\n                autoindex_localtime on;\n        }\n\n}\nnginx\u7684\u914d\u7f6e\u57fa\u672c\u5c31\u8fd9\u4e9b\uff0c\u5982\u6709\u7591\u95ee\u53ef\u4ee5\u8054\u7cfb\u6211<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>MySQL<\/strong><\/p>\n<p>\u5728\u547d\u4ee4\u884c\u8f93\u5165mysql\u8fdb\u5165\u6570\u636e\u5e93<\/p>\n<p>\u6570\u636e\u5e93\u7684\u8bdd\u53ef\u4ee5\u518d\u505a\u4e9b\u5b89\u5168\u914d\u7f6e\uff0c\u8fd9\u91cc\u5c31\u4e0d\u6f14\u793a\u5566<\/p>\n<pre># mysql\nMariaDB [(none)]&gt; create user 'ningmeng'@'localhost' identified by 'XXXXXXX';  \u521b\u5efa\u4e2a\u7ed9wordpress\u4f7f\u7528\u7684\u8fde\u63a5\u6570\u636e\u5e93\u7684\u8d26\u53f7\nMariaDB [(none)]&gt; create database wordpress;  \u521b\u5efa\u6570\u636e\u5e93\nMariaDB [(none)]&gt; grant all privileges on wordpress.* to 'ningmeng'@'%';   \u7ed9ningmeng\u7528\u6237\u6388\u6743<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5efa\u8bae\u521b\u5efa\u597d\u540e\u767b\u9646\u6d4b\u8bd5\u4e00\u4e0b<\/p>\n<pre>mysql -uningmeng -pXXXXXX<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>Php-Fpm<\/strong><\/p>\n<p>\u5b83\u6709\u597d\u591a\u7684\u53c2\u6570\u53ef\u4ee5\u8bbe\u7f6e\uff0c\u4e5f\u6709\u597d\u591a\u5751\uff0c\u5728\u8fd9\u91cc\u4f1a\u7ed9\u5927\u5bb6\u8bf4\u4e00\u4e0b\u9700\u8981\u6ce8\u610f\u7684\u5730\u65b9<\/p>\n<pre># vim \/etc\/php-fpm.d\/www.conf\nuser = nginx    #\u8bbe\u7f6e\u6240\u5c5e\u8005\u6240\u5c5e\u7ec4\uff0c\u4e0d\u8bbe\u7f6e\u7684\u8bdd\u5728\u88c5wordpress\u5347\u7ea7\u4e3b\u9898\u65f6\u6709\u5404\u79cd\u5404\u6837\u7684\u6743\u9650\u95ee\u9898\ngroup = nginx \npm = ondemand    #\u63a8\u8350\u4f7f\u7528\u8fd9\u4e2a\u6a21\u5f0f\uff0c\u5bf9\u4ed6\u7684\u8be6\u7ec6\u4ecb\u7ecd\u53c2\u8003http:\/\/blog.luckynm.cn\/?p=65\npm.max_children = 50    #\u8fd9\u4e9b\u90fd\u53ef\u4ee5\u914d\u7f6e\u4e5f\u53ef\u4ee5\u9ed8\u8ba4\uff0c\u770b\u60c5\u51b5\npm.start_servers = 5\npm.min_spare_servers = 5\npm.max_spare_servers = 35\npm.status_path = \/status\npm.status_path = \/status   #\u540e\u9762\u8fd9\u4e09\u4e2a\u662f\u7528\u6765\u8bbe\u7f6e\u5728web\u9875\u9762\u4e0a\u67e5\u770b\u670d\u52a1\u5668\u72b6\u6001\u4fe1\u606f\u7684\uff0c\u914d\u5408nginx\u79cdserver\u6bb5\u7684\u914d\u7f6e\u4f7f\u7528\nping.path = \/ping\nping.response = pong<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>WordPress<\/strong><\/p>\n<p>\u5728\u505a\u597d\u524d\u9762\u7684\u6b65\u9aa4\u540e\u5148\u4e0d\u8981\u542f\u52a8\uff0c\u56e0\u4e3a\u5b83\u4eec\u542f\u52a8\u53ef\u80fd\u4f1a\u6709\u987a\u5e8f\u95ee\u9898<\/p>\n<p>\u628a\u4e0b\u8f7d\u4e0b\u6765\u7684\u5305\u4f20\u5230\u672c\u5730\uff0c\u53ef\u4ee5\u91cd\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u5939\u5b58\u653e\u4e5f\u53ef\u4ee5\u76f4\u63a5\u653e\u5230\/root\u76ee\u5f55\u4e0b<\/p>\n<p>\u5efa\u8bae\u4f7f\u7528\u4e2d\u6587\u7684\u5305wordpress-4.9.4-zh_CN.tar.gz<\/p>\n<pre># mkdir -pv \/data   \u521b\u5efadata\u76ee\u5f55\uff0c\u8fd9\u4e2a\u8981\u548cnginx\u4e2droot\u5b9a\u4e49\u7684\u6839\u8981\u4e00\u81f4\n# tar xvf wordpress-4.9.4-zh_CN.tar.gz -C \/data\/    \u89e3\u538b\u5230\/data\u76ee\u5f55\u4e0b\n# chown -R nginx:nginx \/data\/wordpress    \u4fee\u6539\u6240\u5c5e\u8005\u6240\u5c5e\u7ec4\uff0c\u4e0d\u8be5\u6ca1\u529e\u6cd5\u6362\u4e3b\u9898\u5347\u7ea7\u63d2\u4ef6\uff0c\u7b49\u4e00\u7cfb\u5217\u95ee\u9898\n# cd \/data\/wordpress\n# mv wp-config-sample.php wp-config.php   \u8bbe\u7f6e\u914d\u7f6e\u6587\u4ef6\n# vim wp-config.php\ndefine('DB_NAME', 'wordpress');     WordPress\u6570\u636e\u5e93\u7684\u540d\u79f0\ndefine('DB_USER', 'ningmeng');     MySQL\u6570\u636e\u5e93\u7528\u6237\u540d\ndefine('DB_PASSWORD', '970628');    MySQL\u6570\u636e\u5e93\u5bc6\u7801\ndefine('DB_HOST', 'localhost');     MySQL\u4e3b\u673a<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u542f\u52a8<\/strong><\/p>\n<pre>systemctl start mariadb  php-fpm\nsystemctl start nginx  \n\u6ce8\u610f\uff1aphp-fpm\u4e00\u5b9a\u8981\u5728nginx\u524d\u542f\u52a8\uff0c\u8981\u4e0d\u7136\u4f1a\u63d0\u793a\u627e\u4e0d\u5230\u7f13\u5b58\u6587\u4ef6\u5939<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<h3><strong>\u603b\u7ed3<\/strong><\/h3>\n<p>\u4ee5\u4e0a\u5c31\u662f\u6211\u4eec\u642d\u5efa\u535a\u5ba2\u7684\u5168\u90e8\u5185\u5bb9\uff0c\u5728\u642d\u5efa\u8fc7\u7a0b\u4e2d\u4e00\u5b9a\u8981\u6ce8\u610f\u4e00\u4e9b\u914d\u7f6e\u7684\u7ec6\u8282\uff0c\u53c8\u53ef\u80fd\u4e00\u4e2a\u53c2\u6570\u6ca1\u914d\uff0c\u6574\u4e2a\u67b6\u6784\u90fd\u8d77\u4e0d\u6765\uff0c\u8fd9\u7bc7\u6587\u7ae0\u4e5f\u4ec5\u4ee3\u8868\u6211\u81ea\u5df1\u7684\u89c1\u89e3\uff0c\u4e0d\u540c\u7684\u7cfb\u7edf\u6709\u4e0d\u540c\u7684\u914d\u7f6e\uff0c\u6211\u603b\u7ed3\u4e86\u4e0b\u5e73\u5e38\u5c0f\u4f19\u4f34\u4eec\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\uff0c\u5728\u8fd9\u91cc\u548c\u5927\u5bb6\u5206\u4eab\u4e0b:<\/p>\n<pre>\u89e3\u51b3\u529e\u6cd5\uff1a\u90fd\u662f\u6743\u9650\u7684\u95ee\u9898\uff0c\u5728php-fpm\u7684\/etc\/php-fpm.d\/www.conf\u91cc\u4fee\u6539\u6240\u5c5e\u8005\u6240\u5c5e\u7ec4\uff0c\u9ed8\u8ba4\u65f6apache\n\nuser = nginx  \ngroup = nginx\n\n\u95ee\u9898\u63cf\u8ff0\uff1a\u670d\u52a1\u5668\u5185\u5b58\u5c0f\uff0cmysql\u8001\u81ea\u52a8\u505c\u673a\n\n\u89e3\u51b3\u529e\u6cd5:   \u4f18\u5316\u4e0bpfp-fpm\u5c31\u597d\u5566\uff0c\u672c\u6587\u4e2d\u63d0\u5230\u5566\u4f18\u5316\u7684\u65b9\u5f0f\uff0c\u6216\u53c2\u8003\uff1ahttp:\/\/blog.luckynm.cn\/?p=65\n\n\u5982\u679c\u60f3\u8981\u5b9e\u73b0\u8ba9nginx\u663e\u793a\u6587\u4ef6\u5939\u76ee\u5f55\u53ef\u53c2\u8003\uff1ahttp:\/\/blog.luckynm.cn\/?p=120<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u57fa\u4e8ecentos7\u642d\u5efa\u4e2a\u4eba\u7f51\u7ad9\u7684\u65b9\u6cd5\u8be6\u89e3\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>\u4e0b\u9762\u7531\/&#8221; target=&#8221;_blank&#8221;&gt;WordPress\u6280\u5de7\u680f\u76ee\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u57fa\u4e8ecentos7\u642d\u5efawordpress\u4e2a\u4eba\u7f51\u7ad9\u7684\u65b9\u6cd5\u8be6\u89e3\uff0c\u5e0c\u671b\u5bf9\u9700\u8981\u7684\u670b\u53cb\u6709\u6240\u5e2e\u52a9\uff01 \u524d\u8a00\uff1a \u968f\u7740\u8ba1\u7b97\u673a\u6280\u672f\u7684\u666e\u53ca\uff0c\u641eIT\u7684\u8d8a\u6765\u8d8a\u591a\uff0c\u4f46\u662f\u968f\u7740\u6df1\u5165\u4f60\u4f1a\u53d1\u73b0\u81ea\u5df1\u4e0a\u4e86\u8d3c\u8239\uff0c\u771f\u7684\u662f\u4e00\u5982IT\u6df1\u4f3c\u6d77\uff0c\u4ece\u6b64\u59b9\u7eb8\u662f\u8def\u4eba\u554a\uff0c\u5f53\u4f60\u8d8a\u6765\u8d8a\u63a5\u8fd1\u81ea\u5df1\u60f3\u60f3\u4e2d\u7684\u76ee\u6807\u662f\uff0c\u5c31\u4f1a\u6709\u79cd\u6e3a\u5c0f\u611f\uff0c\u8fd9\u4e2a\u884c\u4e1a\u77e5\u8bc6\u592a\u8fc7\u6df1\u5965\u5e9e\u5927\u5566\u3002\u597d\u5566\u4e0d\u95f2\u626f\uff0c\u6211\u4eec\u5f00\u59cb\u6211\u4eec\u7684\u4e3b\u9898\uff1a\u4f7f\u7528wordpress\u642d\u5efa\u4e2a\u4eba\u535a\u5ba2\u3002 \u4e00\u3001\u73af\u5883\u51c6\u5907 \u6211\u4eec\u5148\u4ecb\u7ecd\u4e0b\u73af\u5883\u548c\u5b9e\u9a8c\u4e2d\u6240\u9700\u8981\u7684\u5305 \u73af\u5883\uff1a \u6211\u4f7f\u7528\u7684\u662fcentos7.4\u7684\u7cfb\u7edf \u5efa\u8bae\u5173\u6389selinux\u548c\u5f71\u54cd\u523080\u7aef\u53e3\u7684\u9632\u706b\u5899\u7b56\u7565 \u7a0b\u5e8f\u5305\uff1a nginx\uff08\u4f7f\u7528\u7cfb\u7edf\u9ed8\u8ba4\u5e26\u7684\u5149\u76d8\u91cc\u7684\u5305\uff0c\u5f53\u7136\u4e5f\u53ef\u4ee5\u81ea\u5df1\u7f16\u8bd1\u5b89\u88c5\uff0c\u4f46\u662f\u642d\u5efa\u4e2a\u4eba\u535a\u5ba2\u4e0d\u5efa\u8bae\uff0c\u56e0\u4e3a\u6ca1\u5fc5\u8981\uff09 mariadb-server(\u6570\u636e\u5e93\u4f7f\u7528maridb-server\u4e5f\u662f\u7cfb\u7edf\u672c\u5730\u955c\u50cf\u91cc\u7684) php-fpm\uff08\u7528\u6765\u7ba1\u7406php\u7a0b\u5e8f\u7684\uff0c\u53e6\u5916nginx\u4e0d\u652f\u6301php\u6a21\u5757\uff09 php-mysql\uff08\u7528\u6765\u4e8b\u9879php\u4e0e\u6570\u636e\u5e93\u8fde\u63a5\uff09 wordpress\u7a0b\u5e8f\u5305\uff0c\u5b98\u7f51\u5730\u5740\uff1ahttps:\/\/wordpress.org\/download\/ wordpress\u4e3b\u9898\uff1ahttps:\/\/wordpress.org\/themes\/ # yum install nginx mariadb-server php-fpm php-mysql -y # systemctl enable nginx mariadb php-fpm \u8bbe\u7f6e\u5f00\u673a\u81ea\u542f \u767b\u5f55\u540e\u590d\u5236 \u4e8c\u3001\u5404\u670d\u52a1\u914d\u7f6e Nginx \u5199nginx\u7684\u914d\u7f6e\u6587\u4ef6\u4e5f\u6709\u4e24\u79cd\u65b9\u5f0f\uff0c\u76f4\u63a5\u5199\u4e3b\u914d\u7f6e\u91cc\uff0c\u548c\u5199\u5230conf.d\u6587\u4ef6\u5939\u4e0b\uff0c\u8fd9\u91cc\u4f7f\u7528\u7b2c\u4e8c\u79cd\uff0c\u5176\u5b9e\u6ca1\u5565\u533a\u522b # vim \/etc\/nginx\/nginx.conf \u5728http\u914d\u7f6e\u6bb5\u91cc\u6dfb\u52a0 http { fastcgi_cache_path \/var\/cache\/nginx\/fcgi_cache levels=1:2:1 keys_zone=fcgicache:20m inactive=120s; #\u7279\u522b\u6ce8\u610f\uff1a\u7528\u6765\u8bbe\u7f6e\u7f13\u5b58\u7684\u4e00\u4e9b\u53c2\u6570\uff0c\u5f53\u4f60\u8981\u505a\u591a\u865a\u62df\u4e3b\u673a\u65f6\u4e00\u5b9a\u8981\u5728\u91cd\u65b0\u8bbe\u7f6e\u4ee5\u4e2a\u5e76\u5728server\u914d\u7f6e\u6bb5\u91cc\u4fee\u6539 } \u8fd9\u4e2a\u4e3b\u8981\u662f\u5b9a\u4e49\u7f13\u5b58\u7684\u4e00\u4e9b\u914d\u7f6e\uff0c\u53ef\u76f4\u63a5\u62ff\u6765\u7528 # vim \/etc\/nginx\/conf.d\/blog.conf #\u5fc5\u987bconf\u540e\u7f00 server { [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-31540","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31540","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=31540"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31540\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=31540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=31540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=31540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}