Created
January 1, 2019 01:53
-
-
Save kojiisd/575c67a49c81cc76b14b2e97200ab7ec to your computer and use it in GitHub Desktop.
低コストかつ簡単な方法でWebページを作成・更新をできるようにしてみた ref: https://qiita.com/kojiisd/items/58ebc5cd848484b58677
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
update wp_posts set guid=REPLACE(guid, 'http://<旧IPアドレス>/', 'http://<新IPアドレス>/') where post_type='page'; | |
update wp_options set option_value=REPLACE(option_value, 'http://<旧IPアドレス>', 'http://<新IPアドレス>') where option_value like ('%<旧IPアドレス>%'); |
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 ec2 start-instances --instance-ids <InstanceID> | |
$ aws ec2 stop-instances --instance-ids <InstanceID> |
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 ec2 describe-instances --instance-ids <InstanceID>| jq '.Reservations[].Instances[].PublicIpAddress' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment