ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## PHP扩展 ![](http://cdn.aipin100.cn/96a12ff22a363b67456e6428a34690ae) ### 打造自己的PHP扩展 ***** ### 基本操作 ```shell 安装 pecl wget http://pear.php.net/go-pear.phar php go-pear.phar ln -s /usr/local/php/bin/pecl /usr/bin/pecl ``` ~~~ 安装 inotify 扩展 pecl install inotify php -m | grep inotify php --ri inotify Build process completed successfully Installing '/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/inotify.so' install ok: channel://pecl.php.net/inotify-3.0.0 configuration option "php_ini" is not set to php.ini location You should add "extension=inotify.so" to php.ini ~~~ ```shell 安装 pecl 不能用,把php搞没了 # yum install php-devel php-pear 更新源 sudo /usr/local/php/bin/pecl channel-update pecl.php.net 安装扩展 sudo /usr/local/php/bin/pecl install swoole 查看扩展版本 php --ri swoole ``` ***** ### 常用扩展 - swoole - pcntl - event - inotify