Last active
April 21, 2022 13:06
-
-
Save thanoojgithub/2e33e50e23a38a912420e8e123ce0093 to your computer and use it in GitHub Desktop.
Install redis server on ubuntu
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
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