{"id":12104,"date":"2018-02-16T00:00:00","date_gmt":"2018-02-15T16:00:00","guid":{"rendered":"https:\/\/fgchen.com\/wpedu2\/2018\/02\/16\/%e3%80%8c%e7%b6%b2%e7%ab%99%e6%97%a5%e8%aa%8c%e3%80%8d-%e5%be%9e192-192-246-169%e7%8d%a8%e7%ab%8b%e4%b8%bb%e6%a9%9f%e8%bd%89%e7%a7%bb%e8%87%b3wells-fgchen-com%e8%99%9b%e6%93%ac%e4%b8%bb%e6%a9%9f\/"},"modified":"2026-03-30T14:48:09","modified_gmt":"2026-03-30T06:48:09","slug":"%e3%80%8c%e7%b6%b2%e7%ab%99%e6%97%a5%e8%aa%8c%e3%80%8d-%e5%be%9e192-192-246-169%e7%8d%a8%e7%ab%8b%e4%b8%bb%e6%a9%9f%e8%bd%89%e7%a7%bb%e8%87%b3wells-fgchen-com%e8%99%9b%e6%93%ac%e4%b8%bb%e6%a9%9f","status":"publish","type":"post","link":"https:\/\/fgchen.com\/wpedu\/2018\/02\/%e3%80%8c%e7%b6%b2%e7%ab%99%e6%97%a5%e8%aa%8c%e3%80%8d-%e5%be%9e192-192-246-169%e7%8d%a8%e7%ab%8b%e4%b8%bb%e6%a9%9f%e8%bd%89%e7%a7%bb%e8%87%b3wells-fgchen-com%e8%99%9b%e6%93%ac%e4%b8%bb%e6%a9%9f\/","title":{"rendered":"\u300c\u7db2\u7ad9\u65e5\u8a8c\u300d- \u5f9e192.192.246.169(\u7368\u7acb\u4e3b\u6a5f)\u8f49\u79fb\u81f3wells.fgchen.com(\u865b\u64ec\u4e3b\u6a5f)"},"content":{"rendered":"2018\/2\/16 (\u8fb2\u66c6\u6625\u7bc01\/1)\n\u5fc3\u8840\u4f86\u6f6e\uff0c\u5c07Wordpress\u5f9e\u4e00\u53f0\u4e3b\u6a5f\u79fb\u5230\u53e6\u4e00\u53f0\u4e3b\u6a5f(\u4e4b\u524d\u60f3\u505a\u6c92\u505a\uff0c\u628a\u539f\u672c\u7368\u7acb\u4e3b\u6a5f\u518d\u632a\u51fa\u4f86\u53e6\u4f5c\u4ed6\u7528)\uff0c\u6b65\u9a5f\uff1a\n\n<ol>\n    <li>\u5c07Wordpress\u7db2\u7ad9\u5efa\u7acbtar ball,\u00a0 tar -xvf wp.tar .\/wp\/8<\/li>\n    <li>\u4f7f\u7528wget\uff0c\u5c07\u7db2\u7ad9tar\u6a94\u8907\u88fd\u5230\u65b0\u4f4d\u7f6e<\/li>\n    <li>\u89e3tar ball<\/li>\n    <li>\u5c07\u8cc7\u6599\u5eab\u4e2d\u6240\u6709\u7684\u8868\u683c\u4ee5SQL\u65b9\u5f0f\u532f\u51fa\uff0c\u6a94\u6848\u592a\u5927\uff0c\u5247\u9032mysql\uff0c\u4ee5soruce wp.sql\u65b9\u5f0f\u9032\u884c\u532f\u5165\u3002<\/li>\n<\/ol>\n\n\u5982\u679cDomain URL\u4e0d\u8b8a\u7684\u8a71\uff0c\u554f\u984c\u6bd4\u8f03\u55ae\u7d14\uff0c\u5e95\u4e0b\u662furl\u8b8a\u66f4\u4e0b\u7684\u8655\u7406\u65b9\u5f0f\uff1a\n\n<pre class=\"lang:python decode:true\">UPDATE wp_options SET option_value = replace(option_value, 'http:\/\/www.oldurl', 'http:\/\/www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl';\nUPDATE wp_posts SET guid = replace(guid, 'http:\/\/www.oldurl','http:\/\/www.newurl');\nUPDATE wp_posts SET post_content = replace(post_content, 'http:\/\/www.oldurl', 'http:\/\/www.newurl');\nUPDATE wp_postmeta SET meta_value = replace(meta_value,'http:\/\/www.oldurl','http:\/\/www.newurl');<\/pre>\n\n\u51fa\u73fe404 not found, \u63a5\u8457\u8655\u7406.htaccess\uff0c\u8b8a\u66f4\u76ee\u9304 (\u7531\u820a\u76ee\u9304\u6539\u6210\u65b0\u76ee\u9304)\n\n<pre class=\"lang:xhtml decode:true\">&lt;IfModule mod_rewrite.c&gt;\n    RewriteEngine On\n    RewriteBase \/wp\n    RewriteRule ^(.*\/)?w3tc_rewrite_test([0-9]+)\/?$ $1?w3tc_rewrite_test=1 [L]\n    RewriteCond %{HTTP:Accept-Encoding} gzip\n    RewriteRule .* - [E=W3TC_ENC:_gzip]\n    RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]\n    RewriteRule .* - [E=W3TC_PREVIEW:_preview]\n    RewriteCond %{REQUEST_METHOD} !=POST\n    RewriteCond %{QUERY_STRING} =\"\"\n    RewriteCond %{REQUEST_URI} \/$\n    RewriteCond %{HTTP_COOKIE} !(comment_author|wp-postpass|w3tc_logged_out|wordpress_logged_in|wp\n    RewriteCond \"%{DOCUMENT_ROOT}\/wp\/wp-content\/cache\/page_enhanced\/%{HTTP_HOST}\/%{REQUEST_URI}\/_in\n    RewriteRule .* \"\/wp\/wp-content\/cache\/page_enhanced\/%{HTTP_HOST}\/%{REQUEST_URI}\/_index%{ENV:W3TC\n&lt;\/IfModule&gt;\n# END W3TC Page Cache core\n# BEGIN WordPress\n&lt;IfModule mod_rewrite.c&gt;\nRewriteEngine On\nRewriteBase \/wp\nRewriteRule ^index.php$ - [L]\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule . \/wp\/index.php [L]\n&lt;\/IfModule&gt;<\/pre>\n\n\u820a\u7db2\u7ad9Wiki\u4e5f\u642c\u79fb\u5b8c\u7562\uff01\nhttp:\/\/www.fgchen.com\/wiki\n\u4e0b\u95dc\u9375\u5b57\uff1acpanel performance tuning\u627e\u5230\u4e00\u5806\u6548\u80fd\u8abf\u6574\u6587\u7ae0\uff0c\u78ba\u6709\u6210\u6548\uff01","protected":false},"excerpt":{"rendered":"<p>2018\/2\/16 (\u8fb2\u66c6\u6625\u7bc01\/1) \u5fc3\u8840\u4f86\u6f6e\uff0c\u5c07Wordpress\u5f9e\u4e00\u53f0\u4e3b\u6a5f &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[256,266],"tags":[],"class_list":["post-12104","post","type-post","status-publish","format-standard","hentry","category-256","category-266"],"_links":{"self":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts\/12104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/comments?post=12104"}],"version-history":[{"count":1,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts\/12104\/revisions"}],"predecessor-version":[{"id":13783,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/posts\/12104\/revisions\/13783"}],"wp:attachment":[{"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/media?parent=12104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/categories?post=12104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fgchen.com\/wpedu\/wp-json\/wp\/v2\/tags?post=12104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}