服务重启 - (客户端 - 服务器架构) [英] Service Restart - (Client - Server Architecture)
本文介绍了服务重启 - (客户端 - 服务器架构)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个服务,它运行在本地
内部网的远程服务器上。我希望有可能从内部网上的
远程位置重新启动服务。
我已经意识到所有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.com/library/de...us/vbcon/html/
vbtskcreatingservicecontrollercomponentinstances.a sp
监控Windows服务
http ://msdn.microsoft.com/library/de...us/vbcon/html/
vbtskcreatingservicecontrollercomponentinstances.a sp
Best问候,
Perter Huang
微软在线合作伙伴支持
安全! - www.microsoft.com/security
此帖子原样是按原样提供的。没有保证,也没有授予任何权利。
Hi
I agree with David''s suggestion, and there are some links in the MSDN about
this.
Creating ServiceController Component Instances
http://msdn.microsoft.com/library/de...us/vbcon/html/
vbtskcreatingservicecontrollercomponentinstances.a sp
Monitoring Windows Services
http://msdn.microsoft.com/library/de...us/vbcon/html/
vbtskcreatingservicecontrollercomponentinstances.a sp
Best regards,
Perter Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/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组件实例
http://msdn.microsoft.com/library/de...us/vbcon/html/
vbtskcreatingservicecontrollercomponentinstances.a监控Windows服务
http://msdn.microsoft.com/library/de...us/vbcon/html/
vbtskcreatingservicecontrollercomponentinstances.a sp
致以最诚挚的问候,
Perter Huang
微软在线合作伙伴支持
安全! - www.microsoft.com/security
此帖子提供按原样没有保证,也没有授予任何权利。
Hi
I agree with David''s suggestion, and there are some links in the MSDN about
this.
Creating ServiceController Component Instances
http://msdn.microsoft.com/library/de...us/vbcon/html/
vbtskcreatingservicecontrollercomponentinstances.a sp
Monitoring Windows Services
http://msdn.microsoft.com/library/de...us/vbcon/html/
vbtskcreatingservicecontrollercomponentinstances.a sp
Best regards,
Perter Huang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
这篇关于服务重启 - (客户端 - 服务器架构)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文