Skip to content

Instantly share code, notes, and snippets.

@noahjames404
Last active March 24, 2025 19:13
Show Gist options
  • Select an option

  • Save noahjames404/2500930cc1e54f558a7eab7dc2bdc0b1 to your computer and use it in GitHub Desktop.

Select an option

Save noahjames404/2500930cc1e54f558a7eab7dc2bdc0b1 to your computer and use it in GitHub Desktop.
vps linux quick setup
#amazon-linux reference - https://docs.aws.amazon.com/linux/al2023/release-notes/all-packages-AL2023.6.html
sudo dnf update
#installation
sudo dnf install -y vim curl unzip nginx certbot python3-certbot-nginx postgresql16.x86_64 postgresql16-server nodejs git --skip-broken
#nginx
sudo systemctl enable nginx && sudo systemctl start nginx && systemctl status nginx
ln -s /etc/nginx nginx
#postgres
sudo postgresql-setup --initdb && systemctl start postgresql && systemctl enable postgresql && passwd postgres
#nodejs
node -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment