快速业务通道

redhat enterprise linux 下 apache 服务的安装与配置

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-04-05
to wait for the next request from the

# same client on the same connection.

KeepAliveTimeout 15 //表示用户端的请求如果15s没有发出,则断线.

## Server-Pool Size Regulation (MPM specific)

<IfModule prefork.c>

StartServers 8 //启动时打开的httpd进程数目为8

MinSpareServers 5 //至少会有5个闲置的httpd进程来监听用户的请求

MaxSpareServers 20 //最多的闲置的httpd进程数为20 .如果网站的访问量很大,可将这个数目设置大一些.

ServerLimit 256 //客户端链接服务器的最大生存时间.ttl值

MaxClients 256 //表示限制客户端的同时最大连接数为256.一旦达到这个数目,客户端就会备拒绝访问.

MaxRequestsPerChild 4000 //表示限制每个httpd进程可以完成的最大任务数.

</IfModule>

# Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses (0.0.0.0) # #Listen 12.34.56.78:80 Listen 80 //设置监听端口 # Dynamic Shared Object (DSO) Support /*****/ //加载dso模块,就像是windows中的dll(动态链接库)

# ExtendedStatus controls whether Apache will generate "full" status # information (ExtendedStatus On) or just basic information (ExtendedStatus # Off) when the "server-status" handler is called. The default is Off. ExtendedStatus On //用于检测apache的状态信息. # User/Group: The name (or #number) of the user/group to run httpd as. # . On SCO (ODT 3) use "User nouser" and "Group nogroup". # . On HPUX you may not be able to use shared memory as nobody, and the # suggested workaround is to create a user www and use that user. # NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET) # when the value of (unsigned)Group is above 60000; # don''t use Group #-1 on these systems! # User apache Group apache //设置apache工作时使用的用户和组. 然后介绍主服务器配置(### Section 2: ''Main'' server configuration) # ServerAdmin: Your address, where problems with the server should be # e-mailed. This address appears on some server-generated pages, such # as error documents. e.g. admin@your-domain.com # ServerAdmin root@localhost // 当服务器发生问题的时候,apache会自动向这个邮箱发送相关邮件. # # If your host doesn''t have a registered DNS name, enter its IP address here. # You will have to access it by its address anyway, and this will make # redirections work in a sensible way. # #ServerName www.example.com:80 //设定apache服务器用于标识自身的名字和端口号.一般情况下,apache可以通过DNS服务器获得自身的名字,但服务器没有正式的 DNS名字时,需要我们设定.如果这个设置出错,将导致服务器不能正常启动. # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "/var/www/html" //指定了主机中网页文件的根目录. ## <Directory /> Options FollowSymLink

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号