linux文件流打开太多报错

网站显示 No input file specified 网站日志 Unable to open primary script: /index.php (Too many open files)” while reading response header from upstream

# 编辑文件
vi /etc/security/limits.conf
# 编辑为:
*         hard    nofile      500000
*         soft    nofile      500000
root      hard    nofile      500000
root      soft    nofile      500000