作者:ayipyipyip | 来源:互联网 | 2023-05-30 05:52
Imwritingashellscripttodosomewebserverconfiguration.Ineedtodisableallcurrentlyacti
I'm writing a shell script to do some web server configuration. I need to disable all currently active virtual hosts. a2dissite
doesn't accept multiple arguments, so I can't do
我正在编写一个shell脚本来进行一些Web服务器配置。我需要禁用所有当前活动的虚拟主机。 a2dissite不接受多个参数,所以我不能这样做
a2dissite `ls /etc/apache2/sites-enabled`
Should I use find
? Is it safe to manually delete the symlinks in /etc/apache2/sites-enabled
?
我应该使用find吗?手动删除/ etc / apache2 / sites-enabled中的符号链接是否安全?
9 个解决方案