oot@ubuntu1804:/usr/local/elasticsearch-7.6.1# /etc/init.d/elasticsearch start
No passwd entry for user 'elsearch'
elasticsearch is started
root@ubuntu1804:/usr/local/elasticsearch-7.6.1# /usr/local/elasticsearch-7.6.1
bash: /usr/local/elasticsearch-7.6.1: Is a directory
root@ubuntu1804:/usr/local/elasticsearch-7.6.1# curl -XGET http://localhost:9200
curl: (7) Failed to connect to localhost port 9200: Connection refused
root@ubuntu1804:/usr/local/elasticsearch-7.6.1# /etc/init.d/elasticsearch start
No passwd entry for user 'elsearch'
elasticsearch is started
root@ubuntu1804:/usr/local/elasticsearch-7.6.1/config# curl -XGET http://localhost:9200
curl: (7) Failed to connect to localhost port 9200: Connection refused
/usr/local/elasticsearch-7.6.1/config/elasticsearch.yml
------------------------------------ Node ------------------------------------
Use a descriptive name for the node:
#node.name: node-1#自己的节点主机名
node.name: elasticsearch
#node.attr.rack: r1
----------------------------------- Paths ------------------------------------
Path to directory where to store the data (separate multiple locations by comma):
path.data: /var/lib/elasticsearch
Path to log files:
path.logs: /var/log/elasticsearch
----------------------------------- Memory -----------------------------------
Lock the memory on startup:
#bootstrap.memory_lock: true
Make sure that the heap size is set to about half the memory available
on the system and that the owner of the process is allowed to use this
limit.
Elasticsearch performs poorly when the system is swapping the memory.
---------------------------------- Network -----------------------------------
Set the bind address to a specific IP (IPv4 or IPv6):
network.host:127.0.0.1
Set a custom port for HTTP:
http.port: 9200