因爲設置了未備案的域名,而致使網站訪問不了了。同時WordPress是使用docker搭建部署的mysql
docker ps #查看 docker 容器sql
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f1444eca2555 wordpress "docker-entrypoint..." 29 hours ago Up 29 hours 0.0.0.0:80->80/tcp mwp cf740032d768 mysql:5.7 "docker-entrypoint..." 29 hours ago Up 29 hours 3306/tcp, 33060/tcp, 0.0.0.0:33307->3307/tcp myMysql
進入MySQL容器docker
docker exec -it cf740032d768 bash
mysql -u root -p
#切換數據庫
use wordpress;
#更新站點url UPDATE wp_options SET option_value=replace(option_value,'未備案的域名http://www.soft210.top','http://你的ip') WHERE option_name='home' OR option_name='siteurl';
commit;