centos - 阿里云如何ghost博客程序的数据库迁移到数据盘上
怪我咯
怪我咯 2017-04-24 16:00:08
0
1
1090

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

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

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

怪我咯
怪我咯

走同样的路,发现不同的人生

Antworte allen(1)
阿神

你可以尝试学习一下ln -s命令
例如:
cd /home
mv wwwroot /data
ln -s /data/wwwroot #建立一个软链接

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!