wordpress创建报错

来源:7-4 在swarm集群里通过service部署wordpress

慕莱坞4379800

2018-05-08

1、docker service create --name wordpress -p 80:80 --env WORDPRESS_DB_PASSWORD=root --env WORDPRESS_DB_HOST=mysql --network demo wordpress

2、docker service ps wordpress

ID            NAME             IMAGE             NODE               DESIRED STATE  CURRENT STATE              ERROR                      PORTS

whj8qx718e0m  wordpress.1      wordpress:latest  duliday-node1.com  Running        Running 4 seconds ago                                 

v05brml7va2x   \_ wordpress.1  wordpress:latest  duliday-node1.com  Shutdown       Failed 10 seconds ago      "task: non-zero exit (1)"  

k9yop2pmtpcu   \_ wordpress.1  wordpress:latest  duliday-node1.com  Shutdown       Failed 44 seconds ago      "task: non-zero exit (1)"  

kib9com65c68   \_ wordpress.1  wordpress:latest  duliday-node1.com  Shutdown       Failed about a minute ago  "task: non-zero exit (1)"  

glgj9y0hqq1g   \_ wordpress.1  wordpress:latest  duliday-node3.com  Shutdown       Failed about a minute ago  "task: non-zero exit (1)"  

http://img.mukewang.com/szimg/5af1189e0001b76718960191.jpg

http://img.mukewang.com/szimg/5af1189e0001ac9209700153.jpg

http://img.mukewang.com/szimg/5af1189e0001323d17570245.jpg


写回答

2回答

慕莱坞4379800

提问者

2018-05-08

WordPress not found in /var/www/html - copying now...

Complete! WordPress has been successfully copied to /var/www/html

MySQL Connection Error: (2054) The server requested authentication method unknown to the client

Warning: mysqli::__construct(): The server requested authentication method unknown to the client [caching_sha2_password] in Standard input code on line 22

Warning: mysqli::__construct(): (HY000/2054): The server requested authentication method unknown to the client in Standard input code on line 22

MySQL Connection Error: (2054) The server requested authentication method unknown to the client

Warning: mysqli::__construct(): The server requested authentication method unknown to the client [caching_sha2_password] in Standard input code on line 22

Warning: mysqli::__construct(): (HY000/2054): The server requested authentication method unknown to the client in Standard input code on line 22

MySQL Connection Error: (2054) The server requested authentication method unknown to the client

Warning: mysqli::__construct(): The server requested authentication method unknown to the client [caching_sha2_password] in Standard input code on line 22

Warning: mysqli::__construct(): (HY000/2054): The server requested authentication method unknown to the client in Standard input code on line 22

MySQL Connection Error: (2054) The server requested authentication method unknown to the client


0
0

慕莱坞4379800

提问者

2018-05-08

我看了一下 wordparess 报错日志 截图给您看看

0
1
yjcia
mysql 用5.7版本试试
2018-05-08
共1条回复

系统学习Docker 践行DevOps理念

无论你是开发、测试还是运维,Docker都是你的必备技能。

3297 学习 · 1895 问题

查看课程