问:这个宝塔如何把WWW目录迁移到数据盘?,这个宝塔如何把WWW目录迁移到数据盘
答:您好,
1. 非常抱歉, 该程序面板并非我司开发, 我们也不清楚如何将www目录迁移到数据盘, 建议您咨询一下宝塔官方客服;
2. 或者尝试将www移动到数据盘后做软链接到根目录看看; 但建议您单独将网站目录及数据库移动到数据盘, 然后做软链接测试看是否正常.非常感谢您长期对我司的支持!
问:软链接怎么写?有教程么?
答:您好,
1.先停止所有服务
2.将/www 移动到/home/www
mv /www /home/
3.做符号连接
ln -s /home/www /www
4.启动所有服务
,非常感谢您长期对我司的支持!
问:[@localhost www]# rm -rf www
rm: 无法删除"www/login.cloud-club.com.cn/.user.ini": 不允许的操作
用命令执行之后,原文件夹里有个文件无法删除,用rm也不行
答:您好,查看/www/www/login.cloud-club.com.cn下已经没有.user.ini,请核实下,非常感谢您长期对我司的支持!
问:[@ebs-63560 ~]# service bt stop
/etc/init.d/bt: line 15: cd: /www/server/panel: No such file or directory
Stopping Bt-Tasks… done
Stopping Bt-Panel… done
[@ebs-63560 ~]# mv /www /home/www
mv: cannot remove ‘/www/swap’: Operation not permitted
mv: cannot remove ‘/www/www/weidogsoss/.user.ini’: Operation not permitted
mv: cannot remove ‘/www/www/hbh.cloud-club.com.cn/.user.ini’: Operation not permitted
mv: cannot remove ‘/www/www/wh.cloud-club.com.cn/.user.ini’: Operation not permitted
mv: cannot remove ‘/www/www/xcx.cloud-club.com.cn/.user.ini’: Operation not permitted
mv: cannot remove ‘/www/www/test2.cloud-club.com.cn/.user.ini’: Operation not permitted
mv: cannot remove ‘/www/www/.com/.user.ini’: Operation not permitted
mv: cannot remove ‘/www/www/xhjzcl.cn/.user.ini’: Operation not permitted
mv: cannot remove ‘/www/www/jz.cloud-club.com.cn/.user.ini’: Operation not permitted
额,又有这个问题
答:您好,当前已经调整,将www目录全部移动到/home/www目录下,并做了软连接,如图:,请核实
,非常感谢您长期对我司的支持!
问:[@ebs-63560 ~]# service bt stop
/etc/init.d/bt: line 15: cd: /www/server/panel: No such file or directory
Stopping Bt-Tasks… done
Stopping Bt-Panel… done
[@ebs-63560 ~]# mv /www /home/www
mv: cannot remove ‘/www/swap’: Operation not permitted
mv: cannot remove ‘/www/www/weidogsoss/.user.ini’: Operation not permitted
mv: cannot remove ‘/www/www/hbh.cloud-club.com.cn/.user.ini’: Operation not permitted
mv: cannot remove ‘/www/www/wh.cloud-club.com.cn/.user.ini’: Operation not permitted
mv: cannot remove ‘/www/www/xcx.cloud-club.com.cn/.user.ini’: Operation not permitted
mv: cannot remove ‘/www/www/test2.cloud-club.com.cn/.user.ini’: Operation not permitted
mv: cannot remove ‘/www/www/.com/.user.ini’: Operation not permitted
mv: cannot remove ‘/www/www/xhjzcl.cn/.user.ini’: Operation not permitted
mv: cannot remove ‘/www/www/jz.cloud-club.com.cn/.user.ini’: Operation not permitted
我想问下这个提示的这个问题是怎么解决的,因为这个应该在迁移文件的时候经常出现,所以求一下解决过程
答:您好,请确保停止了服务不仅仅是bt服务,对应站点运行的服务要全部停止,比如mysql httpd NGINX等,谢谢
并且mv请注意检查对应报错文件的权限是否正确