tomcat啟動成功外網無法訪問

2021-07-04 02:53:41 字數 461 閱讀 3789

最近遠端連線windows 2008的伺服器配置安裝tomcat,tomcat8w啟動成功,但在外網輸入ip:port卻無法訪問,然後想到了防火牆的問題。將防火牆關掉了,果然能訪問了,可是關掉防火牆不安全。於是為tomcat埠開放防火牆訪問,tomcat開啟的如果是8080埠,那麼在防火牆中開放8080埠的外部對本機訪問許可權即可,如果tomcat使用的是80埠,那麼就在防火牆中開放80埠的外部對本機的訪問許可權。

以8080埠為例,cmd輸入命令『netsh firewall add portopening protocol = tcp port = 8080 name = 「open8080」 mode = enable』執行即可。

但建議執行命令『netsh advfirewall firewall add portopening protocol = tcp port = 8080 name = 「open8080」 mode = enable』。

tomcat 無法啟動

tomcat 啟動日誌報出以下錯誤 error transport error 202 bind failed address already in use transport.c l41 error jdwp transport dt socket failed to initialize,tra...

tomcat無法啟動

今天發現伺服器上tomcat 8080埠起不來,老提示埠已經被占用。使用命令 ps aux grep tomcat 發現並沒有8080埠的tomcat程序。使用命令 netstat apn 檢視所有的程序和埠使用情況。發現下面的程序列表,其中最後一欄是pid program name netstat...

tomcat無法啟動debug

錯誤資訊 1error transport error202 gethostbyname unknown host 2a configuration error occurred during startup.please verify the preference field with the p...