Created
January 18, 2018 10:19
-
-
Save marinsagovac/b78c137bc7cfbfd9c7f930c96a2271ee to your computer and use it in GitHub Desktop.
Redis Ubuntu PHP
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
| # Install Redis | |
| sudo apt-get install redis-server | |
| sudo apt-get install php-redis | |
| sudo nano /etc/redis/redis.conf | |
| Edit: | |
| maxmemory 128mb | |
| maxmemory-policy allkeys-lru | |
| sudo systemctl restart redis-server.service | |
| sudo systemctl enable redis-server.service | |
| # Using Redis | |
| redis-cli monitor | |
| redis-cli | |
| Purge cache: | |
| flushall | |
| # Redis VPS Hosting | |
| https://www.rosehosting.com/redis-hosting.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment