项目中需要对某些PHP文件进行加密,这里选用PHP PECL中的bcompiler库,可以使用phpize编译动态库或直接使用pecl命令(需要安装php-pear)。
系统是:
[root@li382-196 ~]# cat /etc/centos-release
CentOS release 6.4 (Final)
[root@li382-196 ~]# uname -i
x86_64
PHP版本为:
[root@li382-196 ~]# php -v
PHP 5.3.28 (cli) (built: Dec 18 2013 19:46:57)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
第一种方法,使用pecl命令:
1. 搜索php-pear安装包:
[root@li382-196 ~]# yum search php53 | grep pear
php53u-pear.noarch : PHP Extension and Application Repository framework
2. 安装php53u-pear:
[root@li382-196 ~]# yum install php53u-pear
3. 安装完毕后,可以测试pecl命令:
[root@li382-196 ~]# pecl help
Commands:
build Build an Extension From C Source
bundle Unpacks a Pecl Package
channel-add Add a Channel
channel-alias Specify an alias to a channel name
channel-delete Remove a Channel From the List
channel-discover Initialize a Channel from its server
channel-info Retrieve Information on a Channel
channel-login Connects and authenticates to remote channel server
channel-logout Logs out from the remote channel server
channel-update Update an Existing Channel
clear-cache Clear Web Services Cache
config-create Create a Default configuration file
config-get Show One Setting
config-help Show Information About Setting
config-set Change Setting
config-show Show All Sett
抖音官网在线观看-抖音电脑版网页版登录正版入口
香香腐宅最新下载安装网页版入口-香香腐宅2新版本服务入口网页版地址2026
一耽网页版登录入口怎么打开2026最新一耽网页版登录入口安装教程 - 一耽网页版登录入口在线使用2026稳定一耽网页版登录入口免费下载
斗罗大陆2绝世唐门哪里可以免费看?2026最新观看渠道推荐
微博之夜炸了是怎么回事?纷纷喊退票背后的原因是什么?
魔都精兵漫画最新章节速递-魔都精兵漫画官网入口一键直达