Created
October 14, 2015 03:18
-
-
Save Caixiaopig/7bfdbc2c285d8e973a49 to your computer and use it in GitHub Desktop.
Mac下面设置Java的环境变量,可以避免其使用系统代理
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
因为Java不遵守游戏规则,在Mac下面使用系统代理的时候不按照bypass规则来玩,所以只能在启动的java进程的时候去禁止掉了。传入如下参数即可: | |
-Dhttps.proxyHost | |
-Dhttps.proxyPort | |
-Dhttp.proxyHost | |
-Dhttp.proxyPort | |
-DsocksProxyHost | |
-DsocksProxyPort | |
-Djava.net.useSystemProxies=false | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment