Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/283.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/symfony/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
不使用PHP的Ubuntu上的Symfony命令行_Php_Symfony_Ubuntu - Fatal编程技术网

不使用PHP的Ubuntu上的Symfony命令行

不使用PHP的Ubuntu上的Symfony命令行,php,symfony,ubuntu,Php,Symfony,Ubuntu,为什么如果我们在Ubuntu上键入一个Symfony命令行而不使用PHP,我们就没有错误 比如说 php app/console cache:clear 与以下内容相同: app/console cache:clear 我们没有错误 app/console cache:clear [OK] Cache for the "dev" environment (debug=true) was successfully cleared. 因为php环境是在app/console中定义的 #!/u

为什么如果我们在Ubuntu上键入一个Symfony命令行而不使用PHP,我们就没有错误

比如说

php app/console cache:clear
与以下内容相同:

app/console cache:clear

我们没有错误

app/console cache:clear
[OK] Cache for the "dev" environment (debug=true) was successfully cleared. 
因为php环境是在app/console中定义的

#!/usr/bin/env php
此外,应用程序/控制台应具有执行权限