慢执行日志
1、配置文件下打开慢执行日志
vim /usr/local/php/etc/php-fpm.conf
# 慢执行日志路径 slowlog = /path/to/slow.log # 设置超时时间,只要查询时间大于1秒就记录 request_slowlog_timeout =1
网站隔离
1、配置文件下加入网站隔离参数
vim /usr/local/php/etc/php-fpm.conf
注:以“:”分割,可写入多个网站,不在隔离区的网站不可访问。 # 网站隔离 = 隔离网站1:隔离网站2 php_admin_value[open_basedir]=/usr/local/url1:/usr/local/url2