Home  >  Q&A  >  body text

centos - 阿里云如何ghost博客程序的数据库迁移到数据盘上

刚买阿里云主机,装得是centos的系统,同时挂载了一块数据盘。

刚装了个ghost的博客程序,但是现在ghost的数据库默认是装在我的系统盘上,我想把这个数据库迁移到数据盘上。

我需要打什么指令才能迁移数据库呢?同时不影响现在网站。

怪我咯怪我咯2734 days ago1104

reply all(1)I'll reply

  • 阿神

    阿神2017-04-24 16:02:08

    You can try to learn the ln -s command
    For example:
    cd /home
    mv wwwroot /data
    ln -s /data/wwwroot #Create a soft link

    reply
    0
  • Cancelreply