Skip to content

Instantly share code, notes, and snippets.

@thanoojgithub
Last active April 21, 2022 13:06
Show Gist options
  • Save thanoojgithub/2e33e50e23a38a912420e8e123ce0093 to your computer and use it in GitHub Desktop.
Save thanoojgithub/2e33e50e23a38a912420e8e123ce0093 to your computer and use it in GitHub Desktop.
Install redis server on ubuntu
thanooj@thanoojWin10Home:~$ sudo apt update
thanooj@thanoojWin10Home:~$ sudo apt upgrade
thanooj@thanoojWin10Home:~$ sudo apt autoremove
thanooj@thanoojWin10Home:~$ sudo apt install redis-server
sudo service redis-server start
or
sudo /etc/init.d/redis-server start
redis-cli
thanooj@thanoojWin10Home:~$ sudo service redis-server start
Starting redis-server: redis-server.
thanooj@thanoojWin10Home:~$ redis-cli
127.0.0.1:6379> PING HelloWorld
"HelloWorld"
127.0.0.1:6379>
127.0.0.1:6379> EXIT
thanooj@thanoojWin10Home:~$
thanooj@thanoojWin10Home:~$ sudo service redis-server status
* redis-server is running
thanooj@thanoojWin10Home:~$ sudo service redis-server stop
Stopping redis-server: redis-server.
thanooj@thanoojWin10Home:~$ sudo service redis-server status
* redis-server is not running
thanooj@thanoojWin10Home:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment