Created
May 27, 2019 08:49
-
-
Save hoangdh/eac59b087975a7a3af830c55dba4fec1 to your computer and use it in GitHub Desktop.
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 | |
| cat > /etc/yum.repos.d/nginx.repo << EOF | |
| [nginx-stable] | |
| name=nginx stable repo | |
| baseurl=http://nginx.org/packages/centos/\$releasever/\$basearch/ | |
| gpgcheck=1 | |
| enabled=1 | |
| gpgkey=https://nginx.org/keys/nginx_signing.key | |
| EOF | |
| yum install nginx -y | |
| systemctl start nginx | |
| systemctl enable nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment