Ubuntu16.04 安装了ES 提示 “curl: (7) Failed to connect to localhost port 9200: Connection refused”
Elasticsearch | 作者 zixiangtingyu | 发布于2017年12月27日 | 阅读数:26177
新手一枚 按照网上教程走的JDK8和es安装
教程链接:[url=http://www.linuxidc.com/Linux/2017-07/145588.htm]http://www.linuxidc.com/Linux/2017-07/145588.htm[/url]
es启动如下:
yu@ubuntu:~$ sudo /etc/init.d/elasticsearch start
[sudo] password for yu:
[ ok ] Starting elasticsearch (via systemctl): elasticsearch.service.
教程最后给出curl命令测试es运行情况
curl -X GET 'http://localhost:9200'
然后此处报错 “curl: (7) Failed to connect to localhost port 9200: Connection refused”
求助下社区,有人遇到过或者能解决这个问题么?
教程链接:[url=http://www.linuxidc.com/Linux/2017-07/145588.htm]http://www.linuxidc.com/Linux/2017-07/145588.htm[/url]
es启动如下:
yu@ubuntu:~$ sudo /etc/init.d/elasticsearch start
[sudo] password for yu:
[ ok ] Starting elasticsearch (via systemctl): elasticsearch.service.
教程最后给出curl命令测试es运行情况
curl -X GET 'http://localhost:9200'
然后此处报错 “curl: (7) Failed to connect to localhost port 9200: Connection refused”
求助下社区,有人遇到过或者能解决这个问题么?
2 个回复
shitangjiejie
赞同来自:
ZhanghuiMing
赞同来自:
sudo service elasticsearch start