Install some PHP extensions, refer to the PHP manual, and then add the sections that need to be explained to install PHP extension Pcntl as an example.
#查看当前php版本123456deMacBook-pro:~ admin$ php-vphp 5.5.14 (CLI) (built:sep 9 19:09:25) Copyright (c) 1997-2014 the PHP groupzend Engine v2.5.0, Copyright (c) 1998-2014 Zend technologies# to php.net download the corresponding PHP package # After downloading, switch directories, follow the steps below sh-3.2# TAR-ZXVF php-5.5.14.tar.gzsh-3.2# CD php-5.5.14/ext/pcntl/sh-3.2# mac may fail, separate operation, add sudo below each command to sh-3.2# sudo phpizesh-3.2# sudo/configuresh-3.2# sudo make testsh-3.2# sudo make installsh-3.2# #也可以直接操作 phpize &&./configur e && make install sh-3.2# echo "extension=pcntl.so" >>/etc/php.inish-3.2# apachectl restartchecking if ever Ything is ok.sh-3.2# php-m | grep pcntlpcntl