• Mac brew 启动和关闭php-fpm


    启动

    % brew services start php@5.6
    ==> Successfully started `php@5.6` (label: homebrew.mxcl.php@5.6)
    jiqing@jiqingdeMacBook-Pro nginx % ps -ef | grep php
      501  2578     1   0  8:09上午 ??         0:00.06 /opt/homebrew/opt/php@5.6/sbin/php-fpm --nodaemonize
      501  2581  2578   0  8:09上午 ??         0:00.00 /opt/homebrew/opt/php@5.6/sbin/php-fpm --nodaemonize
      501  2582  2578   0  8:09上午 ??         0:00.00 /opt/homebrew/opt/php@5.6/sbin/php-fpm --nodaemonize
      501  2584  1542   0  8:09上午 ttys001    0:00.00 grep php
    
    

    查看端口号

    % sudo lsof -i:9000
    Password:
    COMMAND  PID   USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
    php-fpm 2847 jiqing    7u  IPv4 0xfd2222a5ad0f6589      0t0  TCP localhost:cslistener (LISTEN)
    php-fpm 2850 jiqing    0u  IPv4 0xfd2222a5ad0f6589      0t0  TCP localhost:cslistener (LISTEN)
    php-fpm 2851 jiqing    0u  IPv4 0xfd2222a5ad0f6589      0t0  TCP localhost:cslistener (LISTEN)
    

    关闭

    % brew services stop php@5.6 
    Stopping `php@5.6`... (might take a while)
    ==> Successfully stopped `php@5.6` (label: homebrew.mxcl.php@5.6)
    

    Tips:如果想让php在nginx中跑起来,必须启动php-fpm。

  • 相关阅读:
    基于注解的IOC配置
    字符串典型问题分析
    指针与数组
    数组的本质
    数组与指针分析
    指针的本质
    #与##操作符使用
    #pragma使用分析
    #error和#line使用分析
    条件编译使用
  • 原文地址:https://www.cnblogs.com/jiqing9006/p/14854502.html
Copyright © 2020-2023  润新知