Skip to content

Instantly share code, notes, and snippets.

@tolgamorf
Last active January 7, 2022 05:13
Show Gist options
  • Save tolgamorf/c5f36a104c8d827b7f016fe4397a5042 to your computer and use it in GitHub Desktop.
Save tolgamorf/c5f36a104c8d827b7f016fe4397a5042 to your computer and use it in GitHub Desktop.
Ubuntu server setup: Miniconda + Node.js + npm + PM2
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt-get install -y nodejs
sudo npm install pm2@latest -g
# pm2 startup
sudo env PATH=$PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u ubuntu --hp /home/ubuntu
sudo chown ubuntu:ubuntu /home/ubuntu/.pm2 /home/ubuntu/.pm2/rpc.sock /home/ubuntu/.pm2/pub.sock
conda install -y python-rapidjson regex twisted click
pip install python-binance python-coinzo
@tolgamorf
Copy link
Author

tolgamorf commented Jul 3, 2019

wget https://gist.github.com/tolgamorf/c5f36a104c8d827b7f016fe4397a5042/raw/3a1e88d2da40706d2046f8119f0c4fb24a1b9649/ubuntu-server-setup.sh
bash ubuntu-server-setup.sh

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