php 源码安装 php_screw_plus 扩展

php 源码安装 php_screw_plus 扩展

1、下载php_screw_plus源码到本地

git clone https://git.oschina.net/splot/php-screw-plus.git

2、更新 zlib-develop 和 gcc 编译器

yum -y install zlib-devel gcc

3、编译 php_screw_plus

/usr/bin/phpize
./configure --with-php-config=/usr/bin/php-config
#没报错就继续
make && make install

#编译加密程序
cd tools
make
cp screw /usr/bin

4、使用

加密:
screw 目录或单文件,
screw /root/www/projectxxx

解密:
screw 目录或单文件 -d

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容