pecl install 安装是有提示的,如何进行静默安装?示例代码:

wget http://pecl.php.net/get/redis-4.2.0.tgz
printf "yes\nyes\n" | pecl install redis-4.2.0.tgz
echo "extension=redis.so" > /etc/php.d/50-redis.ini
rm -rf redis-4.2.0.tgz

参考链接:https://stackoverflow.com/questions/8141407/install-pecl-modules-without-the-prompts#answer-8154466

Related Posts: pecl install 静默安装 :

avatar