[Nginx]Nginx调度配置session共享服务,实现数据统一。
Nginx调度配置搭建参考:https://teddyou.com/?id=14调度服务器安装:yum -y install memcached //安装memcached数据库systemctl restart memcached
阅读全部Nginx调度配置搭建参考:https://teddyou.com/?id=14调度服务器安装:yum -y install memcached //安装memcached数据库systemctl restart memcached
阅读全部服务器上的机械硬盘读写速度较慢,我们可用利用内存的缓存,加速文件提取。依服务器内存性能,修改配置文件vim /usr/local/nginx/conf/nginx.conf在http{}中写入open_file_cache max=2000 inactive=20s; //设置最多缓存2000个文件,驱除20秒内无任何请求的文件。 &
阅读全部源码安装nginx参考https://teddyou.com/?id=12打开配置文件 vim /usr/local/nginx/conf/nginx.confworker_processes 1; //默认为1,设定worker数量。服务器有多少个核心这里写多少,Nginx调用多少CPU就看这个。events { worker_connections 1024;
阅读全部