本文介绍了找不到位于httpd.conf的apache文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何找到httpd.conf文件的位置?
我正在从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"参考: commanigy/blog /2011/6/8/finding-apache-configuration-file-httpd-conf-location
更多推荐
找不到位于httpd.conf的apache文件
发布评论