亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 10669 | 回復(fù): 9
打印 上一主題 下一主題

[Web] 如何確定當(dāng)前apache使用的是哪個配置文件 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2007-11-12 12:28 |只看該作者 |倒序瀏覽
centOS 做了個apache+php+mysql的論壇(服務(wù)商提供),我看里面裝了Apache/2.0.52

LUCY:/home/lywang#uname -a
Linux server 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6

06:21:39 CDT 2006 i686 i686 i386 GNU/Linux
LUCY:/home/lywang#find / -name httpd.conf
/etc/httpd/conf/httpd.conf
LUCY:/home/lywang#

但我打開httpd.conf 文件看到配置卻不是現(xiàn)在web發(fā)布的實際路徑,現(xiàn)在想改個配置
但真正的配置文件找了半天卻找不到,有什么方法可以確定現(xiàn)在的WEB是用的哪個配置文件?

論壇徽章:
0
2 [報告]
發(fā)表于 2007-11-12 16:58 |只看該作者
netstat -tlnp


找到80端口監(jiān)聽的pid


ps ux  找到對應(yīng)的進程,最后一列顯示使用的哪個httpd.

論壇徽章:
0
3 [報告]
發(fā)表于 2007-11-12 17:08 |只看該作者
/etc/httpd/conf/httpd.conf
進入/etc/httpd/conf/
查看!

論壇徽章:
0
4 [報告]
發(fā)表于 2007-11-12 18:12 |只看該作者
原帖由 level 于 2007-11-12 17:08 發(fā)表
/etc/httpd/conf/httpd.conf
進入/etc/httpd/conf/
查看!

斑竹,就是發(fā)現(xiàn)這個文件與實際WEB發(fā)布的路徑不符合,才懷疑用了別的配置文件,否則也不會提問了

論壇徽章:
0
5 [報告]
發(fā)表于 2007-11-12 18:21 |只看該作者
原帖由 ccc77 于 2007-11-12 16:58 發(fā)表
netstat -tlnp


找到80端口監(jiān)聽的pid


ps ux  找到對應(yīng)的進程,最后一列顯示使用的哪個httpd.


找到httpd有什么用呢? 我的問題是httpd用的哪個配置文件(就是并沒有用/etc/httpd/conf/httpd.conf文件)

論壇徽章:
0
6 [報告]
發(fā)表于 2007-11-13 11:17 |只看該作者
/path/to/httpd -V
/path/to/apache -V

論壇徽章:
0
7 [報告]
發(fā)表于 2007-11-13 14:31 |只看該作者
原帖由 linuxnextyear 于 2007-11-13 11:17 發(fā)表
/path/to/httpd -V
/path/to/apache -V


LUCY:/home/lywang#httpd -V
Server version: Apache/2.0.52
Server built:   Jul 14 2007 11:53:18
Server's Module Magic Number: 20020903:9
Architecture:   32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"

LUCY:/home/lywang#df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda3            151668928  47564352  97941080  33% /
/dev/sda1               101086     14046     81821  15% /boot
none                    516252         0    516252   0% /dev/shm

LUCY:/home/lywang#find / -name httpd.conf
/etc/httpd/conf/httpd.conf

系統(tǒng)只找到這個httpd.conf了,但里面配置明顯和實際WEB發(fā)布的情況不符,真是奇怪!

論壇徽章:
0
8 [報告]
發(fā)表于 2007-11-13 20:26 |只看該作者
看看 /etc/rc.local 里面,httpd 啟動的參數(shù)

如果是非默認(rèn)的配置文件,需要參數(shù)載入

find 可能找不到,配置的文件名不一定是 httpd.conf

論壇徽章:
0
9 [報告]
發(fā)表于 2007-11-14 20:19 |只看該作者
原帖由 lhbc 于 2007-11-13 20:26 發(fā)表
看看 /etc/rc.local 里面,httpd 啟動的參數(shù)

如果是非默認(rèn)的配置文件,需要參數(shù)載入

find 可能找不到,配置的文件名不一定是 httpd.conf


LUCY:/etc#ls -al rc.local
lrwxrwxrwx  1 root root 13 Sep 23 19:11 rc.local -> rc.d/rc.local
LUCY:/etc#cat rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
/sbin/ethtool -s eth0 speed 100 duplex full autoneg off > /dev/null 2>&1
/etc/init.d/post_install_agent

毫無頭緒。。。:em11:

論壇徽章:
0
10 [報告]
發(fā)表于 2007-11-19 10:41 |只看該作者
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP