[infra](aws Harson)가 브라우저를 업데이트하자 화면 표시가 무너졌다(wordpress)

2822 단어 AWSWordPresstech
까닭
고정된 IP가 없기 때문에 wordpress의db에 변경이 반영되지 않아 차이가 생겼습니다
rds 로그인
Warning: Permanently added '13.112.121.67' (ECDSA) to the list of known hosts.
Last login: Sun Sep  5 21:48:45 2021 from m106072036034.v4.enabler.ne.jp

       __|  __|_  )
       _|  (     /   Amazon Linux 2 AMI
      ___|\___|___|

https://aws.amazon.com/amazon-linux-2/
[ec2-user@ip-10-0-0-240 ~]$ mysql -h database-1.cotqzffqvzlc.ap-northeast-1.rds.amazonaws.com -P 3306 -u wordpress -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MySQL connection id is 1842
Server version: 8.0.23 Source distribution

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MySQL [(none)]>
db 스위치
use wordpress
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MySQL [wordpress]> 
설정된 웹 사이트의 URL
MySQL [wordpress]> SELECT * FROM wp_options WHERE option_name IN ('siteurl', 'home');
+-----------+-------------+---------------------------------------------------------+----------+
| option_id | option_name | option_value                                            | autoload |
+-----------+-------------+---------------------------------------------------------+----------+
|         2 | home        | http://LB-1-2105490641.ap-northeast-1.elb.amazonaws.com | yes      |
|         1 | siteurl     | http://LB-1-2105490641.ap-northeast-1.elb.amazonaws.com | yes      |
+-----------+-------------+---------------------------------------------------------+----------+
2 rows in set (0.00 sec)

MySQL [wordpress]>
도메인 이름으로 변경
UPDATE wp_options SET option_value = 'https://blog.aws-tano-demo.ga' WHERE option_name IN ('siteurl', 'home');
Query OK, 2 rows affected (0.00 sec)
Rows matched: 2  Changed: 2  Warnings: 0

MySQL [wordpress]> 
수정 성공 표시
MySQL [wordpress]> SELECT * FROM wp_options WHERE option_name IN ('siteurl', 'home');
+-----------+-------------+-------------------------------+----------+
| option_id | option_name | option_value                  | autoload |
+-----------+-------------+-------------------------------+----------+
|         2 | home        | https://blog.aws-tano-demo.ga | yes      |
|         1 | siteurl     | https://blog.aws-tano-demo.ga | yes      |
+-----------+-------------+-------------------------------+----------+
2 rows in set (0.00 sec)

MySQL [wordpress]> 

좋은 웹페이지 즐겨찾기