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:如果想让PHPNginx中跑起来,必须启动PHP-fpm。

相关文章

方法: 打开一个新的可跨域的chrome窗口实现方法: 1. 打开终...
MacBook Pro 14价格和配置对比 尺寸 SOC	内存&#...
现在给大家介绍一下如何查询MAC的生产日期,希望对你查询MAC...
1、点击【编辑虚拟机设置】,转到【CD/DVD (SATA)】,选中【...
注意:用哪个版本的 Python 运行安装脚本,pip 就被关联到哪...
Mac 安装nvm