Skip to content

yashacon/Django-ChatAPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django-ChatAPP

Need to run a redis server at 127.0.0.1:6379 to properly implement the app

In Order to run a redis server on windows, Windows Subsystem for Linux (WSL) can be used

1.To enable Windows Subsystem for Linux, follow the instructions on Microsoft Docs. The short version is: In Windows 10, Microsoft replaces Command Prompt with PowerShell as the default shell. Open PowerShell as Administrator and run this command to enable Windows Subsystem for Linux (WSL):

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

2.Reboot Windows after making the change—note that you only need to do this one time.

3.Download and install one of the supported Linux distros from the Microsoft Store.

Now to run Redis Server

1.Launch the installed distro from your Windows Store and then install redis-server. The following example works with Ubuntu (you’ll need to wait for initialization and create a login upon first use):

> sudo apt-get update
> sudo apt-get upgrade
> sudo apt-get install redis-server
> redis-cli -v

2.Restart the Redis server to make sure it is running:

> sudo service redis-server restart

3.Execute a simple Redis command to verify your Redis server is running and available:

$ redis-cli 
127.0.0.1:6379> set user:1 "Jane"
127.0.0.1:6379> get user:1
"Jane"

4.To stop your Redis server:

> sudo service redis-server stop

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published