1.win下安装pear $file = 'http://pear.php.net/go-pear.phar'; $file2 = 'f:\go-pear.phar'; // Open the file to get existing content $current = file_get_contents($file); // Write the contents back to the file将go-pear.phar复制到php.exe同目录下,cd进入该目录,执行php -d phar…
1. 首先安装pear: curl -o go-pear.php https://pear.php.net/go-pear.phar 看见这个就安装OK: % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100 3512k 100 3512k 0 0 392k 0 0:00:08 0:00:08 --:--:-- 732k 2. 然后执行: 会发现…