AMH4.2无法彻底删除虚拟主机

在AMH4.2面板上删除虚拟主机后,在VPS管理面板上仍然能看到被删除的虚拟主机目录(如test.com)。用PuTTY执行删除目录命令 rm -rf /home/wwwroot/test.com 提示 rm: cannot remove ‘…/tmp/mysql.sock’: Device or resource busy。

解决方法:先停止amh mysql, 再删除主机目录,最后开启amh mysql。PuTTY命令如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[root@vps]# rm -rf /home/wwwroot/test.com
rm: cannot remove `/home/wwwroot/test.com/tmp/mysql.sock': Device or resource busy
[root@vps]# amh mysql
=======================================================
[LNMP/Nginx] Amysql Host – AMH 4.2
http://Amysql.com
[AMH] MySQL Management please select: (1~6)
1) start 3) restart 5) force-reload
2) stop 4) reload 6) exit
#? 2
Shutting down MySQL. SUCCESS!
[OK] MySQL stop
[root@vps]# rm -rf /home/wwwroot/test.com
[root@vps]# amh mysql
=======================================================
[LNMP/Nginx] Amysql Host – AMH 4.2
http://Amysql.com
[AMH] MySQL Management please select: (1~6)
1) start 3) restart 5) force-reload
2) stop 4) reload 6) exit
#? 1
Starting MySQL. SUCCESS!
[OK] MySQL start

Leave a Reply

Your email address will not be published.