sudo amazon-linux-extras list | grep nginx
sudo amazon-linux-extras enable nginx1
sudo yum clean metadata
sudo yum -y install nginx
nginx -v
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
sudo amazon-linux-extras install epel | |
sudo yum install certbot python2-certbot-nginx | |
# nginx .conf | |
/etc/nginx/cond.d/yourdomain.conf | |
server { | |
server_name yourdomain.com; |
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker
now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start
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
{ | |
"1": ["@yopie", "@Zulfikar_ltf", "@dinandans", "@FarahOktarina"], | |
"2": ["@masasdani", "@Vincensius", "@wuland_manyun", "@ikenurasih"], | |
"3": ["@irfanfirdaus", "@deny_ervan", "@nanangarsyad", "@Jumroh"], | |
"4": ["@timenz", "@Marvinhidajat", "@angga_1927", "@alfinma"], | |
"5": ["@johjuda", "@ndiyandii", "@Fendy1983", "@GalehWP"], | |
"6": ["@ShariSherenHuth", "@rosyiandika", "@Fadlan9", "@exza_a"], | |
"7": ["@Zulfikar_ltf", "@gittamaruhawa", "@RyanArrofiq", "@Fadlan9"], | |
"8": ["@Vincensius", "@ndiyandii", "@dinandans", "@okutasan"], | |
"9": ["@deny_ervan", "@yopie", "@wuland_manyun", "@ikenurasih"], |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- For assistance related to logback-translator or configurations --> | |
<!-- files in general, please contact the logback user mailing list --> | |
<!-- at http://www.qos.ch/mailman/listinfo/logback-user --> | |
<!-- --> | |
<!-- For professional support please see --> | |
<!-- http://www.qos.ch/shop/products/professionalSupport --> | |
<!-- --> | |
<configuration> |
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
haveged |
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
//this will remove all collection except system.* | |
use <name_of_database> | |
db.getCollectionNames().forEach(function(c) { if (c.indexOf("system.") == -1) db[c].drop(); }) | |
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
#location | |
#/Library/LaunchDaemons | |
#name | |
#com.mysql.mysql.plist | |
#sudo chown root /Library/LaunchDaemons/com.mysql.mysql.plist | |
#sudo chgrp wheel /Library/LaunchDaemons/com.mysql.mysql.plist | |
#sudo chmod 644 /Library/LaunchDaemons/com.mysql.mysql.plist | |
#sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysql.plist | |
<?xml version="1.0" encoding="UTF-8"?> |
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
# start jboss stand alone | |
./standalone.sh -Djboss.bind.address=0.0.0.0 -Djboss.bind.address.management=0.0.0.0 & | |
# stop jboss | |
./jboss-cli.sh --connect command=:shutdown | |
NewerOlder