search

Home  >  Q&A  >  body text

centos7 - Linux composer cannot be used globally?

I have installed it in /usr/local/bin/composer according to the tutorial
But it can only be run locally


It won’t work in other directories

某草草某草草2845 days ago888

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-06-05 11:13:21

    That’s not the case. You need to rename composer.phar to composer and then put it in /usr/local/bin or other executable directories, and give it executable permissions.

    reply
    0
  • Cancelreply