Run the following command to start Redis: Run the following command to install Redis on Ubuntu:
#Windows install redis update#
Run the following command to update and upgrade Ubuntu:
#Windows install redis password#
You will be asked to enter a username & password (IMPORTANT! Do not forget these as you will require them for any maintenance of this setup) There are multiple ways to do this so I will leave you to investigate what works the best for your environment. If you want to ensure that the WSL is running on reboot etc you should setup a way to activate the linux distribution. Run the distribution through the run command (run > ubuntu1604) or run as administrator from the exe file in the folder you have downloaded.::SetEnvironmentVariable("PATH", $userenv + " C:\Redis on WSL\Ubuntu ", "Machine")$userenv = ::GetEnvironmentVariable("Path", "Machine") $userenv = ::GetEnvironmentVariable("Path", "Machine") Setup a system environment variable for Ubuntu1604 in Powershell (you will need to run as administrator)Īmend this script for your folder reference.Invoke-WebRequest -Uri -OutFile Ubuntu.appx -UseBasicParsing Run the following commands (this example uses an Ubuntu 16.04 distribution as the base but you can adapt to your favoured linux option).cd "C:\Redis on WSL" ( note: the quotes are important if you have spaces in your folder name) Open Powershell and change directory to this folder.In this example I created the folder "C:\Redis on WSL" Create a folder that you will use to store and run this distribution.Open powershell and run the command below (the folder location is not important here)Įnable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linuxĭownload and Setup your favourite Linux Distribution (Distro).Scroll down the list and tick Windows Subsystem for Linux.Click next several times to get to the features option.open the start menu and search for 'Turn Windows features on or off" and select, this will open the Add Roles and Features wizard.You can enable WSL in two ways, through the UI or using Powershell. This allows you to run the latest version of Redis and is an alternative to the process that is explained in the Qlik Alerting installation pre-requisites, you will need to manage this install and any updates and maintenance yourself if you choose this option.Įnable Windows Subsystem for Linux (WSL) on Windows 2019 server
#Windows install redis how to#
This document is provided as an example of how to use the WSL feature in Windows 2019 to run Redis natively in Linux on the same Windows 2019 machine as your Qlik Alerting install.