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.
35 lines
842 B
35 lines
842 B
##优化
|
|
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
|
|
|
|
##解压
|
|
tar zxvf elasticsearch-8.10.4-linux-x86_64.tar.gz
|
|
|
|
##改名
|
|
mv elasticsearch-8.10.4 elasticsearch
|
|
|
|
##增加用户
|
|
adduser elasticsearch
|
|
echo Dsideal4r5t6y7u | passwd --stdin elasticsearch
|
|
chown -R elasticsearch /usr/local/elasticsearch
|
|
|
|
##修改配置(主要配置)
|
|
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
|
|
|
|
##启动
|
|
#调试启动
|
|
su elasticsearch -l -c "/usr/local/elasticsearch/bin/elasticsearch"
|
|
#后台启动
|
|
su elasticsearch -l -c "/usr/local/elasticsearch/bin/elasticsearch -d" |