将STAF安装成windows服务

Set STAF as windows service

If you wish to have STAFProc start automatically on Windows when the operating system is rebooted (without requiring a user to log on to Windows),you can install STAF as a Windows service.
These instructions assume you have copied INSTSRV.EXE and SVRANY.EXE (available from the Windows Resource Kit) into C:\WINNT\SYSTEM32.

Get INSTSRV.EXE and SVRANY.EXE from: http://download.csdn.net/source/2248126
1. Create a base STAF service which by default is started automatically when the system boots.
instsrv STAF c:\winnt\system32\srvany.exe
2. Start the Windows Registry Editor by typing regedit and find:
My Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\STAF
3. Create a new string value with the name Description. Set the value to Automatically start STAF service.
4. Create a new Key with name Parameters. Inside the new key, create a new string value with the name Application and set the value to c:\staf\bin\stafproc.exe.

 

删除的办法有两个:

办法一: 用sc.exe这个Windows命令

开始——运行——cmd.exe,然后输入sc就可以看到了。使用办法很简单:

sc delete "服务名"  (如果服务名中间有空格,就需要前后加引号)

如针对上面的: sc delete KSD2Service

方法二:直接进行注册表编辑(不推荐)

打开注册表编辑器,找到下面的键值:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services  一般服务会以相同的名字在这里显示一个主健,直接删除相关的键值便可。

 

你可能感兴趣的:(将STAF安装成windows服务)