kibana systemd
时间: 2023-09-30 22:06:23 浏览: 97
Kibana is a popular open-source data visualization and exploration tool used in conjunction with Elasticsearch. In order to run Kibana as a service on a Linux-based system, you can create a systemd service file.
Here are the steps to create a Kibana systemd service:
1. Open a terminal window on your Linux machine.
2. Create a new systemd service file using your preferred text editor. For example, you can use the nano editor with the following command:
`sudo nano /etc/systemd/system/kibana.service`
3. Add the following content to the file:
```
[Unit]
Description=Kibana
[Service]
Environment="NODE_OPTIONS=--max-old-space-size=3072"
ExecStart=/usr/share/kibana/bin/kibana
Restart=always
User=kibana
Group=kibana
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=kibana
[Install]
WantedBy=multi-user.target
```
4. Save and close the file.
5. Reload the systemd configuration with the following command:
`sudo systemctl daemon-reload`
6. Enable the Kibana service to start automatically at boot time with the following command:
`sudo systemctl enable kibana`
7. Start the Kibana service with the following command:
`sudo systemctl start kibana`
You should now be able to access Kibana by opening a web browser and navigating to the URL http://localhost:5601.
阅读全文