最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
shell 脚本安装PHP扩展的简单方法
时间:2022-06-25 14:19:57 编辑:袖梨 来源:一聚教程网
#!/bin/bash#This script is to install PHP extensions#Author=steven#WriteTime=Sun Aug 14 23:32:18 CST 2016#The environment variableExtension_HOME=/usr/local/src/php-5.6.16/ext/mysqlPHP_HOME=/usr/local/webserver/phpExtension_Install=mysql.so#Enter the extension directorycd $Extension_HOME#Some of the set about PHP plugin modules$PHP_HOME/bin/phpize#Target characteristics of the test installation platform$Extension_HOME/configure --with-php-config=$PHP_HOME/bin/php-config#compilemake#installmake install#php.ini file insert the extension=$Extension_Installif grep -Fxq "extension=$Extension_Install" $PHP_HOME/etc/php.ini then echo "extension=$Extension_Install exist " else echo -e "n[mysql]nextension=$Extension_Install" >> $PHP_HOME/etc/php.inifi#restart php-fpm processkill -SIGUSR2 `cat $PHP_HOME/var/run/php-fpm.pid`相关文章
- 植物大战僵尸怎么创建新账号 03-31
- 谷歌浏览器怎样进行安全检查 03-31
- 钉钉群公告无法修改怎么办 03-31
- 作业帮网页版入口手机版在哪 03-31
- 凡文阅读如何使用 03-31
- PPT里图片怎么批量保存 03-31