Skip to content

Instantly share code, notes, and snippets.

@Axure
Last active November 25, 2017 12:24
Show Gist options
  • Save Axure/4635e4a07ac12cc4324999acdfc3d7e6 to your computer and use it in GitHub Desktop.
Save Axure/4635e4a07ac12cc4324999acdfc3d7e6 to your computer and use it in GitHub Desktop.
VPS Production Script
sudo apt update
sudo apt install --install-recommends linux-generic-hwe-16.04
sudo echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
sudo echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sudo sysctl -p
sudo apt install git zsh nginx
sudo sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt install -y nodejs
sudo apt install software-properties-common
sudo add-apt-repository ppa:certbot/certbot
sudo apt update
sudo apt install python-certbot-nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment