laravel: command not found问题解决方法

laravel: command not found这个问题是因为laravel命令没有弄全局变量。首先我们找到
.composer/vendor这个目录  find / -name vendor  ,我找到了 在/root/.config/composer/vendor这里,然后将这个目录添加全局变量 export PATH="/root/.config/composer/vendor/bin:$PATH"   //注意后面有个bin
即可解决这个问题

猜你喜欢

转载自blog.csdn.net/xueba8/article/details/79508484