Haoyu Chen
Haoyu Chen

Reputation: 1810

Can't Install solr on Amazon EC2

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.

 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.

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/

Note: The error message for visiting the url above is that:

This webpage is not available

ERR_CONNECTION_TIMED_OUT

Upvotes: 0

Views: 1575

Answers (1)

Finbarr
Finbarr

Reputation: 486

Add a rule in the appropriate security group to enable inbound traffic on port 8080.

Type = Custom TCP Rule
Protocol = TCP
Port = 8080
Source Anywhere / 0.0.0.0/0

enter image description here

Upvotes: 1

Related Questions