Sunday, 21 October 2012

How to configure wget on a proxy network in Centos

When your Linux Centos system using Proxy server or your network environment require you to use proxy server to go to internet, you may need to configure wget to enable wget to download through that proxy server.  To enable wget download through proxy server for all user on your Centos system, you need to edit the "/etc/wgetrc" configuration file.

 Backup "wgetrc" configuration file before we start edit the "wgetrc" file.

             [root@sysadmin ~]#   cp   -p   /etc/wgetrc   /etc/wgetrc.bkp

Open the /etc/wgetrc configuration file and Remove the comment tag (#) https_proxy,http_proxy,ftp_proxy and use_proxy then put the proxy server address and proxy server port number.

             [root@sysadmin ~]#   vim   /etc/wgetrc



Test using "wget" to download something from internet..



Now you can able to download from Internet using wget command.

No comments:

Post a Comment