日期:2014-05-16  浏览次数:20989 次

1:apache的一些操作

1:查看apache加载 了那些模块:

root@MC-FDFS:/usr/local/apache/bin# ./apachectl -t -D DUMP_MODULES

?2:

般APACHE都安装在/usr/local/apache

所以 进入 /usr/local/apache/bin目录

输入 ./apachectl start 就好了

如何监测是否启动:

ps -ef | grep httpd

看看是不是多个httpd进程,如果有,说明启动成功

?

root@MC-FDFS:/usr/local/apache/bin# ./apachectl stop

root@MC-FDFS:/usr/local/apache/bin# ps -ef|grep httpd
root      2554 31470  0 18:57 pts/0    00:00:00 grep --color=auto httpd

root@MC-FDFS:/usr/local/apache/bin# ./apachectl start
root@MC-FDFS:/usr/local/apache/bin# 
root@MC-FDFS:/usr/local/apache/bin# 
root@MC-FDFS:/usr/local/apache/bin# ps -ef|grep httpd
root      2561     1  0 18:57 ?        00:00:00 /usr/local/apache/bin/httpd -k start
downjoy   2565  2561  0 18:57 ?        00:00:00 /usr/local/apache/bin/httpd -k start
downjoy   2567  2561  0 18:57 ?        00:00:00 /usr/local/apache/bin/httpd -k start
downjoy   2568  2561  0 18:57 ?        00:00:00 /usr/local/apache/bin/httpd -k start
downjoy   2570  2561  0 18:57 ?        00:00:00 /usr/local/apache/bin/httpd -k start
root      2783 31470  0 18:57 pts/0    00:00:00 grep --color=auto httpd

?