安装DRUSH后使用DRUSH需要删除掉PHP.INI里面的 disable_functions,否则告警无法使用
[preflight] The following restricted PHP modes have non-empty values: {disable_functions}. This configuration is incompatible with drush.
最直接的方法是安装官方的方法另外复制一份PHP.INI修改,但安装官方的添加环境变量无法使用。
只能用另外的方法, PHPRC environment variable
# PHPRC=/tmp env | grep PHPRC PHPRC=/tmp # PHPRC=/tmp drush st
/tmp env为复制PHP.INI的地址,以后使用drush是前面加入PHPRC=/tmp即可。
linux Centos7 Drush安装教程(宝塔bt界面)
bijifenlei