我创建了docker image,其中包括Debian软件包<application
...
...
tools:replace="android:value">
和用PHP编写的应用程序代码。
当我尝试从浏览器调用应用程序时(基本上调用nginx-full, php7.0, php7.0-fpm, php-zmq
),我收到502错误的网关错误。如何确定它是服务器还是代码问题?
尝试更改套接字文件的权限 无法打印PATH_INFO变量。
Nginx日志:
zeroMQ
PHP-FPM日志:
157#157: *622 recv() failed (104: Connection reset by peer) while reading response header from upstream,
nginx配置:
[02-Apr-2018 16:05:26] WARNING: [pool www] child 197 exited on signal 11 (SIGSEGV) after 79.435089 seconds from start
[02-Apr-2018 16:05:26] NOTICE: [pool www] child 203 started
PHP-FPM配置:
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include /etc/nginx/fastcgi_params;
}
收到错误后,当我user = www-data
group = www-data
//tried 127.0.0.1:900 but did not work
listen = /run/php/php7.0-fpm.sock
重新加载时,错误就会消失。但后来会再次发生。