Home > Backend Development > PHP Tutorial > PHP扩展装配之PECL

PHP扩展装配之PECL

WBOY
Release: 2016-06-13 11:55:07
Original
885 people have browsed it

PHP扩展安装之PECL

1. PECL简介


PECL:The PHP Extension Community Library是php的扩展库。

用于PHP的扩展的下载和安装。


在安装php时,pecl会默认安装,在bin目录下。


2. 使用参数


使用参数同pear一样。
http://blog.csdn.net/yonggang7/article/details/23621501

$ ./pecl
Copy after login

3. pecl安装扩展


比如安装memcache扩展

$ ./pecl install memcache
Copy after login
安装成功后会在php的extension目录下生成memcache.so文件。

然后将"extension=memcache.so"添加在php.ini文件中。

查看是否正常加载:

$ ./php -m 
Copy after login
该命令用来展示所有的php扩展。

  

4. pecl的所有扩展


扩展列表:

http://pecl.php.net/packages.php



From:http://blog.csdn.net/yonggang7/article/details/24096593


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