Both Elasticsearch and Kibana version are 6.2.3.Nginx would foward requests from 9201 to 9200.
First,I installed x-pack in Elasticsearch .Then I started up Kibana and it worked .But something was wrong after I installed x-pack in x-pack.When I started up Kibana ,it gived below errors.
log [07:04:52.703] [error][status][plugin:xpack_main@6.2.3] Status changed from yellow to red - Request Timeout after 3000ms
log [07:04:52.704] [error][status][plugin:searchprofiler@6.2.3] Status changed from yellow to red - Request Timeout after 3000ms
log [07:04:52.706] [error][status][plugin:ml@6.2.3] Status changed from yellow to red - Request Timeout after 3000ms
log [07:04:52.707] [error][status][plugin:tilemap@6.2.3] Status changed from yellow to red - Request Timeout after 3000ms
log [07:04:52.708] [error][status][plugin:watcher@6.2.3] Status changed from yellow to red - Request Timeout after 3000ms
log [07:04:52.708] [error][status][plugin:graph@6.2.3] Status changed from yellow to red - Request Timeout after 3000ms
log [07:04:52.709] [error][status][plugin:reporting@6.2.3] Status changed from yellow to red - Request Timeout after 3000ms
log [07:04:52.709] [error][status][plugin:security@6.2.3] Status changed from yellow to red - Request Timeout after 3000ms
log [07:04:52.710] [error][status][plugin:logstash@6.2.3] Status changed from yellow to red - Request Timeout after 3000ms
log [07:04:52.710] [error][status][plugin:elasticsearch@6.2.3] Status changed from yellow to red - Request Timeout after 3000ms
elasticsearch.yml
cluster.name: my-es-cluster
node.name: tc-1
network.host: 127.0.0.1
http.port: 9200
#x-pack
xpack.security.transport.ssl.enabled: false
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: /usr/local/elasticsearch/config/certs/elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: /usr/local/elasticsearch/config/certs/elastic-certificates.p12
kibana.yml
server.name: "elk-kibana"
elasticsearch.url: "http://localhost:9201"
elasticsearch.username: "elastic"
elasticsearch.password: "${ES_PWD}"
Thanks for your help much!