Created
October 17, 2021 20:21
-
-
Save uzbekdev1/4d226ad8717a684e3e2a4b68210b6869 to your computer and use it in GitHub Desktop.
nginx centos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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