在注册页面; 1-单击事件首先进入我的用户模型并检查验证 `
$validator = new Validation();
$validator->add(
'email',
new EmailValidator([
'message' => 'Invalid email given'
]));
$validator->add(
'email',
new UniquenessValidator([
'message' => 'Sorry, The email was registered by another user'
]));
$validator->add(
'username',
new UniquenessValidator([
'message' => 'Sorry, That username is already taken'
]));
// until this point there is no problem but after return side
return $this->validate($validator);
}`
2-直到返回;没有问题,但回来后给我这个错误。
3- [error] 7#7:* 5 recv()失败(104:对等连接重置)从上游读取响应头,客户端:192.168.176.1,服务器:localhost,请求:“POST / register HTTP /1.1“,上游:”fastcgi://192.168.176.3:9000“,主持人:”phalcon.dev“,推荐人:”http://phalcon.dev/register“
4-我正在使用码头工具 那是我的码头工人
version: '2'
services:
################################################################
db:
image: mysql:latest
container_name: mysql
expose:
- 3306
ports:
- "3307:3306"
volumes:
- ./docker/mysql:/var/lib/mysql
environment:
MYSQL_DATABASE: invo
MYSQL_USER: test
MYSQL_PASSWORD: test123
MYSQL_ROOT_PASSWORD: admin123
################################################################
app:
build: ./docker/php/
container_name: php
tty: true
# ports:
# - "6900:6900"
volumes:
- ./docker/nginxlog:/var/log/nginx
- ./invo:/var/www/html
################################################################
web:
tty: true
image: linxlad/nginx
container_name: nginx
ports:
- "80:80"
volumes:
- ./docker/nginx:/etc/nginx/conf.d
- ./docker/nginx/selfconf/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginxlog:/var/log/nginx
- ./invo:/var/www/html
links:
- app
depends_on:
- app
答案 0 :(得分:0)
看起来问题可能出在FastCGI和Nginx之间
我建议:
- check your fastcgi_process / server
- check your access-log
- enable debug-log
您是否也启用了opcache?如果是这样,请将memory_consumption增加到您的站点所需的任何级别。禁用opcache也可以。
# .../fpm/php.ini
[opcache]
opcache.memory_consumption = 392
你还应该从你的php / nginx日志中挖掘出来,这可以帮助你指出你现在面临的真正问题。