tar -zxvf elasticsearch-7.14.0-linux-x86_64.tar.gz mv elasticsearch-7.14.0 /opt/elasticsearch-7.14.0 tar -zxvf kibana-7.14.0-linux-x86_64.tar.gz mv kibana-7.14.0-linux-x86_64 /opt/kibana-7.14.0
添加用户
1 2 3 4 5 6 7 8 9 10 11
# 添加账号 useradd es # 修改密码 passwd es # 把用户加入到 root 组 usermod -aG root es # 加入到 sudo 中 sudo vim /etc/sudoers # 添加一行: es ALL=(ALL) ALL su es sudo chown es ./
新 Centos 系统配置
max file
修改
1
sudo vim /etc/security/limits.conf
添加
1 2 3 4
* soft nofile 65536 * hard nofile 65536 * soft nproc 65536 * hard nproc 65536
# 端口 server.port:5601 # 本机IP server.host:"192.168.2.2" #代理下指定一个路径挂载Kibana。 #使用服务器。rewriteBasePath的设置告诉Kibana是否应该删除basePath #此设置不能以斜杠结束。 #server.basePath: "" # 重写前缀为 server.basePath,默认为true. #server.rewriteBasePath: false # Specifies the public URL at which Kibana is available for end users. If # `server.basePath` is configured this URL should end with the same basePath. #server.publicBaseUrl: "" # 请求最大负载大小 #server.maxPayload: 1048576 # 服务名称 #server.name: "your-hostname" # Elasticsearch instances. elasticsearch.hosts: ["http://192.168.2.2:9200"]
# Optional settings that provide the paths to the PEM-format SSL certificate and key files. # These files are used to verify the identity of Kibana to Elasticsearch and are required when # xpack.security.http.ssl.client_authentication in Elasticsearch is set to required. #elasticsearch.ssl.certificate: /path/to/your/client.crt #elasticsearch.ssl.key: /path/to/your/client.key
# Optional setting that enables you to specify a path to the PEM file for the certificate # authority for your Elasticsearch instance. #elasticsearch.ssl.certificateAuthorities: [ "/path/to/your/CA.pem" ] # To disregard the validity of SSL certificates, change this setting's value to 'none'. #elasticsearch.ssl.verificationMode: full
# Time in milliseconds to wait for Elasticsearch to respond to pings. Defaults to the value of # the elasticsearch.requestTimeout setting. #elasticsearch.pingTimeout: 1500
# Time in milliseconds to wait for responses from the back end or Elasticsearch. This value # must be a positive integer. #elasticsearch.requestTimeout: 30000
# List of Kibana client-side headers to send to Elasticsearch. To send *no* client-side # headers, set this value to [] (an empty list). #elasticsearch.requestHeadersWhitelist: [ authorization ]
# Header names and values that are sent to Elasticsearch. Any custom headers cannot be overwritten # by client-side headers, regardless of the elasticsearch.requestHeadersWhitelist configuration. #elasticsearch.customHeaders: {}
# Time in milliseconds for Elasticsearch to wait for responses from shards. Set to 0 to disable. #elasticsearch.shardTimeout: 30000 # List of Kibana client-side headers to send to Elasticsearch. To send *no* client-side # headers, set this value to [] (an empty list). #elasticsearch.requestHeadersWhitelist: [ authorization ]
# Header names and values that are sent to Elasticsearch. Any custom headers cannot be overwritten # by client-side headers, regardless of the elasticsearch.requestHeadersWhitelist configuration. #elasticsearch.customHeaders: {}
# Time in milliseconds for Elasticsearch to wait for responses from shards. Set to 0 to disable. #elasticsearch.shardTimeout: 30000
# Logs queries sent to Elasticsearch. Requires logging.verbose set to true. #elasticsearch.logQueries: false
# Specifies the path where Kibana creates the process ID file. #pid.file: /run/kibana/kibana.pid
# Enables you to specify a file where Kibana stores log output. #logging.dest: stdout
# Set the value of this setting to true to suppress all logging output. #logging.silent: false
# Set the value of this setting to true to suppress all logging output other than error messages. #logging.quiet: false
# Set the value of this setting to true to log all events, including system usage information # and all requests. #logging.verbose: false
# Set the interval in milliseconds to sample system and process performance # metrics. Minimum is 100ms. Defaults to 5000. #ops.interval: 5000
# Specifies locale to be used for all localizable strings, dates and number formats. # Supported languages are the following: English - en , by default , Chinese - zh-CN . #i18n.locale: "en"