Monerod 在启动时导致 404 nginx 错误并在 php

问题描述

操作系统:Debian 10 Buster APP : Nginx,php,mariadb,Monero

在我的主机上,我有一个测试脚本(php)。当 monerod 正常时显示 true(正确启动并与网络同步)。

但是问题是,当我启动 monerod(与网络同步)时,测试脚本 (test.php) 显示 404 nginx 错误....

在 nginx 日志中,我有这个:

2021/07/10 12:15:01 [error] 7667#7667: *1 upstream timed out (110: Connection timed out) while reading response header from upstream,client: 127.0.0.1,server: example.onion,request: "GET /test.php HTTP/1.1",upstream: "fastcgi://unix:/var/run/php8.0-fpm.sock",host: "example.onion"

我的 nginx 网站配置:

    server {
        listen      127.0.0.1:84;
        server_name example.onion;
        access_log  off;
    
    location @blackhole {
        return 444;
      }
    
        root /var/www/html/;
        index index.html index.php;
    error_page 403 404 500 502 503 504 =444 @blackhole;
        
   location ~ \.php$ {
        include /etc/nginx/snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php8.0-fpm.sock;
      }

      }
  • 当我关闭 monerod(./monerod stop_daemon) 时,页面“test.php”重新变得可访问。
  • 我也用 zcash 测试过,没问题。
  • 我不知道为什么。
  • 无论使用何种端口(18081 或 18087)都会发生此错误。

作为“解决方案”,我将这三行添加到 nginx 中的“location ~ .php$”(如:Nginx + Php-fpm fastcgi upstream timed out 中所述):

fastcgi_read_timeout 600;
fastcgi_send_timeout 600;
fastcgi_connect_timeout 600;

但是没有用...

感谢帮助

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...