Skip to content

Instantly share code, notes, and snippets.

@uzbekdev1
Created October 17, 2021 20:21
Show Gist options
  • Save uzbekdev1/4d226ad8717a684e3e2a4b68210b6869 to your computer and use it in GitHub Desktop.
Save uzbekdev1/4d226ad8717a684e3e2a4b68210b6869 to your computer and use it in GitHub Desktop.
nginx centos
sudo yum install epel-release
sudo yum install nginx
sudo yum install firewalld
sudo firewall-cmd --permanent --zone=public --add-service=http
sudo firewall-cmd --permanent --zone=public --add-service=https
sudo firewall-cmd --reload
sudo systemctl enable nginx
sudo systemctl status nginx
sudo systemctl stop nginx.service
sudo systemctl disable nginx.service
sudo rm -rf /etc/nginx
sudo rm -rf /var/log/nginx
sudo rm -rf /var/cache/nginx/
sudo rm -rf /usr/lib/systemd/system/nginx.service
sudo yum remove nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment