

To disable the NGINX service, preventing it from beginning automatically at system startup, use: sudo systemctl disable nginx You can then restart the NGINX service using the following command: sudo systemctl start nginx Stop the NGINX service using the following command: sudo systemctl stop nginx View the current status of the NGINX service using the following command: sudo systemctl status nginx The NGINX service runs on systemd, which means you can manage it using systemctl commands. You can find it by navigating to your server’s domain name or its IP address.įor example, if your domain name is, navigate to if your IP address is 192.0.2.0, you can instead navigate to. Visit the default NGINX page to see your installation in action. Refer to our Introduction to FirewallD on CentOS for more on how to use FirewallD for managing your server’s firewall. Sudo firewall-cmd -zone=public -add-service=http -permanent sudo firewall-cmd -zone=public -add-service=http You can use the following commands to open port 80 and reload the rules so they take effect. FirewallD is the front end typically used to manage firewall rules on AlmaLinux. Open port 80 - the HTTP port - on your system’s firewall. sudo yum install nginxĮnable and start the NGINX service.

If you’re not familiar with the sudo command, see the Users and Groups guide. Commands that require elevated privileges are prefixed with sudo. This guide is written for non-root users.
