useful devops commands
sudo apt-get -y install nginx
Remove:
sudo apt-get purge nginx nginx-common
curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get update
sudo apt-get -y install software-properties-common
sudo add-apt-repository -y universe
sudo add-apt-repository -y ppa:certbot/certbot
sudo apt-get update
sudo apt-get -y install certbot python-certbot-nginx
https://certbot.eff.org/docs/using.html#certbot-command-line-options
Will ask for an email. Optional: --email [email protected]
Will ask for domain. Optional: --domain domain.com
Make it non-interactive: -n
sudo certbot --nginx --agree-tos --redirect --email [email protected]