解决lnmp安装卡在config-set succeeded

    xiaoxiao2023-06-09  194

    军哥lnmp1.3版本安装时卡在config-set succeeded,因为连接国外的composer会受到影响。

    解决办法:

    在lnmp1.3-full目录下,编辑vi include/php.sh

    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 相关资源:敏捷开发V1.0.pptx
    最新回复(0)