文章过长的时候 提示这个错误 413 错误 nginx的最大长度也调整了 还是不行 Error: request entity too large<br> at readStream (/alidata/www/niefengjun/boke6/node_modules /body-parser/node_modules/raw-body/index.js:196:17)<br> at getRawBody (/alidata/www/niefengjun /boke6/node_modules/body-parser/node_modules/raw-body/index.js:106:12)<br> at read (/alidata /www/niefengjun/boke6/node_modules/body-parser/lib/read.js:68:3)<br> at urlencodedParser (/alidata/www/niefengjun/boke6/node_modules/body-parser/lib/types/urlencoded.js:109:5)<br>   ;at Layer.handle [as handle_request] (/alidata/www/niefengjun/boke6/node_modules/express/lib/router/layer .js:95:5)<br> at trim_prefix (/alidata/www/niefengjun/boke6/node_modules/express/lib/router /index.js:312:13)<br> at /alidata/www/niefengjun/boke6/node_modules/express/lib/router/index .js:280:7<br> at Function.process_params (/alidata/www/niefengjun/boke6/node_modules/express /lib/router/index.js:330:12)<br> at next (/alidata/www/niefengjun/boke6/node_modules/express /lib/router/index.js:271:10)<br> at expressInit (/alidata/www/niefengjun/boke6/node_modules /express/lib/middleware/init.js:33:5)
app.use(bodyParser.urlencoded({ extended: true,limit: ‘50mb’ })) //app.use(bodyParser.json()); app.use(express.static(path.join(__dirname, ‘public’))); app.set(‘views’, path.join(__dirname, ‘views’)); app.use(bodyParser.json({ “limit”:“80mb”})); 设置了 还是不行呢