使用Charles Proxy监控Tomcat服务

fafcakar  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(70)

我正在使用Charles Proxy来监控tomcat服务中的流量,在阅读文档后,我在 Catalina .bat中添加了一行:
设置JAVA_OPTS=%JAVA_OPTS% -代理路径:C:\yjpagent.dll -Dhttps.proxyHost= 127.0.0.1-Dhttps.proxyPort=8888 -Dhttp.proxyHost= 127.0.0.1-Dhttp.proxyPort=8888
但是Charles Proxy在服务运行时不显示任何内容。
知道我该怎么做吗
先谢了。

b1uwtaje

b1uwtaje1#

更改此内容:

-Dhttps.proxyHost=127.0.0.1 -Dhttp.proxyHost=127.0.0.1

字符串

收件人:

-Dhttps.proxyHost=localhost.charlesproxy.com  -Dhttp.proxyHost=localhost.charlesproxy.com

文档:here

如果这对你不起作用。将下面的内容添加到文件/etc/hosts

127.0.0.1  localhost.charlesproxy.com

相关问题