1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

41 lines
1.3 KiB
Markdown
Raw Normal View History

2020-03-05 17:23:56 -05:00
# Redis Installation
## Install Redis
2020-02-26 11:40:31 -05:00
[Redis](https://redis.io/) is an in-memory key-value store which NetBox employs for caching and queuing. This section entails the installation and configuration of a local Redis instance. If you already have a Redis service in place, skip to [the next section](3-netbox.md).
2021-11-04 15:18:58 -04:00
!!! warning "Redis v4.0 or later required"
2020-07-20 16:53:04 -04:00
NetBox v2.9.0 and later require Redis v4.0 or higher. If your distribution does not offer a recent enough release, you will need to build Redis from source. Please see [the Redis installation documentation](https://github.com/redis/redis) for further details.
2020-07-16 11:28:19 -04:00
2021-02-24 21:21:17 -05:00
=== "Ubuntu"
2020-02-26 11:40:31 -05:00
2021-02-24 21:21:17 -05:00
```no-highlight
sudo apt install -y redis-server
```
2020-02-26 11:40:31 -05:00
2021-02-24 21:21:17 -05:00
=== "CentOS"
2020-02-26 11:40:31 -05:00
2021-02-24 21:21:17 -05:00
```no-highlight
sudo yum install -y redis
sudo systemctl start redis
sudo systemctl enable redis
```
2020-02-26 11:40:31 -05:00
2021-11-04 15:18:58 -04:00
Before continuing, verify that your installed version of Redis is at least v4.0:
```no-highlight
redis-server -v
```
You may wish to modify the Redis configuration at `/etc/redis.conf` or `/etc/redis/redis.conf`, however in most cases the default configuration is sufficient.
2020-02-26 11:40:31 -05:00
## Verify Service Status
Use the `redis-cli` utility to ensure the Redis service is functional:
```no-highlight
redis-cli ping
2020-02-26 11:40:31 -05:00
```
If successful, you should receive a `PONG` response from the server.