{"id":32856,"date":"2023-09-03T18:11:20","date_gmt":"2023-03-13T00:04:56","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e8%a6%81%e5%9c%a8nginx%e4%b8%8a%e8%bf%90%e8%a1%8cwordpress%e3%80%82\/"},"modified":"2024-04-30T21:25:07","modified_gmt":"2024-04-30T13:25:07","slug":"%e8%a6%81%e5%9c%a8nginx%e4%b8%8a%e8%bf%90%e8%a1%8cwordpress%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e8%a6%81%e5%9c%a8nginx%e4%b8%8a%e8%bf%90%e8%a1%8cwordpress%e3%80%82\/","title":{"rendered":"\u8981\u5728nginx\u4e0a\u8fd0\u884cWordPress"},"content":{"rendered":"<p>\u6211\u60f3\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5WordPress\uff0c\u6240\u4ee5\u6211\u4f1a\u5199\u4e0b\u5907\u5fd8\u5f55\u3002<\/p>\n<p>\u55ef\uff0c\u53ea\u662f\u60f3\u8bf4\u4e00\u53e5\u8bdd\uff0c\u522b\u5fd8\u4e86php-fpm&#8230;<br \/>\n\u5982\u679c\u4f7f\u7528apache\u7684\u8bdd\u5c31\u6ca1\u95ee\u9898\u4e86&#8230;<\/p>\n<h1>\u76ee\u5f55<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u74b0\u5883\u8aac\u660e<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">wordpress\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u5404\u7a2e\u8a2d\u5b9a<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b5\u30fc\u30d3\u30b9\u8d77\u52d5<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u6b21\u306e\u76ee\u7684+\u53c2\u8003\u8cc7\u6599<\/ul>\n<h1>\u73af\u5883\u63cf\u8ff0<\/h1>\n<p>\u6211\u5728AWS\u4e0a\u4f7f\u7528CentOS 6.5\u3002<\/p>\n<p>\u5982\u679c\u4e0d\u60f3\u5199sudo\u5f88\u9ebb\u70e6\uff0c\u90a3\u6240\u6709\u7684\u547d\u4ee4\u90fd\u662f\u4ee5root\u6743\u9650\u6267\u884c\u7684\u3002\u5982\u679c\u6ca1\u6709\u83b7\u5f97su\u6743\u9650\u7684\u4eba\uff0c\u8bf7\u968f\u65f6\u9644\u52a0sudo\u6267\u884c\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u8bf7\u5404\u4f4d\u81ea\u884c\u66ff\u6362\u62ec\u53f7\u4e2d\u7684\u90e8\u5206\uff0c\u5343\u4e07\u4e0d\u8981\u76f4\u63a5\u4f7f\u7528\u539f\u6587\u3002<\/p>\n<h1>\u5b89\u88c5\u4e2d\u95f4\u4ef6<\/h1>\n<p>\u53ef\u4ee5\u7565\u8fc7\u5bf9\u4ed3\u5e93\u8bbe\u7f6e\u6587\u4ef6\u7684\u7f16\u8f91\uff0c\u8fd9\u662f\u4e3a\u4e86\u5728\u4f7f\u7528yum\u65f6\u4ec5\u8bbf\u95ee\u5fc5\u8981\u7684\u4ed3\u5e93\u3002<\/p>\n<h2>\u5b89\u88c5Nginx\u3002<\/h2>\n<p>nginx\u7684\u5b58\u50a8\u5e93\u4fdd\u7559\u4e86\u5b89\u88c5\u65f6\u7684\u201c\u7a33\u5b9a\u7248\u672c\u201d\u3002\u9664\u975e\u5728\u5173\u952e\u4efb\u52a1\u4e2d\u4f7f\u7528\uff0c\u5426\u5219\u53ef\u4ee5\u4f7f\u7528\u201c\u4e3b\u7ebf\u7248\u672c\u201d\u800c\u65e0\u9700\u62c5\u5fc3\u95ee\u9898\u3002\u4e0b\u9762\u4e5f\u5305\u542b\u4e86\u5173\u4e8e\u4f7f\u7528\u4e3b\u7ebf\u7248\u672c\u7684\u6b65\u9aa4\u3002<\/p>\n<pre class=\"post-pre\"><code># yum install http:\/\/nginx.org\/packages\/centos\/6\/noarch\/RPMS\/nginx-release-centos-6-0.el6.ngx.noarch.rpm\r\n# sed -i \"s\/enabled=1\/enabled=0\/g\" \/etc\/yum.repos.d\/nginx.repo\r\n# sed -i \"s\/nginx.org\\\/packages\\\/centos\/nginx.org\\\/packages\\\/mainline\\\/centos\/\" \/etc\/yum.repos.d\/nginx.repo\r\n# yum install nginx --enablerepo=nginx\r\n<\/code><\/pre>\n<h2>\u5b89\u88c5mysql\u3002<\/h2>\n<p>\u672c\u6b21\u5c06\u4f7f\u7528\u7248\u672c5.6\u3002<\/p>\n<pre class=\"post-pre\"><code># yum install http:\/\/repo.mysql.com\/mysql-community-release-el6-5.noarch.rpm\r\n# sed -i \"s\/enabled=1\/enabled=0\/g\" \/etc\/yum.repos.d\/mysql-community.repo\r\n# yum -y install mysql-community-server --enablerepo=mysql56-community\r\n<\/code><\/pre>\n<h2>\u6211\u5011\u5c07\u5b89\u88ddPHP\u3002<\/h2>\n<p>\u8fd9\u6b21\u6211\u4eec\u5c06\u4f7f\u7528\u7248\u672c5.6\u3002<br \/>\n\u7531\u4e8e\u5e76\u672a\u4e0emysql\u96c6\u6210\uff0c\u6240\u4ee5\u5982\u679c\u6709\u9700\u8981\uff0c\u5347\u7ea7\u7248\u672c\u4e5f\u4e0d\u4f1a\u6709\u95ee\u9898\u3002<\/p>\n<pre class=\"post-pre\"><code># yum install http:\/\/rpms.famillecollet.com\/enterprise\/remi-release-6.rpm\r\n# yum install php --enablerepo=remi-php56\r\n<\/code><\/pre>\n<p>\u786e\u8ba4PHP\u7684\u7248\u672c\u3002<\/p>\n<pre class=\"post-pre\"><code># php -v\r\n<\/code><\/pre>\n<p>\u6211\u4eec\u6765\u786e\u8ba4\u4e00\u4e0b\u662f\u5426\u5df2\u7ecf\u5230\u4e865.6\u3002<\/p>\n<h2>\u5b89\u88c5php-fpm\u3002<\/h2>\n<p>\u8fd9\u6b21\u6211\u4eec\u5c06\u4f7f\u7528php5.6\u6765\u5b89\u88c5\uff0c\u56e0\u6b64\u4ecephp56\u7684\u5e93\u4e2d\u5b89\u88c5\u3002<\/p>\n<pre class=\"post-pre\"><code># yum install php-fpm --enablerepo=remi-php56\r\n<\/code><\/pre>\n<h1>\u5b89\u88c5WordPress<\/h1>\n<p>\u5982\u679c\u6ca1\u6709\u4ec0\u4e48\u7279\u522b\u7684\u7406\u7531\uff0c\u4f60\u53ef\u4ee5\u5c06\u201d4.3.1\u201d \u6539\u4e3a \u201c\u6700\u65b0\u7248\u672c\u201d \u8fdb\u884c\u5b89\u88c5\uff0c\u6211\u8ba4\u4e3a\u8fd9\u6837\u4e5f\u6ca1\u6709\u95ee\u9898\u3002<\/p>\n<p>\u6211\u6240\u505a\u7684\u4e8b\u60c5\u5982\u4e0b\u6240\u793a\u3002<\/p>\n<pre class=\"post-pre\"><code># cd \/usr\/local\/src\/\r\n# wget https:\/\/ja.wordpress.org\/wordpress-4.3.1-ja.tar.gz\r\n# tar zxvf wordpress-4.3.1-ja.tar.gz\r\n<\/code><\/pre>\n<p>\u5982\u679c\u8981\u5b89\u88c5\u6700\u65b0\u7248\u672c\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u9009\u9879\u3002<\/p>\n<pre class=\"post-pre\"><code># cd \/usr\/local\/src\/\r\n# wget https:\/\/ja.wordpress.org\/wordpress-latest-ja.tar.gz\r\n# tar zxvf wordpress-\u3010\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u3011-ja.tar.gz\r\n<\/code><\/pre>\n<p>\u79fb\u52a8 WordPress \u76ee\u5f55\u81f3\u4e00\u4e2a\u5408\u9002\u7684\u4f4d\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code># mv wordpress \/var\/www\/\r\n<\/code><\/pre>\n<h1>\u4e0d\u540c\u7684\u914d\u7f6e<\/h1>\n<h2>\u6211\u8981\u4e3aWordPress\u521b\u5efa\u4e00\u4e2aMySQL\u6570\u636e\u5e93\u3002<\/h2>\n<p>\u9996\u5148\uff0c\u8bf7\u542f\u52a8\u3002\u5982\u679c\u5df2\u7ecf\u542f\u52a8\uff0c\u8bf7\u8df3\u8fc7\u3002<\/p>\n<pre class=\"post-pre\"><code># service mysqld start\r\n<\/code><\/pre>\n<p>\u63a5\u4e0b\u6765\uff0c\u8fdb\u884cMySQL\u7684\u521d\u59cb\u8bbe\u7f6e\u3002\u5982\u679c\u60a8\u5df2\u7ecf\u6267\u884c\u8fc7\uff0c\u8bf7\u8df3\u8fc7\u6b64\u6b65\u9aa4\u3002<\/p>\n<p>\u6839\u636e\u547d\u4ee4\u884c\u4e0a\u7684\u5bf9\u8bdd\u6846\u8fdb\u884c\u4ee5\u4e0b\u64cd\u4f5c\u3002<br \/>\n\u6b64\u5916\uff0c\u8bf7\u9884\u5148\u786e\u5b9aMySQL\u7684root\u7528\u6237\u5bc6\u7801\u3002<\/p>\n<pre class=\"post-pre\"><code># mysql_secure_installation\r\n\r\nEnter current password for root (enter for none): \u3010ENTER\u30ad\u30fc\u3092\u5165\u529b\u3011\r\n\r\nSet root password? [Y\/n] Y\r\nNew password:\u3010mysql\u306eroot\u30e6\u30fc\u30b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3011\r\nRe-enter new password:\u3010mysql\u306eroot\u30e6\u30fc\u30b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3011\r\n\r\nRemove anonymous users? [Y\/n] Y\r\n\r\nDisallow root login remotely? [Y\/n] Y\u3000\r\n\r\nRemove test database and access to it? [Y\/n] Y\r\n\r\nReload privilege tables now? [Y\/n] Y\r\n\r\n<\/code><\/pre>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u8981\u521b\u5efa\u4e00\u4e2a\u6570\u636e\u5e93\u3002<br \/>\n\u5728\u8fd9\u91cc\uff0c\u4e3a\u4e86\u8ba9WordPress\u7cfb\u7edf\u80fd\u591f\u8bbf\u95eeMySQL\uff0c\u6211\u4eec\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u6570\u636e\u5e93\u548c\u4e00\u4e2a\u7528\u6237\uff0c\u8bf7\u60a8\u5148\u8bbe\u5b9a\u4e00\u4e2a\u5bc6\u7801\u3002<\/p>\n<pre class=\"post-pre\"><code># mysql -uroot -p\r\nEnter password:\u3000\u3010mysql\u306eroot\u30e6\u30fc\u30b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3011\r\n\r\nmysql&gt; create database wp;\r\n\r\nmysql&gt; grant all privileges on wp.* to wp@localhost identified by '\u3010mysql\u306ewp\u30e6\u30fc\u30b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3011';\r\n\r\nmysql&gt; FLUSH PRIVILEGES;\r\n\r\n<\/code><\/pre>\n<h2>\u6211\u8981\u7f16\u8f91nginx\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/h2>\n<p>\u8bf7\u5728wp-config.php\u6587\u4ef6\u4e2d\uff0c\u5c06MySQL\u7684\u5bc6\u7801\u4ee5\u52a0\u5bc6\u5f62\u5f0f\u4fdd\u5b58\uff0c\u4ee5\u4fdd\u62a4\u5176\u4e0d\u53ef\u89c1\u3002<br \/>\n\u8bf7\u5728HTTP\u6807\u7b7e\u5185\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\u3002<\/p>\n<pre class=\"post-pre\"><code>    server <span class=\"o\">{<\/span>\r\n        listen 80<span class=\"p\">;<\/span>\r\n        server_name \u3010\u3042\u306a\u305f\u306e\u30b5\u30fc\u30d0\u306e\u30db\u30b9\u30c8\u540d\u3011<span class=\"p\">;<\/span>\r\n        index index.php <span class=\"p\">;<\/span>\r\n        root \/var\/www\/wordpress <span class=\"p\">;<\/span>\r\n        location ~<span class=\"k\">*<\/span> \/wp-config.php <span class=\"o\">{<\/span>\r\n             deny all<span class=\"p\">;<\/span>\r\n        <span class=\"o\">}<\/span>\r\n        location ~ <span class=\"se\">\\.<\/span>php<span class=\"nv\">$ <\/span><span class=\"o\">{<\/span>\r\n             root           \/var\/www\/wordpress <span class=\"p\">;<\/span>\r\n             fastcgi_pass   127.0.0.1:9000<span class=\"p\">;<\/span>\r\n             fastcgi_index  index.php<span class=\"p\">;<\/span>\r\n             fastcgi_param  SCRIPT_FILENAME  <span class=\"nv\">$document_root$fastcgi_script_name<\/span><span class=\"p\">;<\/span>\r\n             include        fastcgi_params<span class=\"p\">;<\/span>\r\n        <span class=\"o\">}<\/span>\r\n    <span class=\"o\">}<\/span>\r\n\r\n<\/code><\/pre>\n<p>\u7de8\u8f2f\u5f8c\u4e0d\u8981\u5fd8\u8a18\u9032\u884c\u6587\u6cd5\u6aa2\u67e5\u3002<\/p>\n<pre class=\"post-pre\"><code># service nginx configtest\r\n<\/code><\/pre>\n<p>\u53ea\u8981\u4ea7\u751f\u4ee5\u4e0b\u7684\u8f93\u51fa\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code>nginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok\r\nnginx: configuration file \/etc\/nginx\/nginx.conf test is successful`\r\n<\/code><\/pre>\n<h2>\u8fdb\u884cphp-fpm\u7684\u914d\u7f6e\u3002<\/h2>\n<p>\u53ea\u9700\u8981\u5c06php-fpm\u7528\u6237\u548c\u7ec4\u66f4\u6539\u4e3anginx\uff0c\u5373\u53ef\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code># sed -i \"s\/user = apache\/user = nginx\/\" \/etc\/php-fpm.d\/www.conf\r\n# sed -i \"s\/group = apache\/group = nginx\/\" \/etc\/php-fpm.d\/www.conf\r\n<\/code><\/pre>\n<p>\u8ba9\u6211\u4eec\u5bf9php-fpm\u8fdb\u884c\u8bed\u6cd5\u68c0\u67e5\u5427\u3002<\/p>\n<pre class=\"post-pre\"><code># service php-fpm configtest\r\n<\/code><\/pre>\n<h2>\u66f4\u6539WordPress\u7684\u8bbe\u7f6e\u3002<\/h2>\n<p>\u7531\u4e8e\u4ee5\u4e0b\u63cf\u8ff0\uff0c\u8bf7\u5c06\u5b83\u4eec\u9010\u4e00\u6539\u5199\u4e3a\u4e2d\u6587\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"cd\">\/** WordPress \u306e\u305f\u3081\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d *\/<\/span>\r\n<span class=\"nb\">define<\/span><span class=\"p\">(<\/span><span class=\"s1\">'DB_NAME'<\/span><span class=\"p\">,<\/span> <span class=\"s1\">'wp'<\/span><span class=\"p\">);<\/span>\r\n\r\n<span class=\"cd\">\/** MySQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30e6\u30fc\u30b6\u30fc\u540d *\/<\/span>\r\n<span class=\"nb\">define<\/span><span class=\"p\">(<\/span><span class=\"s1\">'DB_USER'<\/span><span class=\"p\">,<\/span> <span class=\"s1\">'wp'<\/span><span class=\"p\">);<\/span>\r\n\r\n<span class=\"cd\">\/** MySQL \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30b9\u30ef\u30fc\u30c9 *\/<\/span>\r\n<span class=\"nb\">define<\/span><span class=\"p\">(<\/span><span class=\"s1\">'DB_PASSWORD'<\/span><span class=\"p\">,<\/span> <span class=\"s1\">'\u3010mysql\u306ewp\u30e6\u30fc\u30b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3011'<\/span><span class=\"p\">);<\/span>\r\n\r\n<span class=\"cd\">\/** MySQL \u306e\u30db\u30b9\u30c8\u540d *\/<\/span>\r\n<span class=\"nb\">define<\/span><span class=\"p\">(<\/span><span class=\"s1\">'DB_HOST'<\/span><span class=\"p\">,<\/span> <span class=\"s1\">'localhost'<\/span><span class=\"p\">);<\/span>\r\n\r\n<span class=\"cd\">\/** \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3059\u308b\u969b\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6587\u5b57\u30bb\u30c3\u30c8 *\/<\/span>\r\n<span class=\"nb\">define<\/span><span class=\"p\">(<\/span><span class=\"s1\">'DB_CHARSET'<\/span><span class=\"p\">,<\/span> <span class=\"s1\">'utf8'<\/span><span class=\"p\">);<\/span>\r\n\r\n<span class=\"cd\">\/** \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u7167\u5408\u9806\u5e8f (\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u5909\u66f4\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093) *\/<\/span>\r\n<span class=\"nb\">define<\/span><span class=\"p\">(<\/span><span class=\"s1\">'DB_COLLATE'<\/span><span class=\"p\">,<\/span> <span class=\"s1\">''<\/span><span class=\"p\">);<\/span>\r\n<\/code><\/pre>\n<p>\u7531\u4e8e\u5b98\u65b9\u63d0\u4f9b\u4e86\u4f18\u8d28\u7684\u670d\u52a1\uff0c\u6211\u4eec\u53ef\u4ee5\u5b89\u5168\u5730\u5220\u9664\u4e0b\u8ff0\u90e8\u5206\u5e76\u76f4\u63a5\u4f7f\u7528\u5b98\u65b9\u63d0\u4f9b\u7684\u8ba4\u8bc1\u7528\u552f\u4e00\u5bc6\u94a5\uff1a<br \/>\nhttps:\/\/api.wordpress.org\/secret-key\/1.1\/salt\/<\/p>\n<pre class=\"post-pre\"><code>define('AUTH_KEY',         'put your unique phrase here');\r\ndefine('SECURE_AUTH_KEY',  'put your unique phrase here');\r\ndefine('LOGGED_IN_KEY',    'put your unique phrase here');\r\ndefine('NONCE_KEY',        'put your unique phrase here');\r\ndefine('AUTH_SALT',        'put your unique phrase here');\r\ndefine('SECURE_AUTH_SALT', 'put your unique phrase here');\r\ndefine('LOGGED_IN_SALT',   'put your unique phrase here');\r\ndefine('NONCE_SALT',       'put your unique phrase here');\r\n<\/code><\/pre>\n<h1>\u670d\u52a1\u542f\u52a8<\/h1>\n<p>\u7531\u4e8e\u5728\u914d\u7f6e\u65f6\u5df2\u7ecf\u542f\u52a8\u4e86MySQL\uff0c\u56e0\u6b64\u63a5\u4e0b\u6765\u6211\u4eec\u9700\u8981\u542f\u52a8Nginx\u548cPHP-FPM\u3002<\/p>\n<pre class=\"post-pre\"><code># service nginx start\r\n# service php-fpm start\r\n<\/code><\/pre>\n<p>\u5728\u91cd\u65b0\u542f\u52a8\u670d\u52a1\u5668\u65f6\uff0c\u6211\u4eec\u4e5f\u8981\u8fdb\u884c\u81ea\u52a8\u542f\u52a8\u8bbe\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code># chkconfig mysqld on\r\n# chkconfig nginx on\r\n# chkconfig php-fpm on\r\n<\/code><\/pre>\n<p>\u5269\u4e0b\u7684\u662f\u5728\u6d4f\u89c8\u5668\u4e0a\u8fdb\u884c\u7684\u4efb\u52a1\u3002<br \/>\n\u8bf7\u53c2\u8003\u4ee5\u4e0b\u94fe\u63a5\u8fdb\u884c\u64cd\u4f5c\u3002(\u7b80\u4fbf)<br \/>\nhttp:\/\/webkaru.net\/linux\/wordpress-install-centos\/<\/p>\n<h1>\u4ee5\u4e0b\u662f\u7528\u4e2d\u6587\u539f\u751f\u65b9\u5f0f\u6539\u5199\u7684\u9009\u9879\uff1a<\/h1>\n<p>\u4e0b\u9762\u662f\u76f8\u5173\u76ee\u7684\u548c\u53c2\u8003\u8d44\u6599\u3002<\/p>\n<h2>\u4e0b\u4e00\u4e2a\u76ee\u6807<\/h2>\n<p>\u6211\u60f3\u8981\u5236\u4f5c\u4e00\u4e2a\u53ef\u4ee5\u5728WordPress\u4e0a\u4f7f\u7528Bootstrap\u7684\u4e3b\u9898\uff0c\u4ee5\u4fbf\u80fd\u591f\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<br \/>\n\u4f46\u662f\uff0c\u65e2\u7136\u6709\u5b98\u65b9\u7684\u4e3b\u9898\u9875\u9762\uff0c\u6211\u4f1a\u5148\u770b\u770b\u90a3\u91cc\u662f\u5426\u6709\u6211\u60f3\u8981\u7684\u4e1c\u897f\uff0c\u5982\u679c\u6ca1\u6709\u7684\u8bdd\uff0c\u518d\u8003\u8651\u81ea\u5df1\u5236\u4f5c\u3002<\/p>\n<h2>\u8bf7\u53c2\u8003\u4ee5\u4e0b\u7f51\u7ad9<\/h2>\n<p>http:\/\/qiita.com\/utano320\/items\/36b6eac2bbd5bb5657f6<br \/>\nhttp:\/\/qiita.com\/MiyaseTakurou\/items\/923c28f7ac60b2ce761a<br \/>\nhttp:\/\/qiita.com\/utano320\/items\/36b6eac2bbd5bb5657f6<br \/>\nhttp:\/\/www.atmarkit.co.jp\/ait\/articles\/1407\/24\/news003.html<\/p>\n<p>\u4ee5\u4e0b\u662f\u8981\u6c42\u7684\u4e2d\u6587\u7ffb\u8bd1\u7248\u672c\uff1a<br \/>\nhttp:\/\/qiita.com\/utano320\/items\/36b6eac2bbd5bb5657f6<br \/>\nhttp:\/\/qiita.com\/MiyaseTakurou\/items\/923c28f7ac60b2ce761a<br \/>\nhttp:\/\/qiita.com\/utano320\/items\/36b6eac2bbd5bb5657f6<br \/>\nhttp:\/\/www.atmarkit.co.jp\/ait\/articles\/1407\/24\/news003.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u60f3\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5WordPress\uff0c\u6240\u4ee5\u6211\u4f1a\u5199\u4e0b\u5907\u5fd8\u5f55\u3002 \u55ef\uff0c\u53ea\u662f\u60f3\u8bf4\u4e00\u53e5\u8bdd\uff0c\u522b\u5fd8\u4e86php-fpm&#038;#823 [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32856","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u8981\u5728nginx\u4e0a\u8fd0\u884cWordPress - Blog - Silicon Cloud<\/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.silicloud.com\/zh\/blog\/\u8981\u5728nginx\u4e0a\u8fd0\u884cwordpress\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u8981\u5728nginx\u4e0a\u8fd0\u884cWordPress\" \/>\n<meta property=\"og:description\" content=\"\u6211\u60f3\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5WordPress\uff0c\u6240\u4ee5\u6211\u4f1a\u5199\u4e0b\u5907\u5fd8\u5f55\u3002 \u55ef\uff0c\u53ea\u662f\u60f3\u8bf4\u4e00\u53e5\u8bdd\uff0c\u522b\u5fd8\u4e86php-fpm&amp;#823 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u8981\u5728nginx\u4e0a\u8fd0\u884cwordpress\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-13T00:04:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T13:25:07+00:00\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\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.silicloud.com\/zh\/blog\/%e8%a6%81%e5%9c%a8nginx%e4%b8%8a%e8%bf%90%e8%a1%8cwordpress%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e8%a6%81%e5%9c%a8nginx%e4%b8%8a%e8%bf%90%e8%a1%8cwordpress%e3%80%82\/\",\"name\":\"\u8981\u5728nginx\u4e0a\u8fd0\u884cWordPress - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-03-13T00:04:56+00:00\",\"dateModified\":\"2024-04-30T13:25:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e8%a6%81%e5%9c%a8nginx%e4%b8%8a%e8%bf%90%e8%a1%8cwordpress%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e8%a6%81%e5%9c%a8nginx%e4%b8%8a%e8%bf%90%e8%a1%8cwordpress%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e8%a6%81%e5%9c%a8nginx%e4%b8%8a%e8%bf%90%e8%a1%8cwordpress%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8981\u5728nginx\u4e0a\u8fd0\u884cWordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e8%a6%81%e5%9c%a8nginx%e4%b8%8a%e8%bf%90%e8%a1%8cwordpress%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u8981\u5728nginx\u4e0a\u8fd0\u884cWordPress - Blog - Silicon Cloud","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.silicloud.com\/zh\/blog\/\u8981\u5728nginx\u4e0a\u8fd0\u884cwordpress\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u8981\u5728nginx\u4e0a\u8fd0\u884cWordPress","og_description":"\u6211\u60f3\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5WordPress\uff0c\u6240\u4ee5\u6211\u4f1a\u5199\u4e0b\u5907\u5fd8\u5f55\u3002 \u55ef\uff0c\u53ea\u662f\u60f3\u8bf4\u4e00\u53e5\u8bdd\uff0c\u522b\u5fd8\u4e86php-fpm&#823 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u8981\u5728nginx\u4e0a\u8fd0\u884cwordpress\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-03-13T00:04:56+00:00","article_modified_time":"2024-04-30T13:25:07+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e8%a6%81%e5%9c%a8nginx%e4%b8%8a%e8%bf%90%e8%a1%8cwordpress%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e8%a6%81%e5%9c%a8nginx%e4%b8%8a%e8%bf%90%e8%a1%8cwordpress%e3%80%82\/","name":"\u8981\u5728nginx\u4e0a\u8fd0\u884cWordPress - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-03-13T00:04:56+00:00","dateModified":"2024-04-30T13:25:07+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e8%a6%81%e5%9c%a8nginx%e4%b8%8a%e8%bf%90%e8%a1%8cwordpress%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e8%a6%81%e5%9c%a8nginx%e4%b8%8a%e8%bf%90%e8%a1%8cwordpress%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e8%a6%81%e5%9c%a8nginx%e4%b8%8a%e8%bf%90%e8%a1%8cwordpress%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u8981\u5728nginx\u4e0a\u8fd0\u884cWordPress"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e8%a6%81%e5%9c%a8nginx%e4%b8%8a%e8%bf%90%e8%a1%8cwordpress%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32856","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=32856"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32856\/revisions"}],"predecessor-version":[{"id":94385,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32856\/revisions\/94385"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=32856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=32856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=32856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}