I am trying to install solr on Amazon EC2. However, I can't access the solr url as some people described in their results. For example, One example shows once I start solr, then I could access the url with port 8080. However it doesn't happen.
我正在尝试在Amazon EC2上安装solr。但是,我无法像其他人在结果中描述的那样访问solr url。例如,一个例子显示一旦我启动solr,然后我可以使用端口8080访问url。但是它不会发生。
http://ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com:8983/solr/admin/
Maybe it is because the version has changed. But another example shows that when I installed Tomcat and visit url link below. It still doesn't work.
也许是因为版本已经改变了。但另一个例子显示,当我安装Tomcat并访问下面的url链接时。它仍然无法正常工作。
http://ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com:8080
But when I do curl, it does show me content in local.
但是当我卷曲时,它确实向我展示了本地的内容。
ubuntu@ip-AAA-BB-C-DD:~/solr/solr-5.1.0$ curl "http://localhost:8080"
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Apache Tomcat</title>
</head>
<body>
<h1>It works !</h1>
Now I am really confused that although I have followed the steps, the solr still can't work online!! How can I make it happen? To be more specific, how can I make those links is browsable? such as http://ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com:8080
and http://ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com:8983/solr/admin/
现在我真的很困惑,虽然我已经按照步骤,solr仍然无法在线工作!我怎样才能实现呢?更具体地说,我如何才能使这些链接可浏览?例如http://ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com:8080和http://ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com:8983/ Solr的/管理/
Note: The error message for visiting the url above is that:
注意:访问上面的URL的错误消息是:
This webpage is not available
ERR_CONNECTION_TIMED_OUT
1 个解决方案
#1
Add a rule in the appropriate security group to enable inbound traffic on port 8080.
在相应的安全组中添加规则以在端口8080上启用入站流量。
Type = Custom TCP Rule
Protocol = TCP
Port = 8080
Source Anywhere / 0.0.0.0/0
#1
Add a rule in the appropriate security group to enable inbound traffic on port 8080.
在相应的安全组中添加规则以在端口8080上启用入站流量。
Type = Custom TCP Rule
Protocol = TCP
Port = 8080
Source Anywhere / 0.0.0.0/0