Nginx 报错: nginx: [emerg] open() "/etc/nginx/fastcgi.conf" failed (2: No such file or directory) 作者: Chuwen 时间: 2021-12-28 分类: Linux nginx: [emerg] open() "/etc/nginx/fastcgi.conf" failed (2: No such file or directory) 出错的相关配置: ``` location ~ .*\.php(\/.*)*$ { fastcgi_pass app_server:9000; include fastcgi.conf; fastcgi_connect_timeout 10; fastcgi_send_timeout 10; fastcgi_read_timeout 10; } ``` 只需要把 `include fastcgi.conf;` 改成 `include fastcgi_params;` 即可 ``` location ~ .*\.php(\/.*)*$ { fastcgi_pass app_server:9000; include fastcgi_params; fastcgi_connect_timeout 10; fastcgi_send_timeout 10; fastcgi_read_timeout 10; } ``` 标签: Nginx