{"id":2917,"date":"2017-06-11T20:50:58","date_gmt":"2017-06-11T12:50:58","guid":{"rendered":"http:\/\/www.systemsci.org\/jinshanw\/?p=2917"},"modified":"2017-06-11T20:51:20","modified_gmt":"2017-06-11T12:51:20","slug":"wordpress%e8%bf%81%e7%a7%bb","status":"publish","type":"post","link":"https:\/\/www.systemsci.org\/jinshanw\/2017\/06\/11\/wordpress%e8%bf%81%e7%a7%bb\/","title":{"rendered":"wordpress\u8fc1\u79fb"},"content":{"rendered":"<p>\u7f51\u7ad9\u4e0a\u6709\u5404\u79cd\u5de5\u5177\u5b9e\u73b0wordpress\u7684\u81ea\u52a8\u8fc1\u79fb\u3002\u4f46\u662f\uff0c\u5bf9\u4e8e\u591a\u7528\u6237\u535a\u5ba2\u7fa4\uff0c\u8fd9\u4e9b\u5de5\u5177\u90fd\u4e0d\u662f\u5f88\u597d\u7528\u3002\u5176\u5b9e\uff0c\u624b\u52a8\u8fc1\u79fb\u5f88\u7b80\u5355\u7684\u3002<\/p>\n<p>\u7b2c\u4e00\u6b65\uff0c\u5907\u4efd\u6e90wordpress\u7ad9\u70b9\u7684\u6570\u636e\u5e93\u6587\u4ef6\u3002\u5982\u679c\u662fmysql\uff0c\u53ea\u8981\u8fd0\u884c\uff1amysqldump &#8211;add-drop-table -h mysql_hostserver -u mysql_username -p mysql_databasename \u3002\u5176\u4e2d\u53d8\u91cf\u540dmysql_hostserver\u7b49\uff0c\u4f60\u5fc5\u987b\u77e5\u9053\u3002\u8fd9\u4e2a\u8981\u6709\u5b89\u88c5\u65f6\u5019\u7684\u4fe1\u606f\u3002\u6216\u8005\u8fdb\u5165mysql\u6570\u636e\u5e93\u91cc\u9762\u67e5\u6570\u636e\u5e93(show databases)\u548c\u76f8\u5e94\u7684\u7528\u6237\u3002<\/p>\n<p>\u7b2c\u4e8c\u6b65\uff0c\u6253\u5305\u6e90wordpress\u7ad9\u70b9\u7684wordpress\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u3002<\/p>\n<p>\u7b2c\u4e09\u6b65\uff0c\u5728\u76ee\u6807wordpress\u7f51\u7ad9\u4e0a\u5efa\u7acb\u540c\u6837\u540d\u5b57\u548c\u540c\u6837\u7528\u6237\u8fd8\u6709\u540c\u6837\u5bc6\u7801\u7684\u6570\u636e\u5e93\u3002\u5e76\u4e14\uff0c\u5728\u5efa\u7acb\u4ee5\u540e\uff0c\u628a\u7b2c\u4e00\u6b65\u5f97\u5230\u7684\u6587\u4ef6\u4f8b\u5982 wordpress.old.sql\u91cd\u65b0\u5f15\u5165\u5230mysql\u91cc\u9762\uff0c\u901a\u8fc7\u7c7b\u4f3c\u8fd9\u6837\u7684\u547d\u4ee4\uff1amysql -h mysqlhostserver -u mysqlusername -p databasename &lt; wordpress.old.sql \u3002\u540c\u6837\u8fd9\u91cc\u7684\u53d8\u91cf\u540d\u6700\u597d\u4e0d\u8981\u53d8\u8ddf\u6e90\u4e00\u6837\u3002\u5426\u5219\uff0c\u9700\u8981\u624b\u5de5\u5728mysql\u4e0b\u9762\u4fee\u6539\u3002<\/p>\n<p>\u7b2c\u56db\u6b65\uff0c\u89e3\u538b\u7f29\u6253\u5305\u7684wordpress\u6587\u4ef6\u3002\u9700\u8981\u7684\u8bdd\uff0c\u8c03\u6574wp-config.php\u548c.htaccess\u6587\u4ef6\uff08.htaccess\u6587\u4ef6\u9700\u8981sudo a2enmod rewrite\u6765\u8fd0\u884crewrite\u6a21\u5757\uff09\u3002\u63a5\u7740\u91cd\u542fapache\u5c31\u597d\u4e86\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7f51\u7ad9\u4e0a\u6709\u5404\u79cd\u5de5\u5177\u5b9e\u73b0wordpress\u7684\u81ea\u52a8\u8fc1\u79fb\u3002\u4f46\u662f\uff0c\u5bf9\u4e8e\u591a\u7528\u6237\u535a\u5ba2\u7fa4\uff0c\u8fd9\u4e9b\u5de5\u5177\u90fd\u4e0d\u662f\u5f88\u597d\u7528\u3002\u5176\u5b9e\uff0c\u624b\u52a8\u8fc1\u79fb &hellip; <a href=\"https:\/\/www.systemsci.org\/jinshanw\/2017\/06\/11\/wordpress%e8%bf%81%e7%a7%bb\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cwordpress\u8fc1\u79fb\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[277,276],"_links":{"self":[{"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/posts\/2917"}],"collection":[{"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/comments?post=2917"}],"version-history":[{"count":1,"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/posts\/2917\/revisions"}],"predecessor-version":[{"id":2918,"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/posts\/2917\/revisions\/2918"}],"wp:attachment":[{"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/media?parent=2917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/categories?post=2917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.systemsci.org\/jinshanw\/wp-json\/wp\/v2\/tags?post=2917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}