3.5. Configuring proxy settings
There are a couple of scenarios where you will need your proxy to be correctly defined at the JVM level so that you
can access documents from Internet. It could be to get the thirdparty libraries if you decided to build JBoss Portal
from the sources, to access RSS feeds or weather information in the samples portlet we provide or for your own
needs.
To set up the proxy settings you will need to know the proxy host and the port to use then add them when starting
java.
Usually setting up JAVA_OPTS environment variable to -Dhttp.proxyHost=YOUR_PROXY_HOST -Dhttp.
proxyPort=YOUR_PROXY_PORT is enough.
There are a couple of scenarios where you will need your proxy to be correctly defined at the JVM level so that you
can access documents from Internet. It could be to get the thirdparty libraries if you decided to build JBoss Portal
from the sources, to access RSS feeds or weather information in the samples portlet we provide or for your own
needs.
To set up the proxy settings you will need to know the proxy host and the port to use then add them when starting
java.
Usually setting up JAVA_OPTS environment variable to -Dhttp.proxyHost=YOUR_PROXY_HOST -Dhttp.
proxyPort=YOUR_PROXY_PORT is enough.
本文介绍如何在Java虚拟机(JVM)级别正确配置代理设置,以便访问互联网上的文档,如第三方库、RSS源或天气信息等。文章详细说明了通过设置JAVA_OPTS环境变量来指定代理主机和端口的方法。
1169

被折叠的 条评论
为什么被折叠?



