Skip to content

Instantly share code, notes, and snippets.

@donrestarone
Last active March 17, 2020 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donrestarone/ce257f3bbcb56727b392714516eb8707 to your computer and use it in GitHub Desktop.
Save donrestarone/ce257f3bbcb56727b392714516eb8707 to your computer and use it in GitHub Desktop.
install redis-server on raspberry pi using raspbian
# 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