Home > Backend Development > PHP Tutorial > php添加pcntl扩展

php添加pcntl扩展

WBOY
Release: 2016-06-23 13:14:59
Original
1628 people have browsed it

安装一些php扩展,参考php手册即可,下面对需要说明的部分进行补充,以安装php扩展pcntl为例。

#查看当前php版本123456deMacBook-Pro:~ admin$ php -vPHP 5.5.14 (cli) (built: Sep  9 2014 19:09:25)Copyright (c) 1997-2014 The PHP GroupZend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies#去php.net下载对应的php包#下载下来后,切换目录,按照下面的步骤进行操作sh-3.2# tar -zxvf php-5.5.14.tar.gzsh-3.2# cd php-5.5.14/ext/pcntl/sh-3.2# mac下可能会失败,分开操作,每个命令下面加sudo即可sh-3.2# sudo phpizesh-3.2# sudo ./configuresh-3.2# sudo make testsh-3.2# sudo make installsh-3.2# #也可以直接操作 phpize && ./configure && make install sh-3.2# echo "extension=pcntl.so" >> /etc/php.inish-3.2# apachectl restartchecking if everything is ok.sh-3.2# php -m | grep pcntlpcntl
Copy after login



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template