《从零开始部署 Laravel》系列第3节中执行composer intall
的时候云主机要安装vpn吗?
就是这一节:
https://laravist.com/series/deploy-laravel-app-on-vps/episodes/3
在本地windows上执行composer intall
的时候要开vpn,否则不能安装。
在云主机上测试,没有vpn也不能安装,错误如下:
[root@hello laravel-test]# composer install
//...省略了一些
Failed to download symfony/console from dist: The zip extension and unzip command are both missing, skipping.
The php.ini used by your command-line PHP is: /etc/php.ini
Now trying to download from source
- Installing symfony/console (v3.1.7)
Cloning 5be36e1f3ac7ecbe7e34fb641480ad8497b83aa6
[Symfony\Component\Process\Exception\ProcessTimedOutException]
The process "git clone --no-checkout 'https://github.com/symfony/console.git' '/var/www/laravel-test/vendor/symfony
/console' && cd '/var/www/laravel-test/vendor/symfony/console' && git remote add composer 'https://github.com/symfo
ny/console.git' && git fetch composer" exceeded the timeout of 300 seconds.
云主机系统是centos,vpn一般没有centos的版本,大家是怎么做的?