简体   繁体   English

OS X上的“ php-fpm”在哪里?

[英]Where is `php-fpm' on OS X?

Where is the php-fpm binary on Mac OS 10.6 (PHP 5.3.26)? Mac OS 10.6(PHP 5.3.26)上的php-fpm二进制文件在哪里?

Since PHP-FPM was added in PHP 5.3.3, my machine should have php-fpm somewhere, although I can't find it under /usr . 由于PHP-FPM是在PHP 5.3.3中添加的,因此我的机器应该在某处具有php-fpm,尽管在/usr下找不到它。

If you use the PHP bundled with your system, then you already have it. 如果您使用系统附带的PHP,那么您已经拥有了它。 If you run php -i you should get what would normally be the output of phpinfo() within a script. 如果运行php -i ,则应该在脚本中获得通常是phpinfo()的输出。 Up at the top in a long list of directives you should see that php-fpm is already bundled with php with the --enable-fpm directive. 最多在指令的一个长长的清单上,你应该看到php-fpm已经捆绑php--enable-fpm指令。

So to answer your question, you can find both by typing: 因此,要回答您的问题,可以通过键入以下内容找到两者:

whereis php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM