解决 nginx 413 Request Too Large
说明
在服务器上使用nginx的时候出现413错误。因有可能是nginx设置了上传大小限制。
解决方法
打开nginx的配置文件
nginx.conf
,文件路径是/etc/gninx
在
http{}
配置端中添加1
client_max_body_size 20m;
重启nginx服务
server nginx restart
Talk is cheap,Show me the code!
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true