centos7 lnmp部署知乎上传主体报错

2019/01/17 18:55:27 [error] 2230#2230: *89 open() "/code/wordpress/favicon.ico" failed (2: No such file or directory), client: 10.0.0.1, server: blog.lvhanzhi.com, request: "GET /favicon.ico HTTP/1.1", host: "10.0.0.7"

错误原因:nginx上传文件大小是有限制的,现在上传的文件超过了规定的大小

解决方法:修改nginx上传文件大小

[root@web01 ~]# vim /etc/nginx/conf.d/blog.lvhanzhi.com.conf
server {
listen 80;
server_name blog.lvhanzhi.com;
root /code/wordpress;
client_max_body_size 100m;
location / {
index index.php index.html;
}
location ~\.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

}
~
~
~
~
~
~
~
~
~
"/etc/nginx/conf.d/blog.lvhanzhi.com.conf" 15L, 302C written
[root@web01 ~]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[root@web01 ~]# systemctl restart nginx

最新文章

  1. 札记:Fragment基础
  2. [BootStrap] 富编辑器,基于wysihtml5
  3. 使用jQuery 的.on() 提交表单
  4. EPPLUS之外的选择,EXCEL的操作(NPOI,POI(java))
  5. 任务:写一个tomcat自启动脚本
  6. mac 环境下mysql 不能删除schema问题的解决办法
  7. hhgis驱动
  8. COJN 0558 800600带通配符的字符串匹配
  9. 正确地黑C
  10. Azure 基础:使用 powershell 创建虚拟机
  11. bzoj2005 NOI2010 方案统计
  12. [error] eclipse编写spring等xml配置文件时只有部分提示,tx无提示
  13. [转][osg]关于PagedLOD 加载卸载机制
  14. Vs code 设置
  15. Linq中left join之多表查询
  16. 使用RemObjects Pascal Script
  17. SparkR(R on Spark)编程指南 含 dataframe操作
  18. sqoop1 与sqoop2的对比
  19. latest报错
  20. android gson使用

热门文章

  1. LeetCode110.平衡二叉树
  2. Android -- 仿小米锁屏画报
  3. TP增删改
  4. [ Learning ] Design Pattens
  5. STL之Vector容器
  6. Lua 可变参数之arg与select
  7. win10系统进入BIOS
  8. Acperience (英语阅读 + 数学推导)
  9. 【2017-03-02】C#函数,递归法
  10. 不能安装vmtools解决:一个命令安装