我把composer.phar放在/usr/bin中,然后用php /usr/bin/composer.phar $@
创建/usr/bin/comporter,然后当我尝试运行composer
时,我得到以下内容:
No command 'composer' found, did you mean:
Command 'compose' from package 'mime-support' (main)
composer: command not found
有什么想法吗?
使用符号链接:
ln -s ~/composer.phar /usr/bin/composer
chmod +x ~/composer.phar