军哥lnmp1.3版本安装时卡在config-set succeeded,因为连接国外的composer会受到影响。
解决办法:
在lnmp1.3-full目录下,编辑vi include/php.sh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
Export_PHP_Autoconf() { export PHP_AUTOCONF=/usr/local/autoconf-2.13/bin/autoconf export PHP_AUTOHEADER=/usr/local/autoconf-2.13/bin/autoheader } Ln_PHP_Bin() { ln -sf /usr/local/php/bin/php /usr/bin/php ln -sf /usr/local/php/bin/phpize /usr/bin/phpize ln -sf /usr/local/php/bin/pear /usr/bin/pear ln -sf /usr/local/php/bin/pecl /usr/bin/pecl if [ "${Stack}" = "lnmp" ]; then ln -sf /usr/local/php/sbin/php-fpm /usr/bin/php-fpm fi } Pear_Pecl_Set() { pear config-set php_ini /usr/local/php/etc/php.ini pecl config-set php_ini /usr/local/php/etc/php.ini } Install_Composer() { curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer } |
将curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer这句话改成return,保存退出,重新运行./install.sh lnmp
原文链接:解决lnmp安装卡在config-set succeeded,转载请注明来源!