如何在windows下手动注册UPAS服务?
1.先到%UPAS_HOME%里的'bin'目录。 (默认路径:C:\Upright\UPAS6.0\bin)
2.运行svcinstall.exe,并将UPAS注册为Windows服务。
%UPAS_HOME%\bin里的upas.ini用于注册Windows服务,upas.ini的文件名将为服务名(upas),这里包括UPAS_HOME、UPAS_BASEPORT、JAVA_HOME等设置信息。
●开启UPAS时,如果使用Hotspot JVM
在upas.cmd添加-hotspot选项,登录名和密码为“administrator”和“password”。
svcinstall.exe <upas.ini><id> <password>-hotspot
●开启UPAS时,如果不使用Hotspot JVM
运行UPAS时,不添-hotspot选项,登录名和密码为“administrator”和“password”。
svcinstall.exe <upas.ini><id> <password>
下面是有关命令语svcinstall的一个示例。
C:\Upright\UPAS6.0\bin>svcinstall upas.ini administrator 1111111 -hotspot
UPAS Windows service installer Ver. 3.1.1
Copyright (c) 2012,UpRightSoft Co., Ltd.
UPAS Service[upasservice-upas]installed
3.确认方法有如下两种。
●GUI模式
直接到[开始] > [设置] > [控制面板] > [管理工具] > [服务],查看有无UPAS服务。
点服务名称(注册服务时所使用的文件名),则会在画面上侧显示[启动服务]、[停止服务]、[暂停服务]、
[重新启动服务]等按钮。
●命令行模式
键入如下命令语。
svcremove -list
下面是一个例子。
C:\Upright\UPAS6.0\bin>svcremove -list
UPAS Windows service remover Ver. 3.1.1
Copyright (c) 2012,UpRightSoft Co., Ltd.
** UPAS Services **
----------------------------
- upas
Totalcount: 1
可以看出,共注册了一个Windows服务。