奥尔覅几22 发表于 2018-12-20 10:17:25

设置php

  1、在配置文件/usr/local/php/etc/php-fpm.conf文件中找到

  127.0.0.1:9000
  改为

   /var/run/phpfpm.sock

重启php-fpm
  /usr/local/php/sbin/php-fpm restart

2、配置nginx
在/usr/local/nginx/conf/nginx.conf中找到
  fastcgi_pass 127.0.0.1:9000;

改为
  fastcgi_pass unix:/var/run/phpfpm.sock;

重启nginx
  /usr/local/nginx/sbin/nginx -s reload
  爱慕尔商城欢迎您的光临!
穿衣打扮
城市物语



页: [1]
查看完整版本: 设置php