命令
yum install httpd*
配置文件
/etc/httpd/conf/httpd.conf
cat /etc/httpd/conf/httpd.conf |grep -v "#" |grep -v ";" > /tmp/httpd.conf
默认网页文件/var/www/html
ServerTokens OS #服务器类型
ServerRoot "/etc/httpd" #配置文件
PidFile run/httpd.pid #指定PID
Timeout 120 #断开多么秒后无流量的客户端
KeepAlive Off #http1.0用on
MaxKeepAliveRequests 100 #每次请求的最多连接
KeepAliveTimeout 15 #自动断开无再次请求的客户端
StartServers 8 #会执行几个子进程
MinSpareServers 5 #
MaxSpareServers 20
ServerLimit 256
MaxClients 256 #定义最多允许多少个客户端
MaxRequestsPerChild 4000
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
Listen 80
阅读(656) | 评论(0) | 转发(0) |