Skip to content

Instantly share code, notes, and snippets.

@alydemah
Created August 20, 2019 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alydemah/7663f57bbd7ddd2827a9e1a674913577 to your computer and use it in GitHub Desktop.
Save alydemah/7663f57bbd7ddd2827a9e1a674913577 to your computer and use it in GitHub Desktop.
myNginxCheatSheet

To install latest stable nginx server, run the following yum command: $ sudo yum install nginx

Stop Nginx command $ sudo systemctl stop nginx

Restart Nginx command $ sudo systemctl restart nginx

Find status of Nginx server command $ sudo systemctl status nginx

Step 4 – Open port 80 and 443 using firewall-cmd You must open and enable port 80 and 443 using the firewall-cmd command: $ sudo firewall-cmd --permanent --zone=public --add-service=http $ sudo firewall-cmd --permanent --zone=public --add-service=https $ sudo firewall-cmd --reload

Verify that port 80 or 443 opened using ss command: $ sudo ss -tulpn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment