2013-10-01 47 views
1

现在我的websphere个人资料启动/停止为Windows服务。不过,我希望它来启动/使用如下的批处理脚本停止:如何停止从Windows服务启动websphere个人资料

<WebSphere Path>\AppServer\profiles\<Profile name>\bin\startServer.bat server1 
<WebSphere Path>\AppServer\profiles\<Profile name>\bin\stopServer.bat server1 

有没有办法做到这一点,但不删除并重新创建一个新的配置文件? 我在Windows 7环境中使用WAS版本8.5.1。

回答

3

请参阅信息中心主题为WASService命令:

WAS_HOME\bin\WASService.exe -profilePath c:\path\to\profile -remove server_name 
+0

谢谢!它有帮助。 –