2

我创建了一个文件default来配置我的 laravel APP。文件名为“ laravel”。

laravel 文件:

server {
  listen 80;
  listen [::]:80;

  root /home/user/var/www/laravel-blog/public;

  index index.php index.html index.htm;

  location / {
    try_files $uri $uri/ /index.php?query_string;
  }

  location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    fastcgi_pass unix:/run/php/php7.0-fpm.sock;
    # fastcgi_pass 127.0.0.1:9000;
  }

  location ~ /\.ht {
    deny all;
  }
}

有谁知道如何解决它?谢谢!

4

1 回答 1

0

你检查过 php7.0-fpm 的日志吗?

我在使用全新安装的 Laravel 5.5 时发现了同样的问题,并在日志中发现了这个问题:

WARNING: [pool www] child 5319 exited on signal 11 (SIGSEGV - core dumped) after 312.990977 seconds from start

您的一个 php 扩展可能有问题,禁用 newrelic 对我有用。您可以尝试将其添加到 public/index.php 以禁用单个事务的 newrelic:

if (function_exists('newrelic_ignore_transaction')) {
    newrelic_ignore_transaction();
}
于 2017-09-10T06:59:06.303 回答