Last active
March 17, 2020 18:33
-
-
Save donrestarone/ce257f3bbcb56727b392714516eb8707 to your computer and use it in GitHub Desktop.
install redis-server on raspberry pi using raspbian
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
# navigate to the home directory | |
cd ~ | |
wget http://download.redis.io/redis-stable.tar.gz | |
tar xzf redis* | |
cd redis-stable | |
sudo make | |
make test | |
sudo make install PREFIX=/usr | |
sudo mkdir /etc/redis | |
sudo cp redis.conf /etc/redis/ | |
# create a user without a home directory and without login permissions, this will be the user who will run the redis instance | |
sudo adduser --system --group --disabled-login redis --no-create-home --shell /bin/nologin --quiet | |
# edit the redis config if youd like | |
sudo nano /etc/redis/redis.conf | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment