Requirements: When configuring the environment during the initial phase of the project, the software cannot be installed properly because many machines do not have an extranet address
Solution: setting up the agent with POLIPO can solve this problem quickly and easily
Polipo Configuration under Ubuntu12.04
Prerequisite: First to prepare a machine to access the external network installation Polipo.
1, installation
Apt-get Install Polipo
2,vim/etc/polipo/config
Add the following two lines:
proxyaddress = "0.0.0.0" # IPV4 only
ProxyPort = #指定端口
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
3, edit to save exit after completion,
4, start
/etc/init.d/polipo start
5, other machines if you need to access the external network installation software, run the following command to set the environment variables, then you can access the extranet
Export http_proxy=http://10.1.1.1:1080
^
IP is a machine IP configured with Polipo
6, check whether the setting is OK, can run export view
Tips: The software will read this parameter during installation, this configuration fails after restart, if you want to use for a long time, please modify the/etc/profile file
Setting up a proxy with Polipo