Apache Linux终端在HTTP调用上连接到127.0.0.1端口8888

Apache Linux终端在HTTP调用上连接到127.0.0.1端口8888,apache,http,ubuntu-14.04,Apache,Http,Ubuntu 14.04,我正在使用Ubuntu14.04,在端口80上运行和监听LAMP堆栈。 我不记得出了什么问题,现在我从终端发出了http请求,它试图连接到端口8888上的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: Connect

我正在使用Ubuntu14.04,在端口80上运行和监听LAMP堆栈。 我不记得出了什么问题,现在我从终端发出了http请求,它试图连接到端口8888上的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
此命令

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

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

另外,确保没有定义任何环境变量,例如
http\u proxy
。如果有疑问,请将
--no proxy
传递到wget的命令行。

感谢您的回答,我使用{printenv http_proxy}命令检查了代理设置为127.0.0.1:8888,如何取消设置,以及应将此环境变量设置为什么值,以便它不会干扰我的应用程序?从Ubuntu系统设置,单击网络图标,然后检查网络代理设置。否则,请检查
~/.profile
~/.bashrc
,或
/etc
中的任何配置文件。