The http_proxy Environment Variable
来源:互联网 发布:东奥会计怎么样 知乎 编辑:程序博客网 时间:2024/04/29 19:11
If you use a proxy server or firewall, you may need to set the http_proxy environment variable in order to access some url from commandline.
Example : Installing ppm for perl or applying rpm in linux ,updating ubuntu
Set the http_proxy variable with the hostname or IP address of the proxy server:
http_proxy=http://proxy.example.org
If the proxy server requires a user name and password, include them in the following form:
http_proxy=http://username:password@proxy.example.org
If the proxy server uses a port other than 80, include the port number:
http_proxy=http://username:password@proxy.example.org:8080
Windows XP
Linux, Solaris or HP-UX
Set the http_proxy environment variable using the command specific to your shell (e.g.
Example : Installing ppm for perl or applying rpm in linux ,updating ubuntu
Set the http_proxy variable with the hostname or IP address of the proxy server:
http_proxy=http://proxy.example.org
If the proxy server requires a user name and password, include them in the following form:
http_proxy=http://username:password@proxy.example.org
If the proxy server uses a port other than 80, include the port number:
http_proxy=http://username:password@proxy.example.org:8080
Windows XP
- Open the Control Panel and click the System icon.
The System Properties dialog is displayed. - On the Advanced tab, click on Environment Variables.
The Environment Variables dialog is displayed. - Click New in the System variables panel.
The New Sytem Variable dialog is displayed. - Add
http_proxy
with the appropriate proxy information (see examples above).
Linux, Solaris or HP-UX
Set the http_proxy environment variable using the command specific to your shell (e.g.
set
orexport
). To make this change persistent, add the command to the appropriate profile file for the shell. For example, in bash
, add a line like the following to your .bash_profile or .bashrc file:http_proxy=http://username:password@hostname:port; export $http_proxy
0 0
- The http_proxy Environment Variable
- Configure the environment variable
- The CATALINA_HOME environment variable
- Environment variable: "PATH" - This test checks whether the length of the environment variable "PATH
- Environment variable
- The BASEDIR environment variable is not defined correctly This environment variable is needed to run
- The BASEDIR environment variable is not defined correctly This environment variable is needed to run
- The BASEDIR environment variable is not defined correctly This environment variable is needed to ru
- the java_home environment variable is not defined correctly This environment variable is needed to r
- Tomcat之the jre_home environment variable is not defined correctly this environment variable is need
- The JRE_HOME environment variable is not defined correctly This environment variable is needed 。。。
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
- 第三方插件
- Java:Java程序员进阶
- iOS微信支付开发
- Android使用AsynchronousHttpClient
- cle IMP-00015: 由于对象已存在, 下列语句失败
- The http_proxy Environment Variable
- Linux workqueue工作原理
- background-size 设置背景图片的大小
- UI界面-相对布局
- Javascript:json与字符串
- matlab学习笔记(一)---二维绘图
- 利用AIDL来实现由Binder进行进程间通信(IPC)
- Multi-label learning 第一周
- 如何定位和解决Andorid的内存溢出问题