1. 程式人生 > >Eclipse 遠端除錯 “Failed to connect to remote VM. Connection timed out ” error,

Eclipse 遠端除錯 “Failed to connect to remote VM. Connection timed out ” error,

最近發現在 Eclipse 中進行遠端除錯別的主機上的應用的時候,總是連線不上除錯埠,報 “Failed to connect to remote vm”, 如下圖所示:

Failed to connect to remote vm

因為以前都是可以的,所以百思不得其解,Google了半天,能找到的問題一般也都是因為對方沒有開啟遠端除錯埠,所以自然連不上,但是我這裡顯然不是這個情況。在困惑了好久以後,突然想到會不會是受到了 Eclipse 代理設定的影響?雖然覺得不太可能,因為我的理解是那個代理只是給 Eclipse 本身用的,並不是給通過 Eclipse 啟動的應用程式用的。但是結果證明是這個原因:

代理設定之前:

Network Connection is set to 'Manual'

去掉代理之後,遠端除錯就可以了。

Network Connection is set to 'Direct'

也許有人會覺得無聊,好好的 Eclipse 為什麼要設定個代理呢。
沒辦法啊,兩個原因,一個是公司的網路出去的話會有點困難的;另外一個就是有些Eclipse外掛被牆掉了,比如Maven,所以不得已,只能設定代理來更新外掛了。

這個更改之後還是會出現那個錯誤的話,就是遠端服務的執行緒任務太多了,就需要將該遠端伺服器給重啟一下。【linux命令:reboot】,

重啟完成後可以使用window自帶的telnet客戶端功能來檢視該伺服器的埠是否開啟。【window命令:telnet 遠端伺服器ip 22】.

【telnet安裝地址:程式→控制面板→程式或功能→開啟或關閉window功能→tenlet客戶端】

相關推薦

Eclipse 遠端除錯Failed to connect to remote VM. Connection timed outerror,

最近發現在 Eclipse 中進行遠端除錯別的主機上的應用的時候,總是連線不上除錯埠,報 “Failed to connect to remote vm”, 如下圖所示: 因為以前都是可以的,所以百思不得其解,Google了半天,能找到的問題一般也都是因為對方沒有開啟遠端

Git配置非22端口,解決:ssh: connect to host xxx port 22: Connection timed out fatal: The remote end hung up unexpectedly

name 訪問 基於 .net article 自定義 一個 實現 背景 背景:私自搭建了Git服務器,而Git本身就是SSH進行連接的,而Git命令上默認只能通過22端口實現。 解決方法: 第一種: 在系統的用戶目錄下的文件夾:.ssh 如果該路徑下沒有confi

Fabric-Failed to connect to goo.gl port 443: Connection timed out

轉載 curl -sSL https://goo.gl/Gci9ZX | bash 但是基本上都會遇到下面的錯誤: curl: (7) Failed to connect to goo.gl port 443: Connection timed out 這個問

關於ssh: connect to host master port 22: Connection timed out問題的總結

最近在cnetos6.5系統上重新配置了hadoop-2.2.0,在配置叢集的ssh無祕鑰登入時,經常能碰到ssh: connect to host master port 22: Connection timed out的問題。現在對該問題做一下可能出現的問題的總結和解決

【流水】啟動hdfs的報錯ssh: connect to host master port 22: Connection timed out

報錯如下: [[email protected] sbin]$ ./start-dfs.sh 18/01/24 22:46:38 WARN util.NativeCodeLoader: Unable to load native-hadoop library fo

【Android】TensorFlow出現Connect to storage.googleapis.com:443 ......Connection timed out: connect解決辦法

TensorFlow執行的時候會報以下異常: Error:Execution failed for task ‘:downloadFile’. org.apache.http.conn.HttpHostConnectException: Connect

eclipse遠端除錯時出現:Failed to connect to remote VM. Connection refused. Connection refused: connect

如圖: 以下都是在網路中找的解決方案: 解決方案1:服務是在root 賬戶下啟動的,關掉服務殺掉程序,然後用普通使用者登入重啟服務!(對我無效,因為我的服務不可以用普通使用者啟動) 解決方案2:在Eclipse中找到Run-Debug Configur

【jenkins git】Failed to connect to repository:Error performing command:git.exe ls-remote-h

strong src command for error file 管理 conf blank jenkins使用git源碼管理報錯:Failed to connect to repository:Error performing command:git.exe ls-re

關於Mysql unable to connect to remote host. catalog download has failed.

使用MSI安裝Mysql會在windows中新增一個計劃任務,如下圖。 但網友解決方案是刪除這個計劃,但卻不告知這個任務計劃啟動的操作:"C:\Program Files (x86)\MySQL\MySQL Installer for Windows\MySQLInstallerCon

解決openstack “failed to connect to server (code: 1006)”故障一例

code: 1006 failed 控制臺 新建 openstack版本環境:ocata安裝完成ocata版本後,新建主機實例後,通過管理端進入主機實例的控制臺時,報錯:“failed to connect to server (code: 1006)”解決思路:1、檢查日誌文件,通過日誌尋找

我遇到的錯誤curl: (7) Failed to connect to 127.0.0.1 port 1086: Connection refused

ace bsp port style connect col socks 註釋 ref 今天我用curl命令,無論如何都是出現: curl: (7) Failed to connect to 127.0.0.1 port 1086: Connection refused 找

Android 異常: failed to connect to localhost/127.0.0.1

col host 本地 led style 本地計算機 str 異常 需要 連接本地web服務器,在模擬器不能連接到127.0.0.1。 Android把127.0.0.1當作模擬器本機,而把計算機本地IP設為10.0.2.2,需要把需連接本地計算機web服務地址改為:ht

[轉發]解決 git push Failed to connect to 127.0.0.1 port 45463: 拒絕連接

pre host 導致 占用 span www. git push github con 使用Github pull 代碼突然報錯: Failed to connect to 127.0.0.1 port 43421: Connection refused 使用 ls

zabbix Get value from agent failed: cannot connect to [[10.2.72.132]:10050]: [113] No route to host

http CP 取數 -- OS all alt host zabb 描述:item主動模式可以獲取數據,被動模式不可以。zabbix server無法訪問agent服務器的10050端口 解決:開啟端口即可: redhat 7.x版本 firewall-cmd -

Loadrunner報Failed to connect to server "127.0.0.1"

loadrunner問題描述:使用loadrunner12錄制的腳本,用loadrunner11打開,發現報Failed to connect to server "127.0.0.1:8888"。但是腳本裏並沒有這個地址。經查閱,發現loadrunner12在錄制的時候使用了fiddle

Get value from agent failed: cannot connect to [[127.0.0.1]:10050]: [111] Connection refused

http 9.png emctl 服務器 無法 span gen 進程 運維 監控zabbix服務端這臺服務器,然後顯示Get value from agent failed: cannot connect to [[127.0.0.1]:10050]: [111] Co

LR報:Error 27796 Failed to connect to server

慢慢 action sim prot doc 錯誤 分析 failed 最小 原錯誤信息: Action.c(58): Error -27796: Failed to connect to server "10.1.44.68:7013": [10048] Addr

ansible Failed to connect to the host via ssh: no such identity: /root/.ssh/id_rsa.bak

選項 failed id_rsa 發現 文件 hang 創建 conf nec 中控機和遠端主機配置完密鑰後,在中控臺上通過ansible檢測聯通性 ansible -i inventory.cfg all -m ping 10.1.1.1 | UNREACHABLE!

Docker錯誤 curl: (7) Failed to connect to 127.0.0.1 port 32768: Connection refused

首先我宣告一下,由於我的windows是家庭版,所以我用的是Docker Toolbox 今天試了試Docker,搞了個容器, 想在容器裡面執行一個靜態網頁,於是在容器裡面下載了nginx,下載了vim 然後修改了nginx的配置檔案 我ctrl+p q掛起容器後臺執行 一切順風

解決android6.0開啟攝像頭許可權"Failed to connect to camera service"的問題 ,動態獲取許可權

android6.0使用camera.open()時需要在onCreate()裡面新增如下程式碼,否則會報錯"Failed to connect to camera service": if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)