-1

我已经在 tomcat 7 上安装了 javabridge,它在输入 url (localhost:8080/JavaBridgeTemplate621/myscript.php) 时在浏览器上运行良好。我想在命令行上执行我的 php 脚本,所以我尝试了

cd C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin //(tomcat 7.exe的路径) C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin> php C:\Program Files\Apache Software Foundation \Tomcat 7.0\webapps\JavaBridgeTemplate621\myscript.php

==> 它告诉我:Could not open open C:\program

4

1 回答 1

0

由于空格,您需要引用路径:

cd "C:\Program Files\Apache Software Foundation\Tomcat 7.0\bin" //(the path oftomcat 7.exe)
php "C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\JavaBridgeTemplate621\myscript.php"
于 2013-05-30T10:26:33.663 回答