WordPress set up to resolve the error can not access the site url

The provision of the non-filing of domain names, which led to the site can not be visited. WordPress is built using a docker while deployed

 

View docker container docker ps #

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 into the container

docker exec -it cf740032d768 bash

 

 

mysql -u root -p

 

 

# Switch databases 
use WordPress;
# update site url UPDATE wp_options the SET option_value = the replace (option_value,
'not the record of the domain name http: //www.soft210.top','http: // your ip') WHERE option_name = 'home 'the option_name = OR' siteurl ';

the commit ;

 

Guess you like

Origin www.cnblogs.com/QW-lzm/p/11614593.html