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
# vi /etc/logrotate.d/httpd | |
/var/log/httpd/*log { | |
daily | |
missingok | |
rotate 7 | |
notifempty | |
sharedscripts | |
compress | |
delaycompress | |
postrotate |
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
$ aws s3 sync s3://test-web-data-store/test/ /home/ec2-user/ | |
download: s3://test-web-data-store/test/test2.txt to ./test2.txt | |
download: s3://test-web-data-store/test/test.txt to ./test.txt | |
$ |
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
$ date | |
Tue Dec 23 01:30:39 UTC 2014 | |
$ cat /etc/sysconfig/clock | |
ZONE="UTC" | |
UTC=true | |
$ |
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
{ | |
"Version": "2012-10-17", | |
"Statement":[ | |
{ | |
"Effect":"Allow", | |
"Action":["route53:CreateHostedZone"], | |
"Resource":"*" | |
}, | |
{ | |
"Effect":"Allow", |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": "ec2:Describe*", | |
"Resource": "*" | |
} | |
] | |
} |
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 su - | |
# yum update | |
# yum --enablerepo=epel install -y unbound |
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 su - | |
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
PEERDNS=yes | |
↓ | |
PEERDNS=no |
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
# cat /etc/redhat-release | |
CentOS release 6.6 (Final) | |
# |
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
$ drill (問い合わせたいFQDN) @(キャッシュDNSサーバのIPアドレスやFQDN) A |
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
CloudWatchLogsFullAccess-unbound-server-role-201501180000 |
OlderNewer