目录

为php添加额外的功能模块

为php添加额外的功能模块

1、添加xcache模块

作用:php加速

https://i-blog.csdnimg.cn/direct/b68721dd273b4159964494009eb27398.png

在php安装目录bin里有phpize命令运行他生成configure配置工具

1)安装xcache模块

https://i-blog.csdnimg.cn/direct/52eb0482134a4945a337f8657287ecea.png

https://i-blog.csdnimg.cn/direct/eb174eda4abc412682a3b0d7ab77c071.png

下面的路径提示你模块安装到了哪里

2)配置php加载模块

https://i-blog.csdnimg.cn/direct/b5eb42016e824ab58e6b00157156f428.png

3)重启php,验证模块加载成功

可以在网页上查找

https://i-blog.csdnimg.cn/direct/51a0732e61744acfb554de3c2f1f24df.png

查看php加载的模块

https://i-blog.csdnimg.cn/direct/cb9681a13072462bb2902ee5e79e135a.png


2、安装redis模块

1)安装redis模块

https://i-blog.csdnimg.cn/direct/465724be34df43949cbeec16e1dc521e.png

https://i-blog.csdnimg.cn/direct/d762662a01264184b3dc180c6f796c48.png

https://i-blog.csdnimg.cn/direct/2404d41cdd3e4447bed8a554e915c7ba.png

https://i-blog.csdnimg.cn/direct/b935fdfcd535406b8f4732dacc986522.png https://i-blog.csdnimg.cn/direct/7b98cfcee1784832a6c183cbf9b1b966.png

2)配置php加载模块

https://i-blog.csdnimg.cn/direct/7b512b46277041fd8833303bbf091fe9.png

https://i-blog.csdnimg.cn/direct/4dfacb299afb492a9cba2ada1b50028d.png

3)重启php,验证模块加载成功

https://i-blog.csdnimg.cn/direct/bb48a6dbd2f84b13992e3f987a54d7b7.png

https://i-blog.csdnimg.cn/direct/1d2244f227d24787a3e6f227a00c3a16.png


php添加模块的流程

https://i-blog.csdnimg.cn/direct/8f650df355ea4646b2da6bc4164935a6.png