暗黑城堡new
作者暗黑城堡new·2014-03-05 16:46
其它·XXX科技有限公司

http.conf文件随笔

字数 1454阅读 1561评论 0赞 0
#
# LogLevel: Control the number of messages logged to the error.log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn
# LogLevel
# 控制错误日志的级别, 默认值: LogLevel warn
# emerg  紧急 - 系统无法使用。
# alert  必须立即采取措施。
# crit  致命情况。
# error  错误情况。
# warn  警告情况。
# notice  一般重要情况。
# info  普通信息。
# debug  出错级别信息

# MaxSpareServers
# 设置apache的最大空闲进程数
# 语法: MaxSpareServers number
# 默认: MaxSpareServers 100
# 例: MaxSpareServers 1000

# MaxKeepAliveRequests
# 设置每个连接的最大请求数
# 语法: MaxKeepAliveRequests number
# 默认值: MaxKeepAliveRequests 100

--------------------------------------------------------------------------------------------------

IHS配置文件httpd.conf关键参数:

LogLevel error (调整日志级别)

#CustomLog logs/access_log common  (屏蔽该日志)

Alias /fileStorage       "/nfs/datafile/"  (指定静态化文件目录)

<IfModule prefork.c>  (调整IHS的最大并发数)

ServerLimit      16

StartServers      5

MinSpareServers   5

MaxSpareServers   15

MaxClients          600

MaxRequestsPerChild  3000

</IfModule>

KeepAlive On (调整IHS的请求的最长连接时间以及超时时间,由于网站的特殊性,所以连接不能太长,不然占用资源不释放,就会容易导致死机或者无法访问)

MaxKeepAliveRequests 500

KeepAliveTimeout 5




如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

0

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

相关文章

相关问题

相关资料

X社区推广