我有 /etc/apache2,并且包含了 Fedora httpd.conf 虚拟主机文件,我想检查详细信息。但我得到了这个。如何让它工作?
# httpd -S
No command 'httpd' found, did you mean:
Command 'dhttpd' from package 'dhttpd' (universe)
Command 'xttpd' from package 'xtide' (universe)
Command 'thttpd' from package 'thttpd' (universe)
httpd: command not found
答案1
Ubuntu 上的 apache 控制脚本是apachectl
,只需使用:
apachectl -S
答案2
在 Ubutu 上你可以
apache2 -S