例如安裝image-filter擴展模塊
進入lnmp目錄打開lnmp.conf配置文件
修改Nginx_Modules_Options=' --prefix=/usr/local/nginx --with-http_image_filter_module'
''號內的內容爲應用目錄+擴展組件。
然後重新編譯nginx:./upgrade.sh nginx
提示輸入更新版本,可以選擇不更新,即輸入當前版本。
例如:lnmp安裝php的fileinfo擴展
找到upgrade_php.sh文件。
我的位置在:
/root/lnmp1.4/include/upgrade_php.sh
【最好find 一下,有多個upgrade_php.sh文件】
然後找PHP_7
然後將PHP_7函數內的
--disable-fileinfo
替換成
--enable-fileinfo
一共2處。
最後重新安裝php
./upgrade.sh