1. 程式人生 > >tomcat熱部署報錯:Tomcat return http status error: 413, Reason Phrase: Request Entity Too Large

tomcat熱部署報錯:Tomcat return http status error: 413, Reason Phrase: Request Entity Too Large

一、問題

      tomcat熱部署的時候使用的是域名上傳到遠端伺服器,總是報錯。Tomcat return http status error: 413, Reason Phrase: Request Entity Too Large。

       

二、解決

      問題解決:記錄一下

原因是nginx配置了反向代理,而nginx限制了上傳檔案的大小,所以我們修改nginx的配置就行了。

配置在http下表示全域性,注意配置過後重啟nginx

client_max_body_size 500M;

用程式設計改變世界,讓夢想創造奇蹟

有問題請與我聯絡:[email protected]

相關推薦

tomcat部署Tomcat return http status error: 413, Reason Phrase: Request Entity Too Large

一、問題       tomcat熱部署的時候使用的是域名上傳到遠端伺服器,總是報錯。Tomcat return http status error: 413, Reason Phrase: Request Entity Too Large。         二、解決

Tomcat上傳文件returned a response status of 403 Forbidden

XML ons value web resp 文件 配置 pan param 出現這樣的錯誤是沒有權限對服務器進行寫操作。需要在這個項目所在的tomcat中配置可寫操作即可: 在tomcat的web.xml添加下面代碼: <init-param>

Tomcat啟動服務Unknown version string [3.1]. Default version will be used.

Tomcat、jdk、web.xml 對應關係: (版本往下相容) web.xml——version2.2——JDK1.1——Tomcat3.3 web.xml——version2.3——JDK1.3——Tomcat4.1 web.xml——version2.4——JDK1.4——T

執行tomcat” .....You must specify

執行報錯:“tomcat” .....You must specify a valid lifecycle phase or a goal in the format <plugin-prefix> 專案----右鍵----Run Configurations----Maven Bu

idea新增maven依賴失敗案例之tomcat啟動總是No qualifying bean of type 'org.codehaus.jackson.map.ObjectMapper'

=====tomcat啟動總是報錯:No qualifying bean of type 'org.codehaus.jackson.map.ObjectMapper'【原因:maven依賴失敗,沒加版本號】====值得 記錄原因:jd的SDK和這些Jackson相關jar包

tomcat服務啟動Server Tomcat v9.0 Server at localhost failed to start.

tomcat服務啟動報錯具體錯誤程式碼:四月 20, 2018 1:15:14 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin警告: [SetPropertiesRule]{Server/Service/E

添加spring-boot-devtools部署

pre fig ica option tool pan 解決方案 解決 true 使用的eclipse部署的spring boot,百度了下,大部分的問題都是說IDE工具使用熱部署無法成功的解決方案,看了很懵逼 <!-- 熱部署模塊 --> <depend

Akka HTTP部署Could not resolve substitution to a value: ${akka.stream.blocking-io-dispatcher}

在idea中使用akka http完成服務端rest介面的開發與測試後,接著就可以部署到Linux伺服器上進行測試了,因為沒有限定pom中依賴包的scope為provided,所以打包時將依賴jar包也打進了專案jar包,方便執行測試,但是專案jar包較大,後續再分離依賴的jar包。打包時候po

SpringBoot部署(BeanCreationException: Error creating bean with name 'classPathFileSystemWatcher' d)

異常資訊如下 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'classPathFileSystemWatcher'

springmvc環境部署 NoClassDefFoundError: org/springframework/web/cors/CorsProcessor

部署springmvc的時候報出一個很奇怪的錯誤:org.springframework.beans.factory.BeanCreationException: Error creating b

SharePoint 2016 vs部署無法載入功能xxx未能載入檔案或程式集xxx或它的某一個依賴項。系統找不到指定的檔案

環境描述: SharePoint 2016 單伺服器場模式 開發工具:VS2017,專案型別(功能):計時器。 問題描述: 在用vs直接部署時,報錯如下: 部署步驟"啟用功能"中出現錯誤: 無法載入功能"CustomTimerJob_CustomTimerJobFeatur

編譯安裝libiconv./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)

編譯安裝libiconv報錯:./stdio.h:1010:1: error: 'gets' undeclared here (not in a function)錯誤如下: In file included from progname.c:26:0: ./stdio.h:101

遠程服務器使用phantomjsphantomjs unexpectedly exited. Status code was: 127

pan chmod 執行權 chm 運行 .so 目錄 cte fig 原因是因為缺少phantomjs運行的依賴包 Ubuntu嘗試: sudo apt-get install libfontconfig centos嘗試: 用wget安裝phantomjs

org.springframework.http.converter.json.MappingJacksonHttpMessageConverter

log beans 而在 itme manager 解決辦法 man ali hand org.springframework.http.converter.json.MappingJacksonHttpMessageConverter 1、錯誤描述 嚴重:

伺服器使用phantomjsphantomjs unexpectedly exited. Status code was: 127

原因是因為缺少phantomjs執行的依賴包 Ubuntu嘗試: sudo apt-get install libfontconfig centos嘗試:  用wget安裝phantomjs依賴的libfontconfig sudo yum install fontconfi

TensorFlow unhashable type: 'numpy.ndarray' error

在TensorFlow執行計算圖的過程中,sess.run()那行可能會出現報錯 unhashable type: 'numpy.ndarray' error 大致意思為不可雜湊的型別 問題出現在feed_dict 裡面。、 解決方法 1:   在啟動sess並給plac

TensorFlow unhashable type: 'numpy.ndarray' error 的可能

一般來說是sess.run裡的feed_dict字典內部出現了問題。feed_dict的引數一般存放的是佔位符placeholder,通過feed_dict將具體資料“喂”進placeholder。unhashable type: 'numpy.ndarray' error報

apache apache2.2.22 configuration error: couldn't perform authentication. AuthType not set!: /

configuration error:  couldn't perform authentication. AuthType not set!: /  500伺服器錯誤解決方案:<Directo

005-搭建私有倉庫,上傳映象server gave HTTP response to HTTPS client

報錯: server gave HTTP response to HTTPS client 解決: 在/etc/docker/目錄下,建立daemon.json檔案。 在檔案中寫入{ "in

使用git提交時報error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large

bubuko alt buffer 依然 ads .post oba con 分享圖片 Delta compression using up to 4 threads.Compressing objects: 100% (2364/2364), done.Writing