openSUSE proxy代理端口返回錯誤
openSUSE    2016-07-13 19:15:45    260    0    0
tianwaifeixian   openSUSE

命令行更新系統總是出現什麼8087端口拒絕連接 

之前用過xx-net爬梯子 估計是這裏的原因

論壇問了一下 修改系統的代理文件

沒修改之前的文件:

liangzi@suse:~> echo $http_proxy
http://127.0.0.1:8087/
liangzi@suse:~> cat /etc/sysconfig/proxy
## Path: Network/Proxy
## Description:
## Type: yesno
## Default: no
## Config: kde,profiles
#
# Enable a generation of the proxy settings to the profile.
# This setting allows to turn the proxy on and off while
# preserving the particular proxy setup.
#
PROXY_ENABLED="no"

## Type: string
## Default: ""
#
# Some programs (e.g. lynx, arena and wget) support proxies, if set in
# the environment.
# Example: HTTP_PROXY="http://proxy.provider.de:3128/"
HTTP_PROXY="http://127.0.0.1:8086/proxy.pac"

## Type: string
## Default: ""
#
# Some programs (e.g. lynx, arena and wget) support proxies, if set in
# the environment.
# This setting is for https connections
HTTPS_PROXY="http://127.0.0.1:8086/proxy.pac"

## Type: string
## Default: ""
#
# Example: FTP_PROXY="http://proxy.provider.de:3128/"
#
FTP_PROXY="http://127.0.0.1:8086/proxy.pac"

## Type: string
## Default: ""
#
# Example: GOPHER_PROXY="http://proxy.provider.de:3128/"
#
GOPHER_PROXY=""

## Type: string(localhost)
## Default: localhost
#
# Example: NO_PROXY="www.me.de, do.main, localhost"
#
NO_PROXY="localhost, 127.0.0.1"

## Type: string
## Default: ""
#
# Example: SOCKS_PROXY="socks://proxy.example.com:8080"
#
SOCKS_PROXY=""

## Type: string
## Default: ""
#
# Example: SOCKS5_SERVER="office-proxy.example.com:8881"
#
SOCKS5_SERVER=""

截圖:

修改之後:

最後把~.bashr裏面環境變量全部註銷掉

搞定~

上一篇: vimrc

下一篇: 生姜与白酒

260 人读过
立即登录, 发表评论.
没有帐号? 立即注册
0 条评论
文档导航