我检查了所有的题目,没有任何人帮助我。
sudo curl -sS https://getcomposer.org/installer | php
现在
mv composer.phar /usr/local/bin/composer
我检查:
[root@live7263 ~]# cd /usr/local/bin/
[root@live7263 bin]# ls
composer
[root@live7263 bin]# composer list
Options:
-h, --help Display help for the given command. When no command is given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
..............
现在我尝试从用户级别:
[feed@live7263 public_html]$ composer require phpoffice/phpspreadsheet
bash: composer: command not found
[feed@live7263 public_html]$ /usr/local/bin/composer.phar require phpoffice/phpspreadsheet
bash: composer: command not found
[feed@live7263 public_html]$ /usr/local/bin/composer require phpoffice/phpspreadsheet
bash: composer: command not found
[feed@live7263 public_html]$ composer install
bash: composer: command not found
配置文件. php
/* Composer Auto Loading */
$config['composer_autoload'] = 'vendor/autoload.php';
文件composer.json
已在根应用程序中创建(public_html)
1条答案
按热度按时间watbbzwu1#
如果将来有人会为此烦恼,并使用CloudLinux,这是临时的解决方案。