You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QingLong/Doc/方法与技巧/Elasticsearch8.11集群安装.txt

66 lines
1.7 KiB

2 years ago
##<23>Ż<EFBFBD>
vi /etc/sysctl.conf
vm.max_map_count=262145
vi /etc/security/limits.conf
* soft nproc 65536
* hard nproc 65536
* soft nofile 65536
* hard nofile 65536
##<23><>ѹ
tar zxvf elasticsearch-8.10.4-linux-x86_64.tar.gz
##<23><><EFBFBD><EFBFBD>
mv elasticsearch-8.10.4 elasticsearch
##<23><><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD>
adduser elasticsearch
echo Dsideal4r5t6y7u | passwd --stdin elasticsearch
chown -R elasticsearch /usr/local/elasticsearch
##<23>޸<EFBFBD><DEB8><EFBFBD><EFBFBD>ã<EFBFBD><C3A3><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>ã<EFBFBD>
vi /usr/local/elasticsearch/config/elasticsearch.yml
##<23><>
cluster.name: szjz
node.name: node1
path.data: /usr/local/elasticsearch/data
path.logs: /usr/local/elasticsearch/logs
network.host: 10.10.14.51
http.port: 9200
transport.port: 9300
discovery.seed_hosts: ["10.10.14.51:9300", "10.10.14.52:9300", "10.10.14.53:9300"]
xpack.security.enabled: false
xpack.security.transport.ssl.enabled: false
##<23><>
cluster.name: szjz
node.name: node2
path.data: /usr/local/elasticsearch/data
path.logs: /usr/local/elasticsearch/logs
network.host: 10.10.14.52
http.port: 9200
transport.port: 9300
discovery.seed_hosts: ["10.10.14.51:9300", "10.10.14.52:9300", "10.10.14.53:9300"]
xpack.security.enabled: false
xpack.security.transport.ssl.enabled: false
##<23><>
cluster.name: szjz
node.name: node3
path.data: /usr/local/elasticsearch/data
path.logs: /usr/local/elasticsearch/logs
network.host: 10.10.14.53
http.port: 9200
transport.port: 9300
discovery.seed_hosts: ["10.10.14.51:9300", "10.10.14.52:9300", "10.10.14.53:9300"]
xpack.security.enabled: false
xpack.security.transport.ssl.enabled: false
##<23><><EFBFBD><EFBFBD>
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
su elasticsearch -l -c "/usr/local/elasticsearch/bin/elasticsearch"
#<23><>̨<EFBFBD><CCA8><EFBFBD><EFBFBD>
su elasticsearch -l -c "/usr/local/elasticsearch/bin/elasticsearch -d"