3

我可以使用以下咖啡脚本行启动 IIS express 以运行我的 mvc 3 应用程序:

iisex = jake.createExec(['iisexpress /path:' + process.cwd() + ' /port:9090 /systray:false'], {printStdout: true})
#listening code here
iisex.run()

然后我运行一些茉莉花测试使用

ex = jake.createExec(['phantomjs run_jasmine_test.coffee http://localhost:9090/app/applebees_testrunner.html'], {printStdout: true});

测试通过,现在我想杀死 IISExpress。

问题是现在我有一个长时间运行的进程,并且该进程希望我“按 q”停止服务器。有没有办法将 aq 发送到正在运行的进程以使服务器停止?

4

1 回答 1

0

也许这会有所帮助。有没有办法让您运行以下命令(需要以管理员权限打开的 cmd 行 - 手动执行此操作)。iis重置/停止

于 2012-10-19T12:39:09.137 回答