2017-06-13 48 views
0

我正在使用Ubuntu的14.04與LAMP堆棧工作和偵聽端口80. 我不記得什麼錯了,現在我從任何HTTP請求終端它嘗試連接到端口8888上的127.0.0.1(端口8888不存在)。任何指導解決這個問題將不勝感激。Linux終端連接到HTTP調用127.0.0.1端口8888

wget http //nmap.org/dist/nmap-5.51.tar.bz2 
--2017-06-13 15:20:11-- http://http/ 
Connecting to 127.0.0.1:8888... failed: Connection refused. 
//nmap.org/dist/nmap-5.51.tar.bz2: Scheme missing. 

git pull 
fatal: unable to access 'https://github.com/SwipBox/admin.git/': Failed to connect to 127.0.0.1 port 8888: Connection refused 

回答

1

此命令

wget http //nmap.org/dist/nmap-5.51.tar.bz2 

需要是:

wget http://nmap.org/dist/nmap-5.51.tar.bz2 

此外,還要確保你沒有任何的環境變量,例如定義http_proxy。如果有疑問,請將--no-proxy傳遞給wget的命令行。

+0

感謝您的回答,我檢查與{printenv http_proxy}命令我看到代理被設置爲127.0.0.1:8888,我如何取消設置,以及我應該保留這個環境變量的值是什麼,所以它不會干擾我的申請? – sT0n3

+1

從Ubuntu系統設置中,單擊網絡圖標,然後檢查網絡代理設置。否則,檢查'〜/ .profile','〜/ .bashrc'或'/ etc'中的任何配置文件。 – selbie