Created
January 30, 2020 06:41
-
-
Save thetminko/945d7fdbf7e282612cda9bb945662767 to your computer and use it in GitHub Desktop.
Useful commands for Amazon Linux 2
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
#Extending Amazon Linux 2 with EPEL | |
wget -O epel.rpm –nv https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
sudo yum install -y ./epel.rpm | |
#Installing nginx | |
sudo yum install -y nginx | |
## https://certbot.eff.org/lets-encrypt/centosrhel7-nginx | |
#Installing CertBot | |
sudo yum install certbot python2-certbot-nginx | |
#Enabling SSL | |
sudo certbot --nginx | |
#SSL auto-renew | |
echo "0 0,12 * * * root python -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew" | sudo tee -a /etc/crontab > /dev/null | |
#Installing Java | |
sudo yum install java-1.8.0 | |
# install Java JDK | |
sudo yum install java-1.8.0-openjdk-devel | |
#JDK path | |
/usr/lib/jvm/java-openjdk | |
#Installing Jenkins | |
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo | |
sudo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key | |
sudo yum install jenkins -y | |
#Installing NodeJS | |
sudo yum install -y gcc-c++ make | |
curl -sL https://rpm.nodesource.com/setup_12.x | sudo -E bash - | |
sudo yum install -y nodejs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment