位于 apache 的 httpd.conf 文件丢失 [英] Lost httpd.conf file located apache
本文介绍了位于 apache 的 httpd.conf 文件丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何找到我的 httpd.conf
文件所在的位置?
How can I find where my httpd.conf
file is located?
我正在运行来自 Amazon Web Services EC2(弹性计算云)的 Ubuntu Linux 服务器,但我找不到我的 Apache 配置.
I am running an Ubuntu Linux server from the Amazon Web Services EC2 (Elastic Compute Cloud) and I can't find my Apache config.
推荐答案
获取运行Apache的路径
Get the path of running Apache
$ ps -ef | grep apache
apache 12846 14590 0 Oct20 ? 00:00:00 /usr/sbin/apache2
附加 -V
参数到路径
$ /usr/sbin/apache2 -V | grep SERVER_CONFIG_FILE
-D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"
参考:
http://commanigy.com/blog/2011/6/8/finding-apache-configuration-file-httpd-conf-location
这篇关于位于 apache 的 httpd.conf 文件丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文