![](/img/trans.png)
[英]'python' is not recognized as an internal or external command, operable program or batch file. error when running PHP shell_exec
[英]yii2 “$” Is not internal or external Command, executable program or batch file. ERROR
我正在尝试最小化yii2测试项目中的资产,但没有结果。 我使用了本教程: 如何最小化YII 2框架中的资产
我使用openserver。 在资产目录中,我创建了一个名为Compression的文件。 在该文件中,我放置了yuicompressor.jar(YUI压缩器)和compile.jar(Google Closure编译器)。 文件截图
之后,我尝试为压缩器创建配置文件,在openserver控制台(位于项目根目录中)中运行以下命令:
$ ./yii asset/template assets/compression/config.php
但是在这里我得到以下错误:
"$" Is not internal or external Command, executable program or batch file.
请帮忙!
这可能是环境变量/路径问题。 在前面带php
情况下尝试相同的命令,可能不带./
。 也可能是您需要使用整个php路径,例如/path/to/php yii asset/template assets/compression/config.php
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.