LNMP 服务器调整日志-2

1.修改 PHP FPM

listen = /run/shm/php-fcgi.socket

pm = static

pm.max_children = 1024

pm.start_servers = 30

pm.min_spare_servers = 25

pm.max_spare_servers = 35

pm.max_requests = 1024

2.Nginx

fastcgi_pass unix:/run/shm/php-fcgi.socket;

3.修改 php.ini

session.save_handler = memcache

session.save_path = “tcp://127.0.0.1:11211”

session.use_cookies = 1

session.use_only_cookies = 0

发表评论

电子邮件地址不会被公开。 必填项已用*标注