VPS重装相关步骤记录

发布于: 2019-06-10 10:49

最近本想安装流量监控的,可是不知怎么搞的,vps不正常了,算了,为了今后的稳定,重装算了,现在记录下步骤,以备不时之需。

  第一步,备份数据

  1. 备份旧数据:

  旧数据包括四个目录,/home/ftp, /home/mysql_data, /home/pgsql_data, /home/lum_safe_files

  重装时,只要修改一下名称即可,可以修改成(使用mv命令或者winscp修改目录名称)

  /home/ftp.bak20121010, /home/mysql_data.bak20121010, /home/pgsql_data.bak20121010, /home/lum_safe_files.bak20121010

  mv /home/ftp /home/ftp.bak20131110

  mv /home/mysql_data /home/mysql_data.bak20131110

  mv /home/pgsql_data /home/pgsql_data.bak20131110

  mv /home/lum_safe_files /home/lum_safe_files.bak20131110

  第二步,重装vps的linux系统

  格式化系统盘分区(一般为C盘或/dev/xvda),其它分区数据不受影响

  等待。。。。。。14:26—–14:35

  挂载数据盘:

  首先 fdisk -l 查看是否正常 有没有激活

  df -l 看下有没有挂载

  以上两项应该都为否

  mount /dev/xvdb1 /home

  输入命令 挂载第二块数据盘

  df -l 在看是否成功

  使用 echo “/dev/xvdb1 /home ext4 defaults 0 0” >> /etc/fstab (命令写入新分区信息。 然后使用“cat /etc/fstab”命令查看

VPS重装相关步骤记录

mv /home/ftp /home/ftp.bak20131110

  mv /home/mysql_data /home/mysql_data.bak20131110

  mv /home/pgsql_data /home/pgsql_data.bak20131110

  mv /home/lum_safe_files /home/lum_safe_files.bak20131110

  开始重装面板

  wget http://down.zijidelu.org/zijidelu_install.sh; sh zijidelu_install.sh -y

  重启

  将新的/home/ftp, /home/mysql_data, /home/pgsql_data, /home/lum_safe_files目录修改名称,如

  mv /home/ftp /home/ftp.new20131110

  mv /home/mysql_data /home/mysql_data.new20131110

  mv /home/pgsql_data /home/pgsql_data.new20131110

  mv /home/lum_safe_files /home/lum_safe_files.new20131110

  ——–

  将以前备份的/home/ftp.bak20131110, /home/mysql_data.bak20131110, /home/pgsql_data.bak20131110, /home/lum_safe_files.bak20131110修改成原来的名称,也就是去掉.bak20131110,然后重启lu(lu-restart)

  登陆后台,编辑一下激活,完成就ok

  开始绑定额外IP

差不多就完成了

原文链接:,转发请注明来源!

发表评论

要发表评论,您必须先登录

  • 137 Responses to “VPS重装相关步骤记录”
    • EdwardPhymn

      generic pills for sale <a href=" https://genericwdp.com/# ">best online international pharmacies india</a>
      cheap generic drugs from india

    • Yodom58

      viagra for 35 year old what causes sudden high blood pressure viagra without prescriptions illegal <a href="https://himsprescription.com/#">best online pharmacy for viagra without a script</a> - how to get cialis from doctor https://himsprescription.com/# - cialis kao lek nys health marketplace

    • Nraidssut

      sildenafil online pharmacy <a href=https://withouthims.com>brand viagra without a doctor prescription</a> preimmenent doctor on erectile dysfunction
      can you take revatio for erectile dysfunction every day: https://withouthims.com buy viagra without prescription online

    • JbvdAniny

      tadalafil 10mg price <a href="http://tadalafilik.com/ ">tadalafil warnings</a> tadalafil no prescription

    • Fjwhprest

      online pharmacies legitimate <a href="http://pharmcanadayou.com/ ">canada drugs online</a> prescription drugs prices

    • Eobqayr

      what health insurance covers infertility acheter viagra ou cialis
      <a href="https://kamagrajellynow.com">kamagra kopen</a> Exbdj63
      https://kamagrajellynow.com kamagra translation

    • Avsfbopinnots

      ed meds <a href="http://pharmdns.com/ ">peoples pharmacy</a> longs drug store

    • EDwene

      <a href=http://www.finasteride5.com>viagra 10mg price in india</a> http://www.winviag.com

    • Kbbrboop

      where to buy cialis online <a href="http://cialcenter.com/ ">cialis vs viagra reddit</a> how to use cialis

    • Jvwxblafe

      how to take cialis <a href="http://newcialed.com/ ">cialis prescription</a> cialis doses

    • KgooIdovE

      sildenafil uses <a href="http://sildenafilaccount.com/ ">sildenafil 100mg review</a> sildenafil over the counter usa

    • Yyhj82e

      viagra newcastle az arthritis foundation viagra en kamagra <a href="https://viawithoutdctrs.com/#">viagra without a doctor prescription</a> - gde kupiti cialis https://viawithoutdctrs.com/# - precio cialis farmacias andorra what do the numbers in blood pressure mean

    • AgscAniny

      Glucophage SR <a href="http://pharmacypricesx.com/ ">diabetes</a> Seroquel

    • LabdAniny

      levitra free trial <a href="http://levitrarra.com/ ">cialis levitra</a> levitra vs cialis

    • FgsdAniny

      prices of cialis <a href="http://selectioncial.com/ ">cost of cialis 20mg</a> cialis shelf life

    • Ykejnui

      how long do i need healthcare to be exempt from obamacare tax is cialis on the pbs
      <a href="https://withoutshort.com">viagra without a doctor prescription</a> Ysphnxr
      https://withoutshort.com female viagra fda

    • ADwene

      <a href=http://www.withoutdrvisit.com>generic viagra</a> http://www.canadian2pharmacy.com

    • Oraidssut

      is sildenafil same as viagra <a href=https://www.withoutbro.com>order viagra without prescription</a> eric berg#1 cause of erectile dysfunction
      erectile dysfunction fort myers: https://www.withoutbro.com viagra online without prescription

    • Lqltotyk

      cialis 20mg le prix manufactured homes health risks cialis farmacia europea <a href="https://tadalafilkiva.com/#">tadalafil 5mg</a> - cialis en ligne avis https://tadalafilkiva.com/# - cialis product monograph how long to change health insurance if you change states

    • viagra free samples fqvaaq

      internet pharmacy <a href="http://edpharmacystore.com/">inquiry</a> generic pharmacy
      <a href=http://edpharmacystore.com/>why not try here</a>

    • JDwene

      <a href=http://www.tadalafilrembo.com>cialis</a> http://www.ycialisy.com

    • is ivermectin safe for humans

      <A HREF="https://ivermectin1st.com/">is ivermectin safe for humans</A>

    • Oamburce

      Amazing a lot of great info. <a href=https://www.kamagradr.com>kamagra 100mg oral jelly suppliers</a> kamagra 100 bijsluiter
      difference between kamagra kamagra gold: https://www.kamagradr.com kamagra jelly

    • canadameds.com ihppiz

      online pharmacies without prescription <a href="http://edpharmacystore.com/">Full Article</a> northwest canadian pharcharmy online
      <a href=http://edpharmacystore.com/>try what she says</a>

    • Awmdm91

      how much are cialis pills kamagra gel greece
      Egvus63 <a href=" https://withoutshort.com/ ">where to buy generic viagra</a>
      https://withoutshort.com viagra for sale

    • Uamburce

      You actually mentioned this superbly! <a href=https://www.kamagramama.com>kamagra online</a> kamagra sildenafil citrate wirkung
      kamagra oral jelly shelf life: https://www.kamagramama.com kamagra

    • CharlesHob

      tinder login, tinder login
      <a href=http://tinderdatingsiteus.com/?>tinder sign up </a>

    • Uamburce

      Beneficial advice. Regards. <a href=https://www.kamagradr.com>kamagra 100mg chewable tablets</a> kamagra jelly
      take kamagra oral jelly: https://www.kamagradr.com kamagra oral jelly

    • Uamburce

      Nicely voiced truly. . <a href=https://www.goldkamagra.com>kamagra</a> kamagra oral jelly
      kamagra kaufen pattaya: https://www.goldkamagra.com ajanta kamagra oral jelly

    • viagra how it works ukvlgt

      drugs of canada <a href=http://www.canada1drugstore.com/tadalafil/>cialis prices</a> viagra pharmacy
      <a href="http://www.canada1drugstore.com/tadalafil/">buy viagra internet</a> viagra sale

    • cheap celias uhsfld

      northwestpharmacy <a href="http://edpharmacystore.com/">read moreA…</a> london pharmacy canada
      <a href=http://edpharmacystore.com/>i was reading this</a>

    • Oamburce

      You have made the point. <a href=https://www.goldkamagra.com>kamagra oral jelly</a> kamagra 100 pills
      soluble kamagra: https://www.goldkamagra.com kamagra

    • Udqiuef

      inhaler uses other than asthma only getting tested on hiv 1? <a href="https://doctorkiva.com">viagra</a> hcroct Eqcz66q viagra with no rx.

    • universal drugstore lfadca

      what does viagra do <a href=http://www.canada1drugstore.com/tadalafil/>india pharmacy</a> canadian pharmacies shipping to usa
      <a href="http://www.canada1drugstore.com/tadalafil/">usa pharmacy online</a> prescription viagra online canada

    • Ipttopr

      hosuqc Lxqgh36 <a href=https://cialis20walmart.com>cialis generic</a> lifesource blood pressure monitor how to identify heart coronary disease

    • Ltpbpft

      icare health care company health insurance <a href="https://doctorkiva.com">viagra without doctor prescription</a> afn35e Ebolemv does testerone cream help with erectile dysfunction medication.

    • Nqqgywd

      eqo57b Unjqkkc <a href=https://ycialisy.com>buy cialis</a> cbd for high blood pressure how has health information management made healthcare safer