﻿{"id":133,"date":"2019-11-14T14:41:44","date_gmt":"2019-11-14T06:41:44","guid":{"rendered":"http:\/\/www.linux-dba.com\/?p=133"},"modified":"2019-11-14T14:41:44","modified_gmt":"2019-11-14T06:41:44","slug":"wordpress-%e6%b7%bb%e5%8a%a0icp%e5%a4%87%e6%a1%88","status":"publish","type":"post","link":"http:\/\/www.linux-dba.com\/index.php\/2019\/11\/133\/","title":{"rendered":"WordPress \u6dfb\u52a0ICP\u5907\u6848"},"content":{"rendered":"<p>\u53c2\u8003\uff1ahttps:\/\/blog.csdn.net\/golden_fairy\/article\/details\/40145517<\/p>\n<p>\u4e00\u3001\u7f51\u7ad9\u901a\u8fc7\u5907\u6848\u540e\uff0c\u4f1a\u5f97\u5230\u4e00\u4e2aICP\u5907\u6848\u53f7\uff0c\u5982\u672c\u7ad9\u5907\u6848\u53f7\uff1a<a href=\"http:\/\/www.beian.miit.gov.cn\/\" target=\"_blank\" rel=\"external nofollow noopener noreferrer\">\u9102ICP\u5907090042xx\u53f7-x<\/a><\/p>\n<p>\u4e8c\u3001\u6570\u636e\u5e93\u4e2d\u6dfb\u52a0\u6570\u636e<\/p>\n<ol>\n<li>\n<blockquote><p>select max(option_id) from wp_options;\u00a0 #\u67e5\u627ewp_options \u8868\u4e2d\u6700\u5927id\uff0c\u6211\u7684\u4e3a1981<\/p><\/blockquote>\n<\/li>\n<li>\n<blockquote><p>insert into wp_options ( option_id,option_name,option_value ) values(1982,&#8217;zh_cn_l10n_icp_num&#8217;,&#8217;\u9102ICP\u5907090042xx\u53f7-x&#8217;) ; #\u6570\u636e\u5e93\u4e2d\u63d2\u5165ICP\u4fe1\u606f<\/p><\/blockquote>\n<\/li>\n<li>\n<blockquote><p>select option_id,option_name from wp_options where option_name\u00a0= &#8216;zh_cn_l10n_icp_num&#8217; ;\u00a0 # \u68c0\u67e5ICP\u662f\u5426\u4fdd\u5b58\u6210\u529f<\/p><\/blockquote>\n<\/li>\n<\/ol>\n<p>\u4e09\u3001\u6253\u5f00WordPress\u7ba1\u7406\u754c\u9762==&gt;\u5916\u89c2==&gt;\u4e3b\u9898\u7f16\u8f91\u5668<\/p>\n<p>\u5728\u53f3\u4fa7\u4e3b\u9898\u6587\u4ef6\u5217\u8868\u4e2d\uff0c\u9009\u62e9footer.php\uff0c<\/p>\n<p>\u5728\u5012\u6570\u7b2c4\u4e2a\u00a0\u00a0 &lt;\/div&gt; \u524d\u9762\u63d2\u5165\u5982\u4e0b\u4ee3\u7801<\/p>\n<ol>\n<li>\n<blockquote><p>&lt;a href=&#8221;http:\/\/www.beian.miit.gov.cn\/&#8221; rel=&#8221;external nofollow&#8221; target=&#8221;_blank&#8221;&gt;&lt;?php echo get_option( &#8216;zh_cn_l10n_icp_num&#8217; );?&gt;&lt;\/a&gt;<\/p><\/blockquote>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>\u9644\uff1amysql \u53ef\u80fd\u7528\u5230\u7684\u4ee3\u7801<\/h2>\n<ol>\n<li>\n<blockquote><p>mysql -u root ;#\u767b\u5f55mysql \u6216marria \u6570\u636e\u5e93<\/p><\/blockquote>\n<\/li>\n<li>\n<blockquote><p>show databases; #\u663e\u793a\u6570\u636e\u5e93\u4e2d\u7684\u6570\u636e\u5e93\u5217\u8868<\/p><\/blockquote>\n<\/li>\n<li>\n<blockquote><p>use wordpress; #\u4f7f\u7528 wordpress \u6570\u636e\u5e93\uff0c\u6b64\u5904\u6839\u636e\u5b9e\u9645\u9700\u8981\u4fee\u6539\u4e3a\u81ea\u5df1\u8981\u4f7f\u7528\u7684\u6570\u636e\u5e93<\/p><\/blockquote>\n<\/li>\n<li>\n<blockquote><p>show tables; #\u663e\u793a\u6240\u4f7f\u7528\u7684 wordpress \u6570\u636e\u5e93\u4e2d\u7684\u8868<\/p><\/blockquote>\n<\/li>\n<li>\n<blockquote><p>desc wp_options; # \u663e\u793a wp_options \u8868\u4fe1\u606f<\/p><\/blockquote>\n<\/li>\n<li>\n<blockquote><p>select * from wp_options where option_name like &#8216;%zh_cn%&#8217; #\u68c0\u67e5\u662f\u5426\u6709ICP\u5907\u6ce8\u4fe1\u606f\u6570\u636e<\/p><\/blockquote>\n<\/li>\n<li>\n<blockquote><p>select max(option_id) from wp_options ; # \u83b7\u53d6\u6700\u5927id<\/p><\/blockquote>\n<\/li>\n<li>\n<blockquote><p>insert into wp_options ( option_id,option_name,option_value ) values(1982,&#8217;zh_cn_l10n_icp_num&#8217;,&#8217;\u9102ICP\u5907090042xx\u53f7-x&#8217;) ; #\u6570\u636e\u5e93\u4e2d\u63d2\u5165ICP\u4fe1\u606f\uff0c\u6b64\u59041982\u4e3a\u4e0a\u4e00\u884c\u6700\u5927id + 1<\/p><\/blockquote>\n<\/li>\n<li>\n<blockquote><p>select option_id,option_name from wp_options where option_name\u00a0= &#8216;zh_cn_l10n_icp_num&#8217; ;\u00a0 # \u68c0\u67e5ICP\u662f\u5426\u4fdd\u5b58\u6210\u529f<\/p><\/blockquote>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>\u9a8c\u8bc1\u73af\u5883\uff1aCentOS7 + WordPress + flat \u4e3b\u9898<\/p>\n<p>\u9a8c\u8bc1\u65f6\u95f4\uff1a2019-11-14 14:39:00<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: right;\">\u65f6\u95f4\uff1a2019-11-14 14:40:00<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53c2\u8003\uff1ahttps:\/\/blog.csdn.net\/golden_fairy\/article\/details\/4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[34],"_links":{"self":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/133"}],"collection":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/comments?post=133"}],"version-history":[{"count":0,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/posts\/133\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/media?parent=133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/categories?post=133"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.linux-dba.com\/index.php\/wp-json\/wp\/v2\/tags?post=133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}