找不到位于httpd.conf的apache文件 [英] Lost httpd.conf file located apache

查看:448
本文介绍了找不到位于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"

参考:
http://commanigy.com/blog /2011/6/8/finding-apache-configuration-file-httpd-conf-location

这篇关于找不到位于httpd.conf的apache文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆