erlsrv - 无法在 Windows 上创建服务
试图创建一个像这样的Windows服务:
erlsrv add muzaaya -w "C:/Folder" -c "test erlang service" -ar "-pa .. -eval \"service:start()\""
我立即收到以下错误:
erlsrv: Unable to register service with service manager. Error: Access is denied.
我认为即使在阅读了其文档之后,我也不太熟悉如何传递参数以及几个参数:http://www.erlang.org/doc/man/erlsrv.html。
有人可以帮忙举例说明如何成功创建 Windows 服务吗?我希望该服务在启动时启动许多应用程序,并在停止时停止这些应用程序。
was trying to create a windows service like this:
erlsrv add muzaaya -w "C:/Folder" -c "test erlang service" -ar "-pa .. -eval \"service:start()\""
i got the following error immediately:
erlsrv: Unable to register service with service manager. Error: Access is denied.
I think am not really well conversant with how to pass arguments as well as several parameters even after reading its documentation here: http://www.erlang.org/doc/man/erlsrv.html.
Can some one assist with an example of how to successfully create a windows service? i would want the service to start a number of applications as it comes up and to stop those applications whenever its stopping as well.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然这个问题相当老了,但我在寻找类似的答案时遇到了它。
此问题的解决方案是确保您以管理员身份执行此命令(或以管理员身份启动命令窗口。)
While this question is rather old I came across it searching for a similar answer.
The solution to this problem is to make sure you execute this command as an administrator (or launch the command windows as an administrator.)