不能在kali linux上安装laravel



我写的这些代码

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer

Composer is working.

之后,我下载了laravel没有错误。

composer global require "laravel/installer"

但是当我在终端中输入~/.composer/vendor/bin/laravel时,它给出了错误

bash: /root/.composer/vendor/bin/laravel: No such file or directory

我的问题在哪里?我不明白。

编辑:

find/root/name laravel

./.config/composer/vendor/bin/laravel
./.config/composer/vendor/laravel
./.config/composer/vendor/laravel/installer/laravel
./.cache/composer/files/laravel

您可以简单地运行composer create-project --prefer-dist laravel/laravel blog将Laravel安装到blog目录

进入blog目录,运行php artisan serve。现在你的Laravel应该已经在线了。

查看此文档以获取Laravel安装https://laravel.com/docs/5.3/#installing-laravel.

相关内容

  • 没有找到相关文章

最新更新