2017-06-13 142 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