git clone down the YII2 background project due to the need to execute the./yii migrate command. After execution, prompt
No such file or directory
I copied it from the same code as YII2 Basic's./yii file, and after running the same error, my current solution is:
Copy the code from the./yii file into a file named yii.php
<?PHP/** * yii Console bootstrap file. * * @link http://www.yiiframework.com/* @copyright Copyright (c) yii software LL C * @license http://www.yiiframework.com/license/*/defined(' Yii_debug ') orDefine(' Yii_debug ',true);require(__dir__. '/vendor/autoload.php ');require(__dir__. '/vendor/yiisoft/yii2/yii.php ');$config=require(__dir__. '/config/console.php ');$application=NewYii\console\application ($config);$exitCode=$application-run ();Exit($exitCode);View Code
Then execute PHP yii.php, after trying, although some trouble, but achieved and./yii the same effect, attach a running effect, such as:
Yii2./yii command:no such file or directory