erlsrv - 无法在 Windows 上创建服务

发布于 2024-12-11 20:14:00 字数 497 浏览 0 评论 0原文

试图创建一个像这样的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雨后彩虹 2024-12-18 20:14:00

虽然这个问题相当老了,但我在寻找类似的答案时遇到了它。

此问题的解决方案是确保您以管理员身份执行此命令(或以管理员身份启动命令窗口。)

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.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文