{"id":251,"date":"2025-07-05T14:03:18","date_gmt":"2025-07-05T14:03:18","guid":{"rendered":"http:\/\/www.luluck.com\/?p=251"},"modified":"2025-07-05T14:08:20","modified_gmt":"2025-07-05T14:08:20","slug":"vps%e8%bf%81%e7%a7%bb%e8%bf%87%e7%a8%8b%e8%ae%b0%e5%bd%95","status":"publish","type":"post","link":"http:\/\/www.luluck.com\/index.php\/2025\/07\/05\/vps%e8%bf%81%e7%a7%bb%e8%bf%87%e7%a8%8b%e8%ae%b0%e5%bd%95\/","title":{"rendered":"VPS\u8fc1\u79fb\u8fc7\u7a0b\u8bb0\u5f55"},"content":{"rendered":"\n<p>\u5669\u8017\u603b\u662f\u63a5\u8e35\u800c\u6765\uff0c\u524d\u51e0\u5929\u624b\u673a\u788e\u5c4f\uff0c\u5fd9\u4e86\u4e00\u4e2a\u665a\u4e0a\u624d\u5c06\u8001\u624b\u673a\u5185\u7684app\u6570\u636e\u5012\u5230\u65b0\u624b\u673a\u4e0a\uff0c\u53c8\u63a5\u5230racknerd\u90ae\u4ef6\uff1a\u2026\u2026..datacenter location experienced a significant incident caused by a building-wide cooling failure\u2026\u2026. &nbsp;<strong>Please make arrangements to migrate any important data from your old server to the new server within 5 days.&nbsp;<\/strong><\/p>\n\n\n\n<p>\u8fd9\u5bb6\u771f\u662f\u4fbf\u5b9c\u4e0d\u597d\u7528\uff0c\u4e24\u5e74\u524d\u662f\u76f4\u63a5\u6302\u6389\uff0c\u8fd9\u6b21\u7ec8\u4e8e\u957f\u8fdb\u4e86\u70b9\uff0c\u81f3\u5c11\u8fd8\u7ed9\u4f60\u8f6c\u79fb\u6570\u636e\u7684\u673a\u4f1a\uff0c\u8d76\u9e2d\u5b50\u4e0a\u67b6\u7b2c\u4e00\u6b21\u5012VPS\u6570\u636e\uff0c\u7279\u6b64\u8bb0\u5f55\u4e00\u4e0b\u8fc7\u7a0b\u3002<\/p>\n\n\n\n<p>1\u3001\u76ee\u6807vps\u5b89\u88c5\u4e0e\u6e90vps\u76f8\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u800c\u4e14OS\u7248\u672c\u4e00\u81f4\u3002\u6211\u7684\u662fdebian11\uff0c\u6ce8\u610f\u8bb0\u5f55\u597droot\u5bc6\u7801\u3002<\/p>\n\n\n\n<p>2\u4e24\u53f0vps\u4e0a\u5b89\u88c5rsync\u3002\u4ee5root\u767b\u5f55\uff0c\u6267\u884c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt-get update &amp;&amp; apt-get install rsync -y<\/code><\/pre>\n\n\n\n<p>3\u3001\u521b\u5efa\u6392\u9664\u6e05\u5355\u3002\u6e05\u5355\u4f18\u5316\u4e86\u8fc1\u79fb\u8fc7\u7a0b\uff0c\u6392\u9664\u4e00\u4e9b\u4e0d\u9700\u8981\u8f6c\u79fb\u7684\u76ee\u5f55\u53ca\u6587\u4ef6\u3002<\/p>\n\n\n\n<p>\u5728\u6e90vps\u4e0a\u521b\u5efa\u6392\u9664\u6587\u672c\u6587\u4ef6<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/root\/excludedfiles.txt<\/code><\/pre>\n\n\n\n<p>\u5c06\u4ee5\u4e0b\u5185\u5bb9\u5199\u5165\u6587\u4ef6<\/p>\n\n\n\n<blockquote class=\"wp-block-quote has-small-font-size\">\n<p>\/etc\/fstab<\/p>\n\n\n\n<p>\/etc\/sysconfig\/network-scripts\/*<\/p>\n\n\n\n<p>\/etc\/systemd\/network\/*<\/p>\n\n\n\n<p>\/etc\/network\/*<\/p>\n\n\n\n<p>\/etc\/netplan\/*<\/p>\n\n\n\n<p>\/etc\/NetworkManager\/*<\/p>\n\n\n\n<p>\/etc\/resolv.conf<\/p>\n\n\n\n<p>\/etc\/hostname<\/p>\n\n\n\n<p>\/etc\/hosts<\/p>\n\n\n\n<p>\/etc\/machine-id<\/p>\n\n\n\n<p>\/var\/lib\/dbus\/machine-id<\/p>\n\n\n\n<p>\/proc\/*<\/p>\n\n\n\n<p>\/tmp\/*<\/p>\n\n\n\n<p>\/sys\/*<\/p>\n\n\n\n<p>\/dev\/*<\/p>\n\n\n\n<p>\/mnt\/*<\/p>\n\n\n\n<p>\/boot\/*<\/p>\n\n\n\n<p>\/boot\/grub\/*<\/p>\n\n\n\n<p>\/etc\/default\/*<\/p>\n\n\n\n<p>\/run\/*<\/p>\n\n\n\n<p>\/var\/run\/*<\/p>\n\n\n\n<p>\/var\/lock\/*<\/p>\n\n\n\n<p>\/media\/*<\/p>\n\n\n\n<p>\/lost+found<\/p>\n\n\n\n<p>\/swapfile<\/p>\n\n\n\n<p>\/swap.img<\/p>\n\n\n\n<p>\/var\/lib\/rpm\/*<\/p>\n\n\n\n<p>\/var\/lib\/yum\/*<\/p>\n\n\n\n<p>\/etc\/sysconfig\/iptables<\/p>\n\n\n\n<p>\/etc\/iptables\/rules.v4<\/p>\n\n\n\n<p>\/etc\/iptables.rules<\/p>\n\n\n\n<p>\/var\/lib\/iptables\/rules-save<\/p>\n\n\n\n<p>\/etc\/ssh\/*<\/p>\n\n\n\n<p>\/var\/crash\/*<\/p>\n\n\n\n<p>\/var\/log\/*\/*<\/p>\n\n\n\n<p>\/var\/cache\/apt\/*<\/p>\n\n\n\n<p>\/var\/lib\/apt\/lists\/*<\/p>\n\n\n\n<p>\/var\/lib\/cloud\/*<\/p>\n\n\n\n<p>\/sys\/class\/dmi\/id\/product_uuid<\/p>\n\n\n\n<p>\/etc\/udev\/*<\/p>\n\n\n\n<p>\/lib\/modules\/*<\/p>\n\n\n\n<p>\/lib\/firmware\/*<\/p>\n\n\n\n<p>\/lib64\/modules\/*<\/p>\n\n\n\n<p>\/lib64\/firmware\/*<\/p>\n<\/blockquote>\n\n\n\n<p>4\u3001\u8fc1\u79fb\u7cfb\u7edf<\/p>\n\n\n\n<p>\u4ee5root\u767b\u5f55\u6e90vps\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>rsync -vPa -e 'ssh -p 22 -o StrictHostKeyChecking=no' --exclude-from=\/root\/excludedfiles.txt \/ root@REMOTE-IP-OF-THE-NEW-SERVER:\/<\/code><\/pre>\n\n\n\n<p>\u6ce8\u610f\u5c06REMOTE-IP-OF-THE-NEW-SERVER\u66ff\u6362\u4e3a\u76ee\u6807vps\u7684IP<\/p>\n\n\n\n<p>\u6267\u884c\u8fc7\u7a0b\u4e2d\u4f1a\u63d0\u793a\u8f93\u5165\u76ee\u6807vps\u7684root\u5bc6\u7801<\/p>\n\n\n\n<p>5\u3001\u8fc1\u79fb\u5b8c\u6210\u540e\uff0c\u5173\u95ed\u6e90vps\uff0c\u91cd\u542f\u76ee\u6807vps\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f\u8fd9\u6b65\u5b8c\u6210\u540e\uff0c\u76ee\u6807vps\u7684root\u5bc6\u7801\u5df2\u7ecf\u88ab\u6e90vps\u7684root\u5bc6\u7801\u66ff\u4ee3\u4e86\u3002<\/p>\n\n\n\n<p>6\u3001\u66f4\u65b0DNS\u7684\u57df\u540dIP\u3002<\/p>\n\n\n\n<p>7\u3001\u68c0\u67e5\u4e00\u4e0b\u914d\u7f6e\u6587\u4ef6\u4e2d\u6709\u6ca1\u6709\u6d89\u53caIP\u7684\u5185\u5bb9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5669\u8017\u603b\u662f\u63a5\u8e35\u800c\u6765\uff0c\u524d\u51e0\u5929\u624b\u673a\u788e\u5c4f\uff0c\u5fd9\u4e86\u4e00\u4e2a\u665a\u4e0a\u624d\u5c06\u8001\u624b\u673a\u5185\u7684app\u6570\u636e\u5012\u5230\u65b0\u624b\u673a\u4e0a\uff0c\u53c8\u63a5\u5230rackn&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[24,25],"_links":{"self":[{"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/posts\/251"}],"collection":[{"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/comments?post=251"}],"version-history":[{"count":3,"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/posts\/251\/revisions"}],"predecessor-version":[{"id":254,"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/posts\/251\/revisions\/254"}],"wp:attachment":[{"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/media?parent=251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/categories?post=251"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.luluck.com\/index.php\/wp-json\/wp\/v2\/tags?post=251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}