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.
|
|
|
|
##<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
|
|
|
|
|
node.name: node-1
|
|
|
|
|
network.host: 0.0.0.0
|
|
|
|
|
http.port: 9200
|
|
|
|
|
xpack.security.enabled: false
|
|
|
|
|
xpack.security.http.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"
|