Linux下使用composer 安装之后需要在配置文件中写入,才能使用laravel 命令
出现以下情况说明没有执行权限
代码语言:javascript复制/root/.config/composer/vendor/bin/laravel: 17: /root/.config/composer/vendor/bin/laravel: /root/.config/composer/vendor/laravel/installer/laravel: Permission denied
chmod u x /root/.config/composer/vendor/laravel/installer/laravel
代码语言:javascript复制vim ~/.bashrc
alias laravel='~/.config/composer/vendor/bin/laravel'
代码语言:javascript复制vim ~/.profile
export PATH="~/.composer/vendor/bin:$PATH"
laravel new project_name
代码语言:javascript复制[SymfonyComponentProcessExceptionRuntimeException]
The Process class relies on proc_open, which is not available on your PHP installation.
说明 php.ini 中 的disable_functions 里写入了 proc_open 被禁用了,只要删除掉即可,然后重启