Last active
December 19, 2018 16:08
-
-
Save cerealskill/40fc504e53bab7531428be43fe3233c4 to your computer and use it in GitHub Desktop.
NGINX on CentOS 7.4
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
| #!/bin/bash | |
| echo "Deploy nginx on CentOS 7.4"; | |
| sudo yum install -y epel-release | |
| sudo yum install -y nginx | |
| sudo systemctl start nginx | |
| 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment