Reference: https://www.cnblogs.com/straycats/p/8053937.html
Operating system: Centos7 virtual machine 8G memory jdk8+
Software package download: deploy by rpm https://www.elastic.co/cn/downloads
rpm -ivh elasticsearch-6.4.2.rpm
rpm -ql elasticsearch # default/usr/share/elasticsearch
# Default log directory/var/log/elasticsearch
/etc/elasticsearch/elasticsearch.yml configuration file
path.data #Data directory
path.logs #Log directory
network.host #Listening address
http.port #Listening port
# Start service
systemctl start elasticsearch
systemctl enable elasticsearch
# an examination
netstat -anlpt | grep 9200
curl http://127.0.0.1:9200
See the following content to prove that the startup is successful
rpm -ivh logstash-6.4.2.rpm
/etc/logstash/logstash.yaml configuration file
path.data
path.config
path.logs
# start up(Will be slower)
systemctl start logstash
systemctl enable logstash
ln -s /usr/share/logstash/bin/logstash /bin/
The following proves that the startup is successful
rpm -ivh kibana-6.4.2-x86_64.rpm
/etc/kibana/kibana.yml configuration file
server.port
server.host
elasticsearch.url
kibana.index
# start up
systemctl start kibana
systemctl enable kibana
netstat -anlpt | grep 5601
http://192.168.0.15:5601
Recommended Posts