hustoj提高并发有哪些可以调节的地方?
1. /etc/nginx/nginx.conf中
worker_connections 5000;
multi_accept on;
* soft nofile 65536
* hard nofile 65536
net.ipv4.tcp_syncookies=0
net.ipv4.tcp_max_syn_backlog=65535
pm.max_children = 5000
apt-get install memcached php-memcache php-memcached
session.save_handler = memcached
session.save_path = “localhost:11211”
static $OJ_MEMCACHE=true; //使用内存缓存