sh.osa.cubetiqs.com/nginx-setup.sh

19 lines
298 B
Bash
Raw Normal View History

2021-04-03 14:02:31 +07:00
#!/bin/bash
# Catch errors
set -e
# Install updates
sudo apt update && sudo apt upgrade -y
# Install nginx from the latest version of repos
sudo apt install nginx -y
# Enable nginx
sudo systemctl enable nginx
# Start nginx
sudo systemctl start nginx
2021-04-03 14:04:27 +07:00
# Status nginx
sudo systemctl status nginx