标签:set linux corrupt cad 安装 http bin 全局 span
1,确保php已成功安装,并且php可以被访问
php -r "copy(‘https://getcomposer.org/installer‘, ‘composer-setup.php‘);" php -r "if (hash_file(‘SHA384‘, ‘composer-setup.php‘) === ‘aa96f26c2b67226a324c27919f1eb05f21c248b987e6195cad9690d5c1ff713d53020a02ac8c217dbf90a7eacc9d141d‘) { echo ‘Installer verified‘; } else { echo ‘Installer corrupt‘; unlink(‘composer-setup.php‘); } echo PHP_EOL;" php composer-setup.php php -r "unlink(‘composer-setup.php‘);"
玩装完毕后
sudo mv composer.phar /usr/local/bin/composer 加入全局
标签:set linux corrupt cad 安装 http bin 全局 span
原文地址:http://www.cnblogs.com/gy1010/p/6073258.html