CeontOS 7.x ELK部署

elasticsearch安装服务器调优

vim /etc/security/limits.conf

* hard nofile 65536
* soft nofile 65536

* soft nproc 2048
* hard nproc 4096

vim /etc/sysctl.conf

vm.max_map_count=262144

sysctl -p

es配置文件

cluster.name: my-elk-cluster
node.name: node1
path.data: /data/es/data
path.logs: /data/es/logs/
bootstrap.memory_lock: false
network.host: 0.0.0.0
http.port: 9200
transport.tcp.port: 9300
transport.tcp.compress: true
discovery.zen.ping.unicast.hosts: ["node1", "node2"]

 nodes安装

1.下载node.js

V8.x: 

#curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -

V7.x:

#curl --silent --location https://rpm.nodesource.com/setup_7.x | bash -

V6.x:

#curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -

V5.x:

#curl --silent --location https://rpm.nodesource.com/setup_5.x | bash -

2.yum安装node.js

yum install -y nodejs

3.查看node.js版本

node -v

猜你喜欢

转载自www.cnblogs.com/sonfer/p/12620744.html
今日推荐