Skip to content

Instantly share code, notes, and snippets.

@tohagan
Last active July 31, 2018 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tohagan/d31c2874ebf958866cff711c02310a83 to your computer and use it in GitHub Desktop.
Save tohagan/d31c2874ebf958866cff711c02310a83 to your computer and use it in GitHub Desktop.
WSL Install scripts

Update UBuntu

$ sudo apt-get update

Then, install MySQL:

$ sudo apt-get install mysql-server
  • Note the password you set for the root user during the install.
  • After the install is complete, we can start the service:

Start MySQL

$ /etc/init.d/mysql start

Install node version manager

$ wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash

Reload bash to be sure that ~/.bashrc reloaded

$ . ~/.bashrc

install LTS node version

$ nvm i --lts

Install pm2 globally

$ npm i pm2 -g

Show list of running pm2 tasks

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