lnmp 一键安装包的php扩展安装

1.找到安装包解压

Paste_Image.png

2.找得到fileinfo扩展所在目录

Paste_Image.png

3.执行/usr/local/php/bin/phpize

Paste_Image.png

4.执行./configure --with-php-config=/usr/local/php/bin/php-config

Paste_Image.png

5.执行make 执行make之后,在modules目录下有扩展名.so文件了

Paste_Image.png
Paste_Image.png

6.将扩展文件复制到指定地方

Paste_Image.png

6.编辑php.ini 配置如下(可以在vim里面 /;extension 快速定位)

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

推荐阅读更多精彩内容