Select Page

Linux 完全删除LNMP环境下域名和网站文件夹 方法

Linux 完全删除LNMP环境下域名和网站文件夹 方法

通常情况,在我们运行lnmp vhost del删除绑定域名后会发现服务器上依然留有该域名和网站的文件夹,并且无法被删除。这是因为该文件夹正处于chattr命令的保护之中。

解决方法

移除chattr的保护,其中 i 参数是控制文件不能被删除、改名、设定或新增数据等功能。将域名路径替换成自己的。

chattr -i /home/wwwroot/www.example.com/.user.ini

OK 这样我们就能顺利删除在服务器中的域名和网站文件夹了。

About The Author

Jackie Sung

Jackie Sung, also known by his nick-name KK, always strives for the best and learn from the best. Influenced by the age of Internet, for the last few years, in his spare time, he's been working and living as a Freelance Web Engineer/ Web Developer & Designer/ Amateur Photographer/ Husky Lover. The work he provides is of highest quality, fully-customized responsive, and tested in a wide range of devices, which typically covers both front-end (HTML5/ CSS3/ JavaScript) and back-end (WordPress as the CMS) responsibilities.

1 Comment

  1. 123

    FUCK GFW ...

    回复

Leave a reply

电子邮件地址不会被公开。 必填项已用*标注

4 × 1 =

Pin It on Pinterest

Share This