PHP配置文件:

[global]
pid = /run/php-fpm/php-fpm.pid
error_log = /var/log/php-fpm/php-fpm.log
log_level = notice
[www] 

listen = /dev/shm/php-cgi.sock

listen.backlog = -1

listen.allowed_clients = 127.0.0.1

listen.owner = www
listen.group = www
listen.mode = 0666

user = www

group = www

 

nginx配置

location ~ .*\.(php|php5)?$
{
  fastcgi_pass unix:/dev/shm/php-cgi.sock;
  #fastcgi_pass 127.0.0.1:9000;
  fastcgi_index index.php;
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  include fastcgi.conf;
}

相关文章:

  • 2022-01-28
  • 2022-12-23
  • 2021-12-21
  • 2022-01-24
  • 2021-12-01
  • 2022-12-23
  • 2021-12-21
  • 2021-12-21
猜你喜欢
  • 2021-10-06
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2021-09-21
相关资源
相似解决方案