Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
RSelenium服务器问题_R_Selenium_Amazon Ec2_Rselenium - Fatal编程技术网

RSelenium服务器问题

RSelenium服务器问题,r,selenium,amazon-ec2,rselenium,R,Selenium,Amazon Ec2,Rselenium,我正在尝试使用RSelenium,到目前为止,我使用下面的代码在我的本地计算机(在我的rstudioide上)上启动Selenium服务器,没有问题。 但是我现在正在RStudio上处理一个AWS EC2实例,同样的代码不再工作了,所以我有点困惑 [1] “连接到远程服务器”无法打开chrome浏览器。 客户端错误消息:httr调用中存在未定义的错误。httr输出: 无法连接到本地主机端口4567:连接被拒绝检查 有关详细信息,请参阅服务器日志。警告消息:在rsDriver()中:可能 不确定服

我正在尝试使用RSelenium,到目前为止,我使用下面的代码在我的本地计算机(在我的rstudioide上)上启动Selenium服务器,没有问题。 但是我现在正在RStudio上处理一个AWS EC2实例,同样的代码不再工作了,所以我有点困惑

[1] “连接到远程服务器”无法打开chrome浏览器。 客户端错误消息:httr调用中存在未定义的错误。httr输出: 无法连接到本地主机端口4567:连接被拒绝检查 有关详细信息,请参阅服务器日志。警告消息:在rsDriver()中:可能 不确定服务器状态

devtools::install_github(“约翰哈里森/宾曼”)
devtools::安装github(“johndharison/wdman”)
开发工具::安装github(“ropensci/RSelenium”)
图书馆(资源库)
图书馆(wdman)
研发部
devtools::install_github("johndharrison/binman")
devtools::install_github("johndharrison/wdman")
devtools::install_github("ropensci/RSelenium")

library(RSelenium)
library(wdman)

rD<- rsDriver()