{"id":270,"date":"2024-05-05T09:59:57","date_gmt":"2024-05-05T01:59:57","guid":{"rendered":"https:\/\/www.ixriver.com\/?p=270"},"modified":"2024-05-05T10:08:56","modified_gmt":"2024-05-05T02:08:56","slug":"%e5%bf%ab%e9%80%9f%e6%81%a2%e5%a4%8dwordpress%e7%bd%91%e7%ab%99","status":"publish","type":"post","link":"https:\/\/finance.ixriver.com\/?p=270","title":{"rendered":"\u5feb\u901f\u6062\u590dwordpress\u7f51\u7ad9"},"content":{"rendered":"\n<p>\u4eceBT\u4e0a\u9762\u4e0b\u8f7d\u5907\u4efd\u7684\u7f51\u7ad9\u548c\u5907\u4efd\u7684\u6570\u636e\u5e93\u6587\u4ef6<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_65 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/finance.ixriver.com\/?p=270\/#%E4%B8%80_%E7%BD%91%E7%AB%99%E6%81%A2%E5%A4%8D\" title=\"\u4e00 \u7f51\u7ad9\u6062\u590d\">\u4e00 \u7f51\u7ad9\u6062\u590d<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/finance.ixriver.com\/?p=270\/#%E4%BA%8C_%E6%81%A2%E5%A4%8D%E6%95%B0%E6%8D%AE%E5%BA%93\" title=\"\u4e8c \u6062\u590d\u6570\u636e\u5e93\">\u4e8c \u6062\u590d\u6570\u636e\u5e93<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%B8%80_%E7%BD%91%E7%AB%99%E6%81%A2%E5%A4%8D\"><\/span>\u4e00 \u7f51\u7ad9\u6062\u590d<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>1.\u67e5\u770b\u7f51\u7ad9\u6587\u4ef6\u5b58\u653e\u4f4d\u7f6e\uff0c\/usr\/local\/lighthouse\/softwares\/wordpress<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/www\/server\/panel\/vhost\/nginx\/wordpress.local.conf<\/code><\/pre>\n\n\n\n<ol>\n<li><\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \u627e\u5230wordpress\u7684ngix \u914d\u7f6e\uff0c\u5e76\u663e\u793a\u91cc\u9762\u7684\u5185\u5bb9\n\nserver {\n    listen 80 default_server;\n    server_tokens off;\n    server_name wordpress.local;\n    keepalive_timeout 5;\n    client_max_body_size 50m;\n    root \/usr\/local\/lighthouse\/softwares\/wordpress;\n}<\/code><\/pre>\n\n\n\n<p>2.\u8df3\u5230\u76ee\u5f55 \/usr\/local\/lighthouse\/softwares\/\uff0c\u5e76\u7528rz -bye \u4e0a\u4f20\u7f51\u7ad9\u5907\u4efd\u6570\u636e\uff0c\u6bd4\u5982web_wordpress.local_20240503_013001_XxMoCV.tar.gz<br>3.\u505c\u6b62nginx \u670d\u52a1\u5668 systemctl stop nginx\uff0c\u5e76\u5907\u4efd\u539f\u5148\u7684\u7f51\u7ad9\u6570\u636emv wordpress wordpress_bak<br>4.tar -xvf \u89e3\u538b\u7f51\u7ad9\u5907\u4efd\u6570\u636e\uff0c\u5e76\u542f\u52a8nginx\u670d\u52a1\u5668<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%BA%8C_%E6%81%A2%E5%A4%8D%E6%95%B0%E6%8D%AE%E5%BA%93\"><\/span>\u4e8c \u6062\u590d\u6570\u636e\u5e93<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>1.\u4f7f\u7528rz -bye \u4e0a\u4f20\u5907\u4efd\u7684\u6570\u636e\u5e93\u6587\u4ef6<br>2.\u767b\u9646\u670d\u52a1\u5668\uff0c\u5e76\u94fe\u63a5mysql<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u wordpress -p<\/code><\/pre>\n\n\n\n<p>3.\u5207\u6362\u5230wordpress\u5bf9\u5e94\u7684\u6570\u636e\u5e93<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>show databases; \/\/ \u67e5\u770b\u6709\u90a3\u4e9b\u6570\u636e\u5e93\nuse wordpress; \/\/ \u5207\u6362\u5230wordpress\u6570\u636e\u5e93<\/code><\/pre>\n\n\n\n<p>4.\u6062\u590d\u6570\u636e\u5e93<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>source \/path\/to\/your\/backup\/file.sql \/\/ \u6062\u590d\u6570\u636e\u5e93<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4eceBT\u4e0a\u9762\u4e0b\u8f7d\u5907\u4efd\u7684\u7f51\u7ad9\u548c\u5907\u4efd\u7684\u6570\u636e\u5e93\u6587\u4ef6 \u4e00 \u7f51\u7ad9\u6062\u590d 1.\u67e5\u770b\u7f51\u7ad9\u6587\u4ef6\u5b58\u653e\u4f4d\u7f6e\uff0c\/usr\/local\/li [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"blocksy_meta":[],"featured_image_urls":{"full":"","thumbnail":"","medium":"","medium_large":"","large":"","1536x1536":"","2048x2048":""},"post_excerpt_stackable":"<p>\u4eceBT\u4e0a\u9762\u4e0b\u8f7d\u5907\u4efd\u7684\u7f51\u7ad9\u548c\u5907\u4efd\u7684\u6570\u636e\u5e93\u6587\u4ef6 \u76ee\u5f55 Toggle \u4e00 \u7f51\u7ad9\u6062\u590d\u4e8c \u6062\u590d\u6570\u636e\u5e93 \u4e00 \u7f51\u7ad9\u6062\u590d 1.\u67e5\u770b\u7f51\u7ad9\u6587\u4ef6\u5b58\u653e\u4f4d\u7f6e\uff0c\/usr\/local\/lighthouse\/softwares\/wo&hellip;<\/p>\n","category_list":"<a href=\"https:\/\/finance.ixriver.com\/?cat=4\" rel=\"category\">\u5efa\u7ad9<\/a>","author_info":{"name":"admin","url":"https:\/\/finance.ixriver.com\/?author=1"},"comments_num":"0 comments","_links":{"self":[{"href":"https:\/\/finance.ixriver.com\/index.php?rest_route=\/wp\/v2\/posts\/270"}],"collection":[{"href":"https:\/\/finance.ixriver.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/finance.ixriver.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/finance.ixriver.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/finance.ixriver.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=270"}],"version-history":[{"count":7,"href":"https:\/\/finance.ixriver.com\/index.php?rest_route=\/wp\/v2\/posts\/270\/revisions"}],"predecessor-version":[{"id":281,"href":"https:\/\/finance.ixriver.com\/index.php?rest_route=\/wp\/v2\/posts\/270\/revisions\/281"}],"wp:attachment":[{"href":"https:\/\/finance.ixriver.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/finance.ixriver.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/finance.ixriver.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}