Apache 可以修改 httpd.mpm.conf配置文件来修改连接数
使用Nginx+Keepalived组建高可用负载平衡Web server集群
安装编译环境
基础安装 yum install gcc openssl-devel pcre-devel zlib-devel
打包安装 yum -y groupinstall "Development Tools" "Development Libraries" 不包含 pcre-devel
nginx 依赖于 libevent API
安装 libevent
解压
tar xf libevent-2.0.22-stable.tar.gz
配置安装
./configure
make && make install
默认安装usr/local/lib 目录 不再库文件的搜索路径
需要vim /etc/ld.so.conf.d/user.local.conf 写入 usr/local/lib
安装nginx
解压:
tar xf nginx-1.8.0.tar.gz
配置安装:
./configure
--prefix=/usr
--sbin-path=/usr/sbin/nginx
--conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/nginx/access.log
--pid-path=/var/run/nginx/nginx.pid
--lock-path=/var/lock/nginx.lock
--user=nginx
--group=nginx
--with-http_ssl_module
--with-http_flv_module
--with-http_gzip_static_module
--http-client-body-temp-path=/var/tmp/nginx/client/
--http-proxy-temp-path=/var/tmp/nginx/proxy/
--http-fastcgi-temp-path=/var/tmp/nginx/fcgi/
--with-pcre
#make && make install
CDN Centent Delivery Network(内容分发网络)