服务重启

编程入门 行业动态 更新时间:2024-10-09 10:25:19
本文介绍了服务重启 - (客户端 - 服务器架构)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个服务,它运行在本地 内部网的远程服务器上。我希望有可能从内部网上的 远程位置重新启动服务。 我已经意识到所有TCP处理注册表读数(带有帮助 社区 - 谢谢!) - 现在剩下的最后一项任务是实现 远程重启。 任意关于如何实现这一点的提示?? 谢谢, 马丁

Hi, I have a Service which is running on a remote Server in a local intranet. I want to have the possibility to restart the service from a remote location on the intranet. I have realized all the TCP handling an registry reading (with help of the community - thanks!) - now the last task left is to implement an remote restart. Any hints on how to implement this?? Thanks, Martin

推荐答案

" mphanke" <熔点***** @ nospam.nospam>在消息中写道 新闻:Oq ************** @ TK2MSFTNGP11.phx.gbl ... "mphanke" <mp*****@nospam.nospam> wrote in message news:Oq**************@TK2MSFTNGP11.phx.gbl... 我有一个在本地Intranet上的远程服务器上运行的服务。我希望能够从Intranet上的远程位置重新启动服务。 我已经意识到所有的TCP处理注册表阅读(在社区的帮助下 - 谢谢!) - 现在剩下的最后一个任务是实现远程重启。 有关如何实现这一点的任何提示?? Hi, I have a Service which is running on a remote Server in a local intranet. I want to have the possibility to restart the service from a remote location on the intranet. I have realized all the TCP handling an registry reading (with help of the community - thanks!) - now the last task left is to implement an remote restart. Any hints on how to implement this??

System.ServiceProcess.ServiceController 这样做。 David

System.ServiceProcess.ServiceController Does this. David

嗨 我同意David的建议,在MSDN中有一些关于 的链接。 创建ServiceController组件实例 http:// ms dn.microsoft/library/de...us/vbcon/html/ vbtskcreatingservicecontrollercomponentinstances.a sp 监控Windows服务 http ://msdn.microsoft/library/de...us/vbcon/html/ vbtskcreatingservicecontrollercomponentinstances.a sp Best问候, Perter Huang 微软在线合作伙伴支持 安全! - www.microsoft/security 此帖子原样是按原样提供的。没有保证,也没有授予任何权利。 Hi I agree with David''s suggestion, and there are some links in the MSDN about this. Creating ServiceController Component Instances msdn.microsoft/library/de...us/vbcon/html/ vbtskcreatingservicecontrollercomponentinstances.a sp Monitoring Windows Services msdn.microsoft/library/de...us/vbcon/html/ vbtskcreatingservicecontrollercomponentinstances.a sp Best regards, Perter Huang Microsoft Online Partner Support Get Secure! - www.microsoft/security This posting is provided "AS IS" with no warranties, and confers no rights.

您好, 感谢您的帮助!但我仍然有一个小问题: 如何连接远程机器并强制服务重启? 我是什么尝试设置我们的测试服务器(JARJAR)的名称,并尝试从本地测试客户端(GOWRON)连接 。 问题是如果我尝试连接到JARJAR,GOWRON会抛出异常 说我需要一些特权...... ex.message =无法在计算机上打开服务控制管理器''JARJAR''。 此操作可能需要其他权限。 有关如何使用的任何建议解决这个问题?? 马丁 Peter Huang [MSFT]写道: Hi, thanks for your help so far! But I still have a tiny problem: How can I connect to a remote machine and force the Service to restart?? What I tried was to set the name of our test-server ("JARJAR") and tried to connect from a local test-client ("GOWRON"). The problem is if I try to connect to JARJAR, GOWRON throws an exception saying I need some privileges... ex.message = "Cannot open Service Control Manager on computer ''JARJAR''. This operation might require other privileges." Any suggestion on how to solve this?? Martin Peter Huang [MSFT] wrote: 嗨 <我同意David的建议,MSDN中有一些关于的链接。创建ServiceController组件实例 msdn.microsoft/library/de...us/vbcon/html/ vbtskcreatingservicecontrollercomponentinstances.a监控Windows服务 msdn.microsoft/library/de...us/vbcon/html/ vbtskcreatingservicecontrollercomponentinstances.a sp 致以最诚挚的问候, Perter Huang 微软在线合作伙伴支持 安全! - www.microsoft/security 此帖子提供按原样没有保证,也没有授予任何权利。 Hi I agree with David''s suggestion, and there are some links in the MSDN about this. Creating ServiceController Component Instances msdn.microsoft/library/de...us/vbcon/html/ vbtskcreatingservicecontrollercomponentinstances.a sp Monitoring Windows Services msdn.microsoft/library/de...us/vbcon/html/ vbtskcreatingservicecontrollercomponentinstances.a sp Best regards, Perter Huang Microsoft Online Partner Support Get Secure! - www.microsoft/security This posting is provided "AS IS" with no warranties, and confers no rights.

更多推荐

服务重启

本文发布于:2023-11-09 23:32:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1573747.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:重启

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!