vim /usr/lib/systemd/system/kibana.service [Unit] Description=kibana After=network.target [Service] Type=simple User=elastic Group=elastic LimitNOFILE=100000 LimitNPROC=100000 Restart=no ExecStart=/home/elastic/kibana/bin/kibana PrivateTmp=true [Install] WantedBy=multi-user.target
kibana配置文件
server.port: 9100 server.host: "0.0.0.0" elasticsearch.hosts: ["http://127.0.0.1:9200"] elasticsearch.username: "elastic" #es开启用户名和密码的时候需要配置 elasticsearch.password: "123456" i18n.locale: "zh-CN" #中文