![]() Installing Redis on a Fedora workstation is. sudo apt update sudo apt install redis-server. First, update your system repository, then run the following aptitude command on the terminal shell with root access to install Redis. For additional help or useful information, we recommend you to check the official Redis website. Installing Redis on a Ubuntu or Debian-based system is easy it is available on the official Linux repository. Thanks for using this tutorial for installing the latest version of Redis on the Linux Mint system. You can find more details about redis-cli here.Ĭongratulations! You have successfully installed Redis. We will now test the Redis instance with some commands: $ redis-cliġ27.0.0.1:6379> set test "Redis Working!"įew more examples of redis-cli the command-line tools. After completing any changes, restart the service once: sudo systemctl restart rvice The above configuration tells Redis to remove any key using the LRU algorithm when the max memory of 512mb is reached. You can increase max memory limit as per available on your server: maxmemory 512mb Update the following values in the Redis configuration file according to your requirement. bind 127.0.0.1 line 123: number of Databases database ID is is assgined from 0 to (setting value. port 6379 line 69: listening interface localhost only by default if youd like to connect from other Hosts, change to the own IP address or to 0.0.0.0. rootdlp: vi /etc/redis/nf line 50: listening port. Now, open up the Redis configuration file with your preferred text editor: sudo nano /etc/redis/nf apt-get-y install redis-server 2 Configure basic Settings for Redis. Redis can be started without a configuration file using a built-in default configuration. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |