无法创建 WWW:Mechanize::Firefox 的实例
我刚刚安装了 WWW:Mechanize::Firefox
,但是当我尝试创建这个“类”的实例时:
my $mech = WWW::Mechanize::Firefox->new();
我收到此错误:
Failed to connect to , problem connecting to "localhost", port 4242:
No connection could be made because the target machine
actively refused it.
at C:/strawberry/perl/site/lib/MozRepl/Client.pm line 144
有人可以帮忙吗?
I've just installed WWW:Mechanize::Firefox
, but when I tried to create an instance of this "class":
my $mech = WWW::Mechanize::Firefox->new();
I get this error:
Failed to connect to , problem connecting to "localhost", port 4242:
No connection could be made because the target machine
actively refused it.
at C:/strawberry/perl/site/lib/MozRepl/Client.pm line 144
Can anyone help please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须安装mozrepl并在菜单
工具→ MozRepl→开始
中启动它。You must install mozrepl and start it in the menu
Tools → MozRepl → Start
.除了安装和启动 firefox/mozrepl 之外,主动拒绝连接通常是防火墙的工作,因此您需要学习如何使用本地防火墙以允许 mozrepl 侦听来自本地主机的连接
In addition to installing and starting firefox/mozrepl, an actively refused connection is frequently the work of a FIREWALL, so you need to learn to work your local firewall to allow mozrepl to listen for connections from localhost