Ubuntu 16.04安装elasticsearch数据库:

安装:

apt-get install elasticsearch

启动:

/usr/share/elasticsearch/bin/elasticsearch

查看端口:

netstat -ntpl | grep 9200

确认服务:

curl 'http://localhost:9200/?pretty'