Created
June 27, 2019 21:55
-
-
Save matzefriedrich/83a0c8f880d2cc5e9fe9773a8f80031f to your computer and use it in GitHub Desktop.
Install Redis on Debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # assuming the system is fresh and clean, we need to install the following additional packages | |
| apt-get update && apt-get -y install curl build-essential | |
| # download latest Redis release; see: https://redis.io/download | |
| cd /tmp | |
| curl http://download.redis.io/releases/redis-5.0.5.tar.gz --output redis-5.0.5.tar.gz | |
| tar xvzf redis-5.0.5.tar.gz | |
| # build Redis | |
| cd redis-5.0.5 | |
| make | |
| # install binaries (client) | |
| cd src | |
| cp redis-cli /usr/local/bin/ && chmod 755 /usr/local/bin/redis-cli | |
| # proceed with additional applications, such as Redis server and such | |
| cp redis-server /usr/local/bin/ && chmod 755 /usr/local/bin/redis-server | |
| cp redis-benchmark /usr/local/bin/ && chmod 755 /usr/local/bin/redis-benchmark | |
| cp redis-check-aof /usr/local/bin/ && chmod 755 /usr/local/bin/redis-check-aof | |
| cp redis-check-rdb /usr/local/bin/ && chmod 755 /usr/local/bin/redis-check-rdb | |
| cp redis-sentinel /usr/local/bin/ && chmod 755 /usr/local/bin/redis-sentinel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment