簡體   English   中英

在JAVA_OPTS中繞過非代理主機

[英]Bypassing non proxy hosts in JAVA_OPTS

我在standalone.conf.bat中添加非代理主機來獲取門戶網站服務器

-Dhttp.proxyHost=10.111.1.00 -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=localhost|127.0.0.1|172.16.31.* "

當我啟動服務器時出現以下錯誤。

c:\jboss-jpp-6.1.0\jboss-jpp-6.1\bin>standalone.bat
Calling "c:\jboss-jpp-6.1.0\jboss-jpp-6.1\bin\standalone.conf.bat"
'127.0.0.1' is not recognized as an internal or external command,
operable program or batch file.

不能發表評論,因為我沒有足夠的聲譽。 當我在Windows中將其設置為環境變量時,我也遇到了這個問題。 事實證明你需要使用^來逃避 而不是字符。

http://www.robvanderwoude.com/useless.php#EscapeChar

所以這對我有用

-Dhttp.nonProxyHosts=localhost^|127.0.0.1^|*.foo.com

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM