Installing Kibana 4 on CentOS 7
Prerequisites
- Nginx already installed
Environment
- CentOS Linux release 7.0.1406 (Core)
- Nginx 1.9.3
- Kibana 4.1.1
Installing Kibana
1 | $ cd /usr/local/src |
Editing the Kibana Configuration File
1 | $ vi /usr/local/src/kibana-4.1.1-linux-x64/config/kibana.yml |
- Specifying the host
By default it is set to 0.0.0.0.
This time we build it on the same server, so we set it to localhost and save.
1 | - host: "0.0.0.0" |
With this setting, Kibana becomes accessible at localhost.
Creating the Kibana Runtime Path
1 | $ sudo mkdir -p /opt/kibana |
With the above setup, you can run Kibana with the following command.
1 | /opt/kibana/bin/kibana |
The above is good enough, but Kibana stops when the machine is rebooted.
So we create a startup script and register it as a service.
Creating the Startup Script
1 | $ sudo vi /etc/systemd/system/kibana4.service |
- kibana4.service
1 | [Service] |
Save the above.
Starting / Registering the Service
1 | $ sudo systemctl start kibana4 |
Installing Nginx
Please refer to the following.

Editing the Nginx Configuration File
Use a reverse proxy to forward to the Kibana 4 port (5601).
1 | $ sudo vi /etc/nginx/conf.d/default.conf |
1 | server { |
After saving the configuration above, restart Nginx.
1 | $ sudo systemctl restart nginx |
Accessing and Verifying
If it displays as shown below, everything is working fine.
That’s all.
Reference Articles
Introduction to Systemd (4) - Configuration files for service-type Units
About the Startup Script - Explanation of Each Item
About [Unit]
| Option | Description |
|---|---|
| Description | Description text of the Unit |
| Documentation | URI of the documentation |
| Requires | Prerequisite Units this Unit needs |
| Wants | Prerequisite Units this Unit needs |
| After | Units that should start before this Unit |
| Before | Units that should start after this Unit |
About [Install]
| Option | Description |
|---|---|
| WantedBy | On enable, creates a link in this Unit’s .wants directory |
| RequiredBy | On enable, creates a link in this Unit’s .required directory |
| Also | Units to enable/disable simultaneously on enable/disable |
| Alias | On enable, provides an alias for this Unit |
↓ This book was a huge help to me ♪
Installing Kibana 4 on CentOS 7
https://kenzo0107.github.io/en/2015/08/20/install-kibana-on-centos7/