Install Redis on Ubuntu 18.04 & 16.04 LTS Rumi, May 23, 2020 Step 1 – Prerequsities Log in to your system with sudo privilege account using shell access, to which you need to install Redis. ssh ubuntu@remote Update the apt-get packages index files and also update existing packages to the newest versions by using the following commands: sudo apt-get update sudo apt-get upgrade Step 2 – Installing Redis The Redis packages are available under the default apt repository. For the installation of Redis on an Ubuntu VPS. Run below command from the terminal to install Redis on your machine: sudo apt-get install redis-server Next is to enable Redis to start on system boot. Also restart Redis service once. sudo systemctl enable redis-server.service Step 3 – Configure Redis Redis can be started without a configuration file using a built-in default configuration. But to make any extra parameter changes you can use its configuration file that is: /etc/redis/redis.conf. Edit the Redis configuration file in a text editor to make changes sudo vim /etc/redis/redis.conf Update the following values in Redis configuration file according to your requirement. You can increase max memory limit as per available on your server. maxmemory 256mb maxmemory-policy allkeys-lru The above configuration tells Redis to remove any key using the LRU algorithm when the max memory of 256mb is reached. Save the configuration file and restart the Redis service: sudo systemctl restart redis-server.service Step 4 – Install Redis PHP Extension Now, if you need to use Redis from PHP application, you also need to install Redis PHP extension on your Ubuntu system. Run below command to install: sudo apt-get install php-redis Step 5 – Test Connection to Redis Server Use redis-cli tool to verify the connection between the Redis server. redis-cli 127.0.0.1:6379> ping PONG 127.0.0.1:6379> Few more examples of redis-cli command line tool. You can find more details about redis-cli here. redis-cli info redis-cli info stats redis-cli info server Related Administrations Configurations (Linux) RedisUbuntuUbuntu 18
Upgrading WordPress Core Manually April 14, 2022April 14, 2022 First create a full backup of your website. This is very important in case you make a mistake. Download the newest WordPress ZIP file from wordpress.org. Unzip the file into a directory on your local machine or in a separate directory on your website. Deactivate all of the plugins on… Read More
Find Ethernet Connection Speed July 29, 2018 Type the following command to get speed for eth0: $ ethtool eth0 | less OR $ ethtool eth0 | grep -i speed You can also use the following two commands: $ dmesg | grep eth0 | grep up $ dmesg | grep bond0 | grep up OR use the command… Read More
Running Zimbra on HTTPS June 11, 2012 1. First you need to su as 'zimbra' user 2. go to /opt/zimbra/bin/ 3. Use the following commands to enable SSL: ./zmtlsctl https ./zmcontrol restart Now it's working like a charm. For other readers: I can only access to webclient by SSL now (but that's ok for me). other options… Read More