mac 重启php-fpm
查看php-fpm端口是否在被php-fpm使用

 sudo lsof -i:9000

一般修改 php.ini 文件后经常需要重启php-fpm

sudo  killall  php-fpm   // 关闭

再输入 sudo lsof -i:9000 就会发现php-fpm没有打印对应端口

sudo  php-fpm    // 重启

更多命令

    启动本地 php-fpm
    使用命令 sudo php-fpm
    关闭本地 php-fpm
    使用命令:sudo killall php-fpm  
    使用 brew 命令
    sudo brew services start php@7.1 
    sudo brew services stop php@7.1 
    sudo brew services restart php@7.1 
    启动本地 nginx
    使用命令 :sudo nginx
    关闭本地 nginx
    使用命令: sudo nginx -s stop 
    重新加载
    使用命令:sudo nginx -s reload 
    或者使用命令 
    sudo brew services start nginx 
    sudo brew services stop nginx 
    sudo brew services restart nginx 

标签: MAC, php-fpm, nginx

添加新评论

人机验证正在加载....