Skip to content

Instantly share code, notes, and snippets.

@itsacoyote
Last active February 19, 2021 08:43
Show Gist options
  • Select an option

  • Save itsacoyote/b6623ed02548437596043853c17c7b8e to your computer and use it in GitHub Desktop.

Select an option

Save itsacoyote/b6623ed02548437596043853c17c7b8e to your computer and use it in GitHub Desktop.
Some guides and descriptions on using some things with WSL #guide

Using databases with WSL https://docs.microsoft.com/en-us/windows/wsl/tutorials/wsl-database

NodeJS: https://docs.microsoft.com/en-us/windows/nodejs/setup-on-wsl2

Redis: https://redis.io/topics/quickstart

Docker: https://docs.docker.com/docker-for-windows/wsl/

MongoDB

To start MongoDB, run mongostart in Ubuntu. This will start up MongoDB and you can access it from Windows using MongoDB Compass.

To stop MongoDB, run mongostop.

To check on the Mongo status, run mongostatus

PostgreSQL

After installing PostgreSQL, there's one more step to make it fully accessible. You need to update your pg_hba.conf file (/etc/postgresql/12/main/pg_hba.conf*). You need to change any line that has peer from

local   all             postgres                                peer

to

local   all             postgres                                md5

Then restart your session and/or restart PostgreSQL

To start Postgres, run pgstart

To stop Postgres, run pgstop

To access Postgres CL, run runpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment