两个Linux VPS之间网站以及MYSQL数据的备份与恢复(网站迁移教程)

vpsroll 13年前
     <p style="line-height:11pt;text-indent:9pt;mso-char-indent-count:1.0;" class="MsoNormal"><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">相信现在随便问一个站长,我想</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">10</span><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">个当中最少有</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">4-5</span><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">个人手里都有</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">VPS</span><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">主机吧?然而,对于我们刚接<br /> </span><span style="line-height:11pt;background-color:white;font-family:微软雅黑, sans-serif;color:#333333;font-size:9pt;background-origin:initial;background-clip:initial;"><br /> <br /> 触的人来说,根本就好像面对“天书”一样,让你无处入手。我也是好不容易学会了如何分辨</span><span style="line-height:11pt;background-color:white;font-family:Arial, sans-serif;color:#333333;font-size:9pt;background-origin:initial;background-clip:initial;" lang="EN-US">VPS</span><span style="line-height:11pt;background-color:white;font-family:微软雅黑, sans-serif;color:#333333;font-size:9pt;background-origin:initial;background-clip:initial;">的配</span></p>    <p style="line-height:11pt;" class="MsoNormal"><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;"><br /> 置以及一些测试方法。却又遇到了</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">VPS</span><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">转移的问题。由于,手里的</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">VPS</span><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">多了,好几个的站点也不断的要</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">      <!--?xml:namespace prefix = o /-->      <o:p></o:p></span></p>    <p style="line-height:11pt;" class="MsoNormal"><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;"><br /> 转移。如果单单是一两个小数据的话还没什么难的,用土方法:用</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">FTP</span><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">下载到本地再上传。</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">MYSQL</span><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">数据</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:11pt;" class="MsoNormal"><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;"><br /> 库方面:就用</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">PHPMYADMIN</span><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;">导出以及导入到另外一个</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">VPS</span><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">上面。但是,有没有发现这个也很耗时间?</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:11pt;" class="MsoNormal"><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;"><br /> 而且如果你面对</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">MYSQL</span><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">数据库超过几百兆或者上千兆的话。我不觉得有什么快的或者好的方法将数据库</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:11pt;" class="MsoNormal"><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US"><br /> MYSQL</span><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">导入到另外一个服务器上。本人也尝试过了“帝国数据库备份”跟国外的“</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">BigDump</span><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">”两个程序</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:11pt;" class="MsoNormal"><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;"><br /> 导入。但是发现很容易出错。这样来回又耗时间又浪费精力。于是,只能找最原始的方法,那就是在服务</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:11pt;" class="MsoNormal"><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;"><br /> 器中运用命令来备份跟数据转移。但是,网络上很多大侠跟前辈们写的教程对于我们初学者来说根本就是</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:11pt;" class="MsoNormal"><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;"><br /> 天书,有的大侠们甚至只写出了命令。其他连介绍都没有,这让我们如何是好?估计只有写那些教程的跟</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:11pt;" class="MsoNormal"><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;"><br /> 那些老手们才知道当中的意思。(这里我只谈</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">LINUX VPS</span><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;">,本人没有玩过</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">WINDOWS</span><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">的服务器。本文也</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:11pt;" class="MsoNormal"><span style="font-family:'微软雅黑','sans-serif';background:white;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;"><br /> 是总结了一下网络上大侠们的方法,本人只是更加详细,不想让跟我一样的初学者们走弯路)</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">1</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">:</span><span lang="EN-US"><a title="网站程序打包" href="/misc/goto?guid=4959500808135517372"><span style="font-family:宋体;color:#448844;font-size:9pt;text-decoration:none;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;mso-bidi-font-size:11.0pt;text-underline:none;" lang="EN-US"><span lang="EN-US">网站程序打包</span></span><span style="font-family:'Arial','sans-serif';color:#448844;font-size:9pt;text-decoration:none;mso-fareast-font-family:宋体;mso-bidi-font-size:11.0pt;text-underline:none;" lang="EN-US"><span lang="EN-US"> </span></span><span style="font-family:宋体;color:#448844;font-size:9pt;text-decoration:none;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;mso-bidi-font-size:11.0pt;text-underline:none;" lang="EN-US"><span lang="EN-US">(备份)</span></span></a></span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;mso-bidi-font-size:11.0pt;" lang="EN-US"> </span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">2</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">:</span><span lang="EN-US"><a title="网站程序恢复" href="/misc/goto?guid=4959500808221956358"><span style="font-family:宋体;color:#448844;font-size:9pt;text-decoration:none;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;mso-bidi-font-size:11.0pt;text-underline:none;" lang="EN-US"><span lang="EN-US">网站程序转移(恢复)</span></span></a></span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;layout-grid-mode:both;margin-bottom:0pt;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">1.</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">网站程序打包</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;"> </span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">(备份)</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:#5e6f33;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">一般</span><span style="font-family:'arial','sans-serif';color:#5e6f33;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">LINUX VPS</span><span style="font-family:宋体;color:#5e6f33;font-size:9pt;mso-ascii-font-family:arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;">现在的安装包下面建立的站点的时候。我们通常都是以域名来设置文件目录。<br /> <br /> 由于我早期的</span><span style="font-family:'Arial','sans-serif';color:#5e6f33;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">VPS</span><span style="font-family:宋体;color:#5e6f33;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">是安装</span><span lang="EN-US"><a href="/misc/goto?guid=4959500808314851205" target="_blank"><span style="font-family:'Arial','sans-serif';color:#448844;font-size:9pt;text-decoration:none;mso-fareast-font-family:宋体;mso-bidi-font-size:11.0pt;text-underline:none;">Directadmin</span></a></span><span style="font-family:宋体;color:#5e6f33;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">安装包(</span><b><span style="font-family:'Arial','sans-serif';color:#5e6f33;font-size:9pt;mso-fareast-font-family:宋体;mso-bidi-font-size:11.0pt;" lang="EN-US">VPS1</span></b><span style="font-family:宋体;color:#5e6f33;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">)。所以这边举的例子的目录因为你安装包不同的原因而文件夹路径不同:</span><span style="font-family:'Arial','sans-serif';color:#5e6f33;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">首先,打开</span><b><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">VPS1</span></b><b><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">。</span></b><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">我输入命令:</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">cd /home/admin/domains/www.vpsroll.com (</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">因为安装包的原因,我只</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">能把网站打包在这个目录,因为到时候转移到另外</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">VPS</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">的时候需要可以访问的网址。</span><span style="font-family:宋体;color:maroon;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;">如果是</span><span style="font-family:'Arial','sans-serif';color:maroon;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">LNMP</span><span style="font-family:宋体;color:maroon;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">的话,</span><span style="font-family:'arial','sans-serif';color:maroon;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:maroon;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">命令是</span><span style="font-family:'arial','sans-serif';color:maroon;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">: cd /home/wwwroot/</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">)      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">我的域名目录是:</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">/home/admin/domains/www.vpsroll.com  (</span><span style="font-family:宋体;color:#660033;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;">如果你是安装</span><span style="font-family:'Arial','sans-serif';color:#660033;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">LNMP</span><span style="font-family:宋体;color:#660033;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">那么目录应该是:</span><span style="font-family:'arial','sans-serif';color:#660033;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">/home/wwwroot/www.vpsroll.com</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">)      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">那么我在</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">SSH</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">里面输入:</span><b><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;mso-bidi-font-size:11.0pt;" lang="EN-US">tar -zcvf  vpsroll.com.tar.gz  /home/admin/domains/www.vpsroll.com</span></b><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">(LNMP</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">中的话:</span><b><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;mso-bidi-font-size:11.0pt;" lang="EN-US">tar -zcvf  vpsroll.com.tar.gz  /home/wwwroot/www.vpsroll.com</span></b><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">)      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">也就是将</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US"> </span><b><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;mso-bidi-font-size:11.0pt;" lang="EN-US">/home/admin/domains/www.vpsroll.com </span></b><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">这个目录下的档案全部打包并压缩成为一个</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">www.vpsroll.com.tar.gz </span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">的档案</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US"> (</span><span lang="EN-US"><a href="/misc/goto?guid=4959500808385188733"><span style="font-family:'Arial','sans-serif';color:#448844;font-size:9pt;text-decoration:none;mso-fareast-font-family:宋体;mso-bidi-font-size:11.0pt;text-underline:none;">linux VPS</span><span style="font-family:宋体;color:#448844;font-size:9pt;text-decoration:none;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;mso-bidi-font-size:11.0pt;text-underline:none;" lang="EN-US"><span lang="EN-US">中压缩文件(文件夹)的命令总结</span></span></a></span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">)</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">。</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;layout-grid-mode:both;margin-bottom:0pt;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">2.</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">网站程序转移</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;"> </span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">(恢复)</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">接着,由于我的另外一个</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">VPS</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">(</span><b><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;mso-bidi-font-size:11.0pt;" lang="EN-US">VPS2</span></b><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">)安装包是</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">LNMP</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">,所以</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">SSH</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">连接后。</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">我输入命令:</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">cd /home/wwwroot/</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;">回车</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">然后,</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">            wget http://vpsroll.com/vpsroll.com/tar.gz </span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;">(</span><span style="font-family:宋体;color:maroon;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;">如果是</span><span style="font-family:'Arial','sans-serif';color:maroon;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">LNMP</span><span style="font-family:宋体;color:maroon;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">的话是</span><span style="font-family:'arial','sans-serif';color:maroon;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US"> http://ip</span><span style="font-family:宋体;color:maroon;font-size:9pt;mso-ascii-font-family:arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;">地址</span><span style="font-family:'Arial','sans-serif';color:maroon;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">/vpsroll.com/tar.gz</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US"> </span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">)</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><b><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;mso-bidi-font-size:11.0pt;" lang="EN-US">tar -zxvf vpsroll.com.tar.gz</span></b><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US"> </span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">网站目录(如</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">/home/wwwroot/</span><span style="font-family:'Arial','sans-serif';color:#0070c0;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">www.vpsroll.com</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;">)</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">这样网站就成功转移了网站程序到新的</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">VPS</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">里面。</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;layout-grid-mode:both;margin-bottom:0pt;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:#c31b00;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">如果你的</span><span style="font-family:'Arial','sans-serif';color:#c31b00;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">MYSQL</span><span style="font-family:宋体;color:#c31b00;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">数据库不大的话</span><span style="font-family:'arial','sans-serif';color:#c31b00;font-size:9pt;mso-fareast-font-family:宋体;"> </span><span style="font-family:宋体;color:#c31b00;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">无需这样恢复数据。直接从</span><span style="font-family:'Arial','sans-serif';color:#c31b00;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">PHPMYADMIN</span><span style="font-family:宋体;color:#c31b00;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">那边导入就行了。</span><span style="font-family:'arial','sans-serif';color:#c31b00;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">3</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">:</span><span lang="EN-US"><a title="MYSQL数据库备份" href="/misc/goto?guid=4959500808473031804"><span style="font-family:'Arial','sans-serif';color:#448844;font-size:9pt;text-decoration:none;mso-fareast-font-family:宋体;mso-bidi-font-size:11.0pt;text-underline:none;">MYSQL</span><span style="font-family:宋体;color:#448844;font-size:9pt;text-decoration:none;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;mso-bidi-font-size:11.0pt;text-underline:none;" lang="EN-US"><span lang="EN-US">数据库打包(备份)</span></span></a></span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;mso-bidi-font-size:11.0pt;" lang="EN-US"> </span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">4</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">:</span><span lang="EN-US"><a title="MYSQL数据库恢复" href="/misc/goto?guid=4959500808567677768"><span style="font-family:'Arial','sans-serif';color:#448844;font-size:9pt;text-decoration:none;mso-fareast-font-family:宋体;mso-bidi-font-size:11.0pt;text-underline:none;">MYSQL</span><span style="font-family:宋体;color:#448844;font-size:9pt;text-decoration:none;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;mso-bidi-font-size:11.0pt;text-underline:none;" lang="EN-US"><span lang="EN-US">数据库转移(恢复)</span></span></a></span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;layout-grid-mode:both;margin-bottom:0pt;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">MYSQL</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">数据库打包(备份)</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:#5e6f33;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">在</span><b><span style="font-family:'Arial','sans-serif';color:#5e6f33;font-size:9pt;mso-fareast-font-family:宋体;mso-bidi-font-size:11.0pt;" lang="EN-US">VPS1</span></b><span style="font-family:宋体;color:#5e6f33;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">中找到你的</span><span style="font-family:'arial','sans-serif';color:#5e6f33;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">MYSQL</span><span style="font-family:宋体;color:#5e6f33;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">文件目录。如果不知道在哪里的话可以在</span><span style="font-family:'Arial','sans-serif';color:#5e6f33;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">SSH</span><span style="font-family:宋体;color:#5e6f33;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">使用命令:</span><span style="font-family:'arial','sans-serif';color:#5e6f33;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:'arial','sans-serif';color:#0070c0;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">whereis mysql</span><span style="font-family:宋体;color:#0070c0;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">或者</span><span style="font-family:'Arial','sans-serif';color:#0070c0;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US"> find mysql</span><span style="font-family:宋体;color:#5e6f33;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">来查找。</span><span style="font-family:'arial','sans-serif';color:#5e6f33;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:#5e6f33;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">一般会列出好几个文件夹目录。然后再用</span><span style="font-family:'Arial','sans-serif';color:#5e6f33;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">FLASHFXP</span><span style="font-family:宋体;color:#5e6f33;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">的</span><span style="font-family:'arial','sans-serif';color:#5e6f33;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">SSH</span><span style="font-family:宋体;color:#5e6f33;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">连接。一个个的文件夹查找过去。我这边找到的是在</span><span style="font-family:'Arial','sans-serif';color:#5e6f33;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">/var/lib/mysql/      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">输入命令:</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">cd /home/admin/domains/www.vpsroll.com </span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;">回车:(如果你是</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">LNMP</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">安装包的话那么</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;"> </span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">输入:</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">cd /home/wwwroot/</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;">)</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">然后:</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">mysqldump -u </span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;">数据库用户名</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US"> -p </span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">数据库名</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US"> > </span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;">任意名称</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">.sql </span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">(</span><span style="font-family:宋体;color:maroon;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">注意:会提示你输入数据库的密码</span><span style="font-family:'arial','sans-serif';color:maroon;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">.</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">我这边会生成</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">:http://www.vpsroll.com/</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">任意名称</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">.sql      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:maroon;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">如果是</span><span style="font-family:'arial','sans-serif';color:maroon;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">LNMP</span><span style="font-family:宋体;color:maroon;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">的</span><span style="font-family:'Arial','sans-serif';color:maroon;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">VPS</span><span style="font-family:宋体;color:maroon;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">的话那么会生成</span><span style="font-family:'arial','sans-serif';color:maroon;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">:http://</span><span style="font-family:宋体;color:maroon;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">你的</span><span style="font-family:'Arial','sans-serif';color:maroon;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">vps</span><span style="font-family:宋体;color:maroon;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">的</span><span style="font-family:'arial','sans-serif';color:maroon;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">IP/</span><span style="font-family:宋体;color:maroon;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">任意名称</span><span style="font-family:'Arial','sans-serif';color:maroon;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">.sql</span><span style="font-family:'arial','sans-serif';color:maroon;font-size:9pt;mso-fareast-font-family:宋体;mso-bidi-font-size:11.0pt;" lang="EN-US"> </span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">这些地址是给</span><b><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;mso-bidi-font-size:11.0pt;" lang="EN-US">VPS2</span></b><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">用的)</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;layout-grid-mode:both;margin-bottom:0pt;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">MYSQL</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">数据库转移(恢复)</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">打开</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;mso-bidi-font-size:11.0pt;" lang="EN-US"> <b>VPS2</b></span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">输入:</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">cd /home/wwwroot/      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">wget http://www.vpsroll.com/</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">任意名称</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">.sql</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">(在</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">VPS1</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">中所备份的到的地址)</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:16.5pt;margin:7.5pt 0cm;layout-grid-mode:both;background:white;mso-layout-grid-align:auto;" class="MsoNormal"><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">mysql -u </span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">你的用户名</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US"> -p </span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">数据库名</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US"> < </span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;">任意名称</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">.sql </span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">(</span><span style="font-family:宋体;color:maroon;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">会提示输入密码</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">。任意名称</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">.sql</span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:arial;mso-bidi-font-family:Arial;">是指:</span><span style="font-family:'Arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">VPS1 </span><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:arial;">中你备份的数据库文件名)</span><span style="font-family:'arial','sans-serif';color:#333333;font-size:9pt;mso-fareast-font-family:宋体;" lang="EN-US">      <o:p></o:p></span></p>    <p style="line-height:11pt;" class="MsoNormal"><span style="font-family:宋体;color:#333333;font-size:9pt;mso-ascii-font-family:Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;">希望对跟我一样是初学者们有所帮助。</span><span style="font-family:'arial','sans-serif';background:white;color:#333333;font-size:9pt;" lang="EN-US">      <o:p></o:p></span></p>