Created
November 18, 2019 15:13
-
-
Save linuxfemale/c733132eb38aa5b50a95e209590e0c4a to your computer and use it in GitHub Desktop.
Redis on Ubuntu 18.04
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
sudo apt update && sudo apt upgrade -y | |
sudo apt-get install redis-server -y | |
sudo vi /etc/redis/redis.conf | |
:setnu | |
make line | |
559 maxmemory 256 | |
and | |
590 maxmemory-policy allkeys-lru | |
:wq | |
sudo systemctl restart redis-server.service | |
sudo systemctl status redis-server.service | |
sudo apt-get install php-redis | |
php -v | |
redis-cli | |
127.0.0.1:6379> ping | |
PONG | |
127.0.0.1:6379> exit | |
redis-cli info | |
redis-cli info stats | |
redis-cli info server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment