国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Failed to start connector [Connector[HTTP/1.1-8080]]

這篇具有很好參考價(jià)值的文章主要介紹了Failed to start connector [Connector[HTTP/1.1-8080]]。希望對大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

1、解決Web server failed to start. Port 8080 was already in use
2、SpringBoot啟動(dòng)報(bào)錯(cuò):“Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.”
3、Failed to start end point associated with ProtocolHandler [http-nio-8080]
4、Failed to start connector [Connector[HTTP/1.1-8080]]


前言

提示:這里可以添加本文要記錄的大概內(nèi)容:

各種錯(cuò)誤千千萬,一個(gè)項(xiàng)目遇一半
其實(shí)以前遇到過這個(gè)錯(cuò)誤,但沒把它記錄下來,今天又遇到了就把它寫一下


問題描述

項(xiàng)目場景一:

Failed to start connector [Connector[HTTP/1.1-8080]],報(bào)錯(cuò)記錄,http,網(wǎng)絡(luò)協(xié)議,網(wǎng)絡(luò)

springboot啟動(dòng)報(bào)錯(cuò):“Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.”

這里我有點(diǎn)蒙了,以為是配置或者版本問題

直到我看到下面:Web server failed to start. Port 8080 was already in use

Identify and stop the process that 's listening on port 8088 or configure this application to listen on another port.
這不還是端口被占用嗎 ,建議我停止這個(gè)端口,或者改個(gè)端口

項(xiàng)目場景二:

?Failed to start connector [Connector[HTTP/1.1-8080]],報(bào)錯(cuò)記錄,http,網(wǎng)絡(luò)協(xié)議,網(wǎng)絡(luò)

Failed to start end point associated with ProtocolHandler [http-nio-8080]

錯(cuò)誤原因:Tomcat 端口被占用
被占用的端口號是 8080

解決方案

第一種:關(guān)掉被占用端口

第一步:查看tomcat的所使用的端口

【win+r】輸入【cmd】打開運(yùn)行框

輸入:

netstat -ano|findstr 8080

請根據(jù)實(shí)際情況填寫,我這里被占用的端口號是8080
?
Failed to start connector [Connector[HTTP/1.1-8080]],報(bào)錯(cuò)記錄,http,網(wǎng)絡(luò)協(xié)議,網(wǎng)絡(luò)

此處的 “10320” 為占用端口的進(jìn)程號

第二步:殺死占用端口的進(jìn)程

輸入:

taskkill /pid 10320 /f

10320就不要復(fù)制了 ,要寫你自己的進(jìn)程

Failed to start connector [Connector[HTTP/1.1-8080]],報(bào)錯(cuò)記錄,http,網(wǎng)絡(luò)協(xié)議,網(wǎng)絡(luò)
?

可以看到現(xiàn)在進(jìn)程已被殺死,如果進(jìn)程無法殺死

那就在啟動(dòng) cmd 的時(shí)候用管理員身份打開,再操作一遍就好

回到項(xiàng)目再運(yùn)行一遍:

項(xiàng)目運(yùn)行成功

?Failed to start connector [Connector[HTTP/1.1-8080]],報(bào)錯(cuò)記錄,http,網(wǎng)絡(luò)協(xié)議,網(wǎng)絡(luò)

第二種:改端口號

Spring Boot的配置文件主要有兩種格式,分別為application.properties 和 application.yml ,它們的區(qū)別主要有以下兩點(diǎn):
Failed to start connector [Connector[HTTP/1.1-8080]],報(bào)錯(cuò)記錄,http,網(wǎng)絡(luò)協(xié)議,網(wǎng)絡(luò)

(1)、書寫格式不同,比如同樣是指定端口為8080,在兩種配置文件中寫法是不一樣的,具體如下:

我們一般在application.properties中添加,通常情況下會把a(bǔ)pplication.properties改為:application.yaml

打開后在里面輸入:(port 冒號后有空格)

server:
    port: 8080

如果是application.properties寫法:

server.port=8080

兩種寫法,根據(jù)自己實(shí)際情況任選其一

Failed to start connector [Connector[HTTP/1.1-8080]],報(bào)錯(cuò)記錄,http,網(wǎng)絡(luò)協(xié)議,網(wǎng)絡(luò)

(2) 、application.yml 格式不支持 @PropertySource 注解導(dǎo)入配置。

當(dāng)然你說我想看我這著個(gè)程序用的哪個(gè)端口號,你在運(yùn)行后看倒數(shù)第二行:

?Failed to start connector [Connector[HTTP/1.1-8080]],報(bào)錯(cuò)記錄,http,網(wǎng)絡(luò)協(xié)議,網(wǎng)絡(luò)

第三種:任務(wù)管理器關(guān)掉Java進(jìn)程

打開任務(wù)管理器關(guān)掉Java進(jìn)程,鼠標(biāo)右鍵或者右下角結(jié)束任務(wù)都行
Failed to start connector [Connector[HTTP/1.1-8080]],報(bào)錯(cuò)記錄,http,網(wǎng)絡(luò)協(xié)議,網(wǎng)絡(luò)

第四種

或者用下面截圖這種辦法也行,原理跟第一種一樣

Failed to start connector [Connector[HTTP/1.1-8080]],報(bào)錯(cuò)記錄,http,網(wǎng)絡(luò)協(xié)議,網(wǎng)絡(luò)文章來源地址http://www.zghlxwxcb.cn/news/detail-546337.html

到了這里,關(guān)于Failed to start connector [Connector[HTTP/1.1-8080]]的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • 啟動(dòng)jenkins報(bào)錯(cuò) Failed to start Jetty或Failed to bind to 0.0.0.0/0.0.0.0:8080或Address already in use

    啟動(dòng)jenkins報(bào)錯(cuò) Failed to start Jetty或Failed to bind to 0.0.0.0/0.0.0.0:8080或Address already in use

    安裝jenkins就不說了,能走到這一步的都知道。因我安裝的是比較新的jenkins版本 這些問題只在新版本的jenkins安裝出現(xiàn),舊版本的倒是沒有遇見過 使用systemctl start jenkins 啟動(dòng)jenkins之后會提示如下信息 Job for jenkins.service failed because the control process exited with error code. See “systemct

    2024年02月01日
    瀏覽(76)
  • MySQL安裝中出現(xiàn)的The selected path already exists以及Connector/Python ***以及start service MySQL80 Failed

    MySQL安裝中出現(xiàn)的The selected path already exists以及Connector/Python ***以及start service MySQL80 Failed

    近因?yàn)閷W(xué)習(xí)Python需要用到數(shù)據(jù)庫,選擇了MySQl去應(yīng)用安裝,但是安裝失敗一直困擾著我??赡?也是因?yàn)閳?bào)錯(cuò)的details太多很麻煩所以不想仔細(xì)看吧。這幾天搞下來也有點(diǎn)心得和大家分享一下。 意思是說你已經(jīng)創(chuàng)建了文件夾(安裝過程會自動(dòng)創(chuàng)建),我們只需要找到位置給刪除

    2024年02月15日
    瀏覽(25)
  • 報(bào)錯(cuò):HTTP Error 500.30 ASP.NET Core app failed to start

    報(bào)錯(cuò):HTTP Error 500.30 ASP.NET Core app failed to start

    問題原因: 1.沒有安裝對應(yīng)版本的.NET Core Runtime 。 2.發(fā)布的代碼和服務(wù)器上的IIS的Runtime不對應(yīng)(例:發(fā)布的是x86,而服務(wù)器上的是x64)。 3.如果版本和操作位數(shù)都對應(yīng)上了,還是報(bào)錯(cuò),應(yīng)該在IIS-應(yīng)用程序-選擇對應(yīng)的CLR,設(shè)置,啟用32位。 解決辦法: 1.下載安裝對應(yīng)版本的運(yùn)行時(shí)R

    2024年02月11日
    瀏覽(22)
  • Nginx啟動(dòng)報(bào)錯(cuò)- Failed to start The nginx HTTP and reverse proxy server

    Nginx啟動(dòng)報(bào)錯(cuò)- Failed to start The nginx HTTP and reverse proxy server

    根據(jù)日志,仍然出現(xiàn) “bind() to 0.0.0.0:8888 failed (13: Permission denied)” 錯(cuò)誤。這意味著 Nginx 仍然無法綁定到 8888 端口,即使使用 root 權(quán)限。 請執(zhí)行以下操作來進(jìn)一步排查問題: 確保沒有其他進(jìn)程占用 8888 端口 :使用以下命令檢查端口 8888 是否已被其他進(jìn)程占用: 如果該端口已

    2024年02月12日
    瀏覽(28)
  • Flink CDC報(bào)The connector is trying to read binlog starting at xxx but this is no longer available問題解決

    Flink CDC報(bào)The connector is trying to read binlog starting at xxx but this is no longer available問題解決

    問題是筆者最近在使用FlinkCDC 2.3.0 捕獲MySQL binlog日志時(shí)遇到的,MySQL使用的阿里云的RDS, MysqlCDC 使用讀賬號以 Initinal 模式,任務(wù)已經(jīng)運(yùn)行了一段時(shí)間突然報(bào)的錯(cuò),之前在使用FlinkCDC時(shí)也曾遇到過,設(shè)置了一些參數(shù)后沒有再出現(xiàn)過,一直比較忙沒有來得及總結(jié)下來。但是今天同

    2024年02月07日
    瀏覽(23)
  • 遇到Web server failed to start. Port 8080 was already in use.該如何解決?

    遇到Web server failed to start. Port 8080 was already in use.該如何解決?

    1.今天晚上做了一個(gè)springboot的小案例,運(yùn)行springboot案例時(shí),發(fā)現(xiàn)項(xiàng)目沒有啟動(dòng)成功: 2.錯(cuò)誤描述為:Web server failed to start. Port 8080 was already in use. 這句錯(cuò)誤描述意思是當(dāng)前程序的端口號8080被占用了,需要將占用該端口的程序停止掉才行。 3.我們按住win+R鍵調(diào)出運(yùn)行窗口,輸入

    2024年02月13日
    瀏覽(27)
  • MySQL卸載不干凈回不到初始安裝頁面(MySQL Connector Net卸載不了),重裝報(bào)錯(cuò)Database initialization failed等問題解決辦法

    MySQL卸載不干凈回不到初始安裝頁面(MySQL Connector Net卸載不了),重裝報(bào)錯(cuò)Database initialization failed等問題解決辦法

    首先,這篇文章適合 1. 常規(guī)卸載方法無法卸載干凈 導(dǎo)致重裝始終回不到初始安裝頁面,即回不到下圖初始狀態(tài),始終是welcome back (這部分我會單獨(dú)講一下MySQL Connector Net卸載不了的問題) 2.重裝過程中 Database initialization failed 安裝失敗報(bào)錯(cuò) 1.雙擊安裝程序進(jìn)行卸載,選擇rem

    2023年04月08日
    瀏覽(25)
  • failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

    PHP Warning \\\'yiibaseErrorException\\\' with message \\\'file_get_contents(https://img12.360buyimg.com/n5/s1200x800_jfs/t1/69307/10/5911/292411/5d3e610cEce4e6f5a/b69fbf56874af00d.jpg): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found 上面問題很多種處理方案;比如使用curl等可以參考其他使用產(chǎn)景 定時(shí)任務(wù)腳本中存在一

    2024年02月05日
    瀏覽(23)
  • 嚴(yán)重: Failed to initialize end point associated with ProtocolHandler [“http-bio-8080“]

    嚴(yán)重: Failed to initialize end point associated with ProtocolHandler [“http-bio-8080“]

    目錄 場景: 問題描述 原因分析: 解決方案: 在IDEA寫web項(xiàng)目時(shí)候,啟動(dòng)Tomcat出現(xiàn)嚴(yán)重錯(cuò)誤。 Tomcat執(zhí)行時(shí)出現(xiàn):嚴(yán)重: Failed to initialize end point associated with ProtocolHandler?[\\\"http-bio-8080\\\"]? 沒有正常關(guān)閉之前的Tomcat服務(wù)器,然后再一次的打開Tomcat,造成嚴(yán)重錯(cuò)誤8080端口號的進(jìn)程在后

    2024年02月11日
    瀏覽(20)
  • pom文件中,mysql依賴報(bào)錯(cuò):mysql:mysql-connector-java:jar:unknown was not found in http://maven.aliyun.com/nex

    pom文件中,mysql依賴報(bào)錯(cuò):mysql:mysql-connector-java:jar:unknown was not found in http://maven.aliyun.com/nex

    spring項(xiàng)目導(dǎo)入sql依賴時(shí)報(bào)錯(cuò):mysql:mysql-connector-java:jar:unknown was not found in http://maven.aliyun.com/nexus/content/reposi… 最好添加mysql版本號 報(bào)錯(cuò)消失 一定記得刷新

    2024年02月11日
    瀏覽(54)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包