![]() Install PM2 on Ubuntu 18.04 - Ubuntu 19.04 This script installs MongoDB 4.0 and configures it to start automatically on system startup and reboot. Install MongoDB 4.0 on Ubuntu 18.04 - Ubuntu 19.04 This script adds Node.js 10.x to the local package database from NodeSource and then installs it with apt-get.Ĭommand to run gist directly: curl | sudo bash #!/usr/bin/env bash Install Node 10.x & NPM on Ubuntu 18.04 - Ubuntu 19.04 # set pm2 to start automatically on system startupīelow are standalone scripts for installing each of the above pieces of the production web server separately. # set mongodb to start automatically on system startup # create the /etc/apt//mongodb-org-4.0.list file for mongodbĮcho "deb bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt//mongodb-org-4.0.list # add nodejs 10 ppa (personal package archive) from nodesource You can copy the script to your server or run the gist directly with the following command: curl | sudo bash #!/usr/bin/env bash The script is also available on GitHub Gist at. Here's the whole script for setting up a production Ubuntu 18.04 - Ubuntu 19.04 web server with Node, NPM, Mongo, PM2, NGINX and UFW.Įach section is broken up with a big echo label so it's easy to find in the console, and each line has a small comment to describe what it's for. ![]() Whole Script for Ubuntu 18.04 - 19.04 Production Web Server Setup The below scripts can be used to setup and configure a production Node.js + MongoDB Web Server from scratch on Ubuntu 18.04 - Ubuntu 19.04 with the following technologies: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |