Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1261128
  • 博文数量: 315
  • 博客积分: 10397
  • 博客等级: 上将
  • 技术积分: 3731
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-07 21:21
文章分类

全部博文(315)

文章存档

2015年(10)

2014年(3)

2013年(2)

2012年(8)

2011年(8)

2010年(29)

2009年(59)

2008年(77)

2007年(119)

分类: LINUX

2007-12-28 17:30:14

/path/bin/apachectl

Options:

  -D name            : define a name for use in directives

  -d directory       : specify an alternate initial ServerRoot

  -f file            : specify an alternate ServerConfigFile

  -C "directive"     : process directive before reading config files

  -c "directive"     : process directive after reading config files

  -e level           : show startup errors of level (see LogLevel)

  -E file            : log startup errors to file

  -v                 : show version number

  -V                 : show compile settings

  -h                 : list available command line options (this page)

  -l                 : list compiled in modules //加载模块检查

  -L                 : list available configuration directives

  -t -D DUMP_VHOSTS  : show parsed settings (currently only vhost settings)

  -S                 : a synonym for -t -D DUMP_VHOSTS

  -t -D DUMP_MODULES : show all loaded modules

  -M                 : a synonym for -t -D DUMP_MODULES

  -t                 : run syntax check for config files //语法检查

 

Apache有两种方式加载外接功能

1、  静态加载,将so文件置于path/modules中,然后再path/conf/httpd.conf中加入如下语句:LoadModule gzip_module modules/mod_gzip.so

2、 动态加载,先设定apxs路径,make APXS/path/bin/apxs――>make install APXS=/path/bin/apxs,

官方说法:Perform the installation running the command

make install APXS=your_apxs_pathname

This will not only copy the shared object file into the corresponding directory of the Apache installation but automatically extend the Apache configuration file httpd.conf by the required directives LoadModule and AddModule as well ... if you don't like foreign programs to rewrite your precious configuration files you might prefer to perform this final step manually, or at least make a backup of you Apache configuration first.

最后先检查配置:/path/bin/apachctl configtest/path/bin/apachctl –t,如果一切OKreset

阅读(1398) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~