wget\yum配置代理模式
来源:互联网 发布:招聘淘宝客服 编辑:程序博客网 时间:2024/05/01 19:01
前言:
[root@minimal ~]# cat /etc/redhat-releaseCentOS Linux release 7.3.1611 (Core)
众所周知,由于某些原因,国内访问很多外网速度奇慢,导致我们在安装软件的时候很慢很慢,这个时候,我们可以使用代理来解决这个问题:
注意:优先使用国内yum源!参考链接:
好了,来说说配置代理的事情:
一.系统全局的代理设置;
用vi/vim编辑器打开/etc/profile,追加如下内容:
http_proxy=http://192.168.1.100:1080ftp_proxy=http://192.168.1.100:1080export http_proxyexport ftp_proxy
如果需要输入账号和密码,则追加的内容如下:
http_proxy=http://username:passwd@192.168.1.100:1080ftp_proxy=http://username:passwd@192.168.1.100:1080export http_proxyexport ftp_proxy
另外,如果不想做全局配置,只为某一用户配置,例如root,则可以将上述内容之一配置追加到/root/.bash_profile
二.yum的代理设置;
用vi/vim编辑器打开/etc/yum.conf,追加如下内容:
http_proxy=http://192.168.1.100:1080ftp_proxy=http://192.168.1.100:1080
或者:
http_proxy=http://192.168.1.100:1080ftp_proxy=http://192.168.1.100:1080proxy_username=usernameproxy_password=password
另外,ubuntu的OS apt-get代理联网设置可以用如下方法:
echo ‘Acquire::http::proxy “http://192.168.1.100:1080;’ > /etc/apt/apt.conf
三.wget的代理设置;
用vi/vim编辑器打开/etc/wgetrc,找到代理设置所在行,然后追加如下内容:
# You can set the default proxies for Wget to use for http, https, and ftp.# They will override the value in the environment.#https_proxy = http://proxy.yoyodyne.com:18023/#http_proxy = http://proxy.yoyodyne.com:18023/#ftp_proxy = http://proxy.yoyodyne.com:18023/http_proxy=http://192.168.1.100:1080/ftp_proxy=http://192.168.1.100:1080/
前言:
[root@minimal ~]# cat /etc/redhat-releaseCentOS Linux release 7.3.1611 (Core)
众所周知,由于某些原因,国内访问很多外网速度奇慢,导致我们在安装软件的时候很慢很慢,这个时候,我们可以使用代理来解决这个问题:
注意:优先使用国内yum源!参考链接:
好了,来说说配置代理的事情:
一.系统全局的代理设置;
用vi/vim编辑器打开/etc/profile,追加如下内容:
http_proxy=http://192.168.1.100:1080ftp_proxy=http://192.168.1.100:1080export http_proxyexport ftp_proxy
如果需要输入账号和密码,则追加的内容如下:
http_proxy=http://username:passwd@192.168.1.100:1080ftp_proxy=http://username:passwd@192.168.1.100:1080export http_proxyexport ftp_proxy
另外,如果不想做全局配置,只为某一用户配置,例如root,则可以将上述内容之一配置追加到/root/.bash_profile
二.yum的代理设置;
用vi/vim编辑器打开/etc/yum.conf,追加如下内容:
http_proxy=http://192.168.1.100:1080ftp_proxy=http://192.168.1.100:1080
或者:
http_proxy=http://192.168.1.100:1080ftp_proxy=http://192.168.1.100:1080proxy_username=usernameproxy_password=password
另外,ubuntu的OS apt-get代理联网设置可以用如下方法:
echo ‘Acquire::http::proxy “http://192.168.1.100:1080;’ > /etc/apt/apt.conf
三.wget的代理设置;
用vi/vim编辑器打开/etc/wgetrc,找到代理设置所在行,然后追加如下内容:
# You can set the default proxies for Wget to use for http, https, and ftp.# They will override the value in the environment.#https_proxy = http://proxy.yoyodyne.com:18023/#http_proxy = http://proxy.yoyodyne.com:18023/#ftp_proxy = http://proxy.yoyodyne.com:18023/http_proxy=http://192.168.1.100:1080/ftp_proxy=http://192.168.1.100:1080/
四、设置firefox上网代理:
设置路径,Edit–> Preferences–>Advanced–>Network–>Settings.
测试一下:
速度杠杠的!如果需要像我这样的VPN,可以留言哦。
- wget\yum配置代理模式
- 配置Linux wget,yum 使用代理访问网络
- yum 和 wget 使用代理
- 【转】YUM, WGET代理设置
- CentOS设置代理, yum, wget
- 为 SVN WGET YUM 设置 HTTP 代理
- redhat6 yum代理配置
- linux下http https ftp yum wget git 代理
- yum repo的配置,yum代理配置
- 【已解决】配置wget网络代理问题
- linux wget rpm yum
- wget 与yum
- 为FC12使用yum配置代理
- centos 使用代理上网,yum配置
- 配置yum源 --- FTP模式
- wget与代理设置
- WGET 通过代理下载
- wget代理设置
- Lombok 安装、入门
- js做出來的放大镜的效果
- Linux字符设备驱动程序开发
- Spark集群无法停止的原因分析和解决
- J-linkage算法学习
- wget\yum配置代理模式
- 了解MySql中的 事务
- 史上最全的前端面试题
- 技术点个人理解
- jupyter notebook 安装多个版本kernel(python2 和python3)
- Spring Data Redis(Repositories-Queries and Query Methods)
- 初学:nodejs有关Mongodb的使用
- 【动态规划】换零钱问题用一维动态规划解决,没有数量限制可以用一维
- 第二章:2.7 当浏览器端口被占用,使用 runserver来指定 端口