PHP随笔
修改Nginx站点配置文件省略.php后缀访问
location / {
try_files $uri $uri/ $uri.php?$args;
}
$_POST参数长度过长解决方法,php.ini中post相关设置
post_max_size 8M
upload_max_filesize 20M
max_execution_time = 100
max_input_time = 60
memory_limit = 32M
max_input_vars = 20000
memory_limit = 256M
nginx.conf中相关设置
client_max_body_size 120M;
client_header_timeout 5s;
fastcgi_buffer_size 4k;
fpm.conf中相关设置
request_terminate_timeout = 30
数据迁移注意下计划任务
/etc/crontab
标签: PHP随笔
还没有人抢沙发呢~