![Azure 市场上的 Wordpress Linux 无法运行](https://linux22.com/image/761990/Azure%20%E5%B8%82%E5%9C%BA%E4%B8%8A%E7%9A%84%20Wordpress%20Linux%20%E6%97%A0%E6%B3%95%E8%BF%90%E8%A1%8C.png)
安装后,服务器总是返回错误 502 Bad Gateway - nginx
这是日志
2021-01-07T01:01:29 欢迎,您现在已连接到日志流服务。正在启动 Log Tail -n 10 个现有日志 ---- /home/LogFiles/__lastCheckTime.txt (http : / /reritec.scm.azurewebsites.net/api/vfs/LogFiles/__lastCheckTime.txt)01/06/2021 21:29:48
/home/LogFiles/kudu/trace/2433a5b487bc-d26ae6de-22d3-4080-9a9e-885bc7f3eaee.txt (http://reritec.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace/2433a5b487bc-d26ae6de-22d3-4080-9a9e-885bc7f3eaee.txt) 2021-01-06T21:30:57 启动请求,url:/api/vfs/site/wwwroot/?_=1609967296424,方法:GET,类型:请求,pid:178,1,15,ScmType:无
/home/LogFiles/kudu/trace/4484297e20b6-99d3ec14-a894-45a7-9d99-6789a1c31c38.txt (http://reritec.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace/4484297e20b6-99d3ec14-a894-45a7-9d99-6789a1c31c38.txt) 2021-01-06T22:29:27 启动请求,url:/api/logs/docker,方法:GET,类型:请求,pid:146,1,20,ScmType:无
/home/LogFiles/kudu/trace/b3942923d997-f2525b2e-0c42-47d6-90b2-8fe719a0deee.txt (http://reritec.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace/b3942923d997-f2525b2e-0c42-47d6-90b2-8fe719a0deee.txt) 2021-01-07T00:03:08 启动请求,url:/api/vfs/site/wwwroot/?_=1609976744818,方法:GET,类型:请求,pid:161,1,4,ScmType:无
/home/LogFiles/kudu/trace/bc4bb9da0ee8-b3949a1c-59f5-440b-ac4a-3aec3a89b4d9.txt (http://reritec.scm.azurewebsites.net/api/vfs/LogFiles/kudu/trace/bc4bb9da0ee8-b3949a1c-59f5-440b-ac4a-3aec3a89b4d9.txt) 2021-01-06T23:58:13 启动请求,url:/api/vfs/site/wwwroot/?_=1609976744815,方法:GET,类型:请求,pid:127,1,16,ScmType:无
/home/LogFiles/2021_01_06_lw0sdlwk00002A_default_docker.log (http://reritec.scm.azurewebsites.net/api/vfs/LogFiles/2021_01_06_lw0sdlwk00002A_default_docker.log) 2021-01-06T23:58:51.619267660Z 2021-01-06 23:58:51,509 INFO 生成:'nginx',pid 为 119 2021-01-06T23:58:51.804316173Z 2021-01-06 23:58:51,794 INFO 生成:'sshd',pid 为 120 2021-01-06T23:58:51.993869394Z 2021-01-06 23:58:51,959 INFO 生成:'watch-fpm-socket',pid 为 121 2021-01-06T23:58:52.532445506Z 2021-01-06 23:58:52,530 INFO 成功:php-fpm 进入运行状态,进程已停留超过 1 秒(startsecs) 2021-01-06T23:58:52.590188703Z 2021-01-06 23:58:52,580 INFO 成功:nginx 进入运行状态,进程已停留超过 1 秒(startsecs) 2021-01-06T23:58:52.678840153Z 2021-01-06 23:58:52,677 INFO 成功:sshd 进入 RUNNING 状态,进程已停留超过 1 秒(startsecs)2021-01-06T23:58:52.979378062Z 2021-01-06 23:58:52,976 INFO 成功:watch-fpm-socket 进入 RUNNING 状态,进程已停留超过 1 秒(startsecs)2021-01-06T23:59:07.114135546Z 2021-01-06 23:59:07,113 INFO 退出:sshd(退出状态 0;预期)
/home/LogFiles/2021_01_06_lw0sdlwk00002A_docker.log (http://reritec.scm.azurewebsites.net/api/vfs/LogFiles/2021_01_06_lw0sdlwk00002A_docker.log) 2021-01-06T23:50:13.805Z INFO - 从 Docker hub 拉取镜像:http://mcr.microsoft.com/appsvc/wordpress-alpine-php:0.72 2021-01-06T23:50:17.115Z INFO - 0.72 从 appsvc/wordpress-alpine-php 提取 2021-01-06T23:50:17.366Z INFO - 摘要:sha256:093ddec5b61ed66e8642da89928b611454cc57f091a0d7c3d9e10835c16d5896 2021-01-06T23:50:17.368Z INFO - 状态:图像已更新http://mcr.microsoft.com/appsvc/wordpress-alpine-php:0.72 2021-01-06T23:50:18.012Z INFO - 拉取映像成功,耗时:0 分 3 秒 2021-01-06T23:50:18.457Z INFO - 启动站点容器 2021-01-06T23:50:18.458Z INFO - docker run -d -p 8184:80 --name refritec_4_aa081bdf -e WEBSITES_ENABLE_APP_SERVICE_STORAGE=true -e WEBSITE_SITE_NAME=refritec -e WEBSITE_AUTH_ENABLED=False -e PORT=80 -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=http://refritec.azurewebsites.net -e WEBSITE_INSTANCE_ID=27a8387a29d0e883736126cb444aced9b0c7daa310ed6e78e304c09e4cac392e -e HTTP_LOGGING_ENABLED=1http://mcr.microsoft.com/appsvc/wordpress-alpine-php:0.72 2021-01-06T23:50:39.855Z INFO - 向站点 refritec 的容器 refritec_4_aa081bdf 发起预热请求 2021-01-06T23:50:49.864Z INFO - 站点 refritec 的容器 refritec_4_aa081bdf 已成功初始化并准备好处理请求。
/home/LogFiles/2021_01_07_lw0sdlwk00002A_default_docker.log (http://reritec.scm.azurewebsites.net/api/vfs/LogFiles/2021_01_07_lw0sdlwk00002A_default_docker.log) 2021-01-07T00:00:24.019623691Z 2021-01-07 00:00:23,992 INFO 生成:'php-fpm',pid 为 118 2021-01-07T00:00:24.183214889Z 2021-01-07 00:00:24,145 INFO 生成:'nginx',pid 为 119 2021-01-07T00:00:24.214397508Z 2021-01-07 00:00:24,212 INFO 生成:'sshd',pid 为 120 2021-01-07T00:00:24.309606065Z 2021-01-07 00:00:24,263 INFO 生成:'watch-fpm-socket',pid 为 121 2021-01-07T00:00:24.965113958Z 2021-01-07 00:00:24,956 INFO 成功:php-fpm 进入运行状态,进程已保持运行时间超过 1 秒(startsecs) 2021-01-07T00:00:25.423051506Z 2021-01-07 00:00:25,421 INFO 成功:nginx 进入 RUNNING 状态,进程已停留超过 1 秒(startsecs) 2021-01-07T00:00:25.452002856Z 2021-01-07 00:00:25,423 INFO 成功:sshd 进入 RUNNING 状态,进程已停留超过 1 秒(startsecs) 2021-01-07T00:00:25.460312670Z 2021-01-07 00:00:25,452 INFO 成功:watch-fpm-socket 进入 RUNNING 状态,进程已停留超过 1 秒(startsecs) 2021-01-07T00:00:32.937405640Z 2021-01-07 00:00:32,928 INFO 退出:sshd(退出状态 0;预期)
/home/LogFiles/nginx/access.log(http://reritec.scm.azurewebsites.net/api/vfs/LogFiles/nginx/access.log)
/home/LogFiles/nginx/error.log (http://reritec.scm.azurewebsites.net/api/vfs/LogFiles/nginx/error.log)2021/01/06 21:33:12 [错误] 163#163:*1 connect() 到 unix:/var/run/php/php7.0-fpm.sock 失败(111:连接被拒绝)连接到上游,客户端:172.16.4.1,服务器:_,请求:“GET /robots933456.txt HTTP/1.1”,上游:“fastcgi://unix:/var/run/php/php7.0-fpm.sock:”,主机:“127.0.0.1:7038”2021/01/06 21:33:12 [错误] 163#163:*3 connect() 到unix:/var/run/php/php7.0-fpm.sock 连接到上游时失败(111:连接被拒绝),客户端:172.16.4.1,服务器:_,请求:“GET / HTTP/1.1”,上游:“fastcgi://unix:/var/run/php/php7.0-fpm.sock:”,主机:“http://reritec.azurewebsites.net”,引荐来源:“http:/ /portal.azure.com”2021/01/06 22:21:24 [错误] 141#141:*1 connect() 到 unix:/var/run/php/php7.0-fpm.sock 连接到上游时失败(111:连接被拒绝),客户端:172.16.4.1,服务器:_,请求:“GET /robots933456.txt HTTP/1.1”,上游: “fastcgi://unix:/var/run/php/php7.0-fpm.sock:”,主机:“127.0.0.1:1392”2021/01/06 22:21:24 [crit] 141#141:*3 connect() 到 unix:/var/run/php/php7.0-fpm.sock 失败(13:权限被拒绝)连接到上游,客户端:172.16.4.1,服务器:_,请求:“GET / HTTP / 1.1”,上游:“fastcgi://unix:/var/run/php/php7.0-fpm.sock:”,主机:“http://reritec.azurewebsites.net”,引荐来源:“http:/ /portal.azure.com”2021/01/06 23:50:10 [错误] 141#141:*1 connect() 到unix:/var/run/php/php7.0-fpm.sock 连接到上游时失败(111:连接被拒绝),客户端:172.16.4.1,服务器:_,请求:“GET /robots933456.txt HTTP/1.1”,上游:“fastcgi://unix:/var/run/php/php7.0-fpm.sock:”,主机:“127.0.0.1:4836”2021/01/06 23:50:49 [错误] 141#141:*1 connect() 到 unix:/var/run/php/php7.0-fpm.sock 连接到上游时失败(111:连接被拒绝),客户端:172.16.4.1,服务器:_,请求:“GET /robots933456.txt HTTP/1.1”,上游: “fastcgi://unix:/var/run/php/php7.0-fpm.sock:”,主机:“127.0.0.1:8184”2021/01/06 23:50:49 [错误] 141#141:*3 connect() 到 unix:/var/run/php/php7.0-fpm.sock 失败(111:连接被拒绝)连接到上游,客户端:172.16.4.1,服务器:_,请求:“GET /install HTTP/1.1”,上游:“fastcgi://unix:/var/run/php/php7.0-fpm.sock:”,主机:“http://reritec.azurewebsites.net”2021/01/06 23:58:52 [错误] 141#141:*1 connect() 到 unix:/var/run/php/php7.0-fpm.sock 失败(111:连接被拒绝) 连接到上游时,客户端:172.16.4.1,服务器:_,请求:“GET /robots933456.txt HTTP/1.1”,上游:“fastcgi://unix:/var/run/php/php7.0-fpm.sock:”,主机:“127.0.0.1:3981”2021/01/06 23:58:53 [错误] 141#141:*3 connect() 到 unix:/var/run/php/php7.0-fpm.sock 失败(111:连接被拒绝)连接到上游时,客户端:172.16.4.1,服务器:_,请求:“GET / HTTP / 1.1”,上游:“fastcgi://unix:/var/run/php/php7.0-fpm.sock:”,主机:“http://reritec.azurewebsites.net”
/home/LogFiles/nginx/php-error.log(http://reritec.scm.azurewebsites.net/api/vfs/LogFiles/nginx/php-error.log)
/home/LogFiles/supervisor/supervisord.log(http://reritec.scm.azurewebsites.net/api/vfs/LogFiles/supervisor/supervisord.log) 2021-01-07 00:00:22,853 INFO Supervisord 已启动,pid 为 116 2021-01-07 00:00:23,992 INFO 已生成:'php-fpm',pid 为 118 2021-01-07 00:00:24,145 INFO 已生成:'nginx',pid 为 119 2021-01-07 00:00:24,212 INFO 已生成:'sshd',pid 为 120 2021-01-07 00:00:24,263 INFO 已生成: 'watch-fpm-socket' 带有 pid 121 2021-01-07 00:00:24,956 INFO 成功:php-fpm 进入运行状态,进程已停留超过 1 秒(startsecs) 2021-01-07 00:00:25,421 INFO 成功:nginx 进入运行状态,进程已停留超过 1 秒(startsecs) 2021-01-07 00:00:25,423 INFO 成功:sshd 进入运行状态,进程已停留超过 1 秒(startsecs) 2021-01-07 00:00:25,452 INFO 成功:watch-fpm-socket 进入运行状态,进程已停留超过 1 秒(startsecs) 2021-01-07 00:00:32,928 INFO 退出:sshd(退出状态 0;预期)
/home/LogFiles/webssh/pm2.log(http://reritec.scm.azurewebsites.net/api/vfs/LogFiles/webssh/pm2.log)
结束现有日志的日志尾部 --- 开始实时日志流 ---
答案1
Azure 确认这是东部地区的一个错误。解决此问题的方法是使用 East2 地区。