Last active
February 2, 2019 12:06
-
-
Save suhail-sullad/4264f63385984fc72b6d433a24cc99de to your computer and use it in GitHub Desktop.
This file contains 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/sh | |
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config | |
sudo service sshd restart | |
cat > /etc/yum.repos.d/nginx.repo << EOL | |
[nginx] | |
name=nginx repo | |
baseurl=http://nginx.org/packages/mainline/centos/7/\$basearch/ | |
gpgcheck=0 | |
enabled=1 | |
EOL | |
sudo yum update -y | |
sudo yum install -y net-tools nginx | |
service nginx restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment