贵阳市公安局南明分局:在WAS 6.1里为NodeAgent创建Windows系统服务 - 简单就是美! - C...
来源:百度文库 编辑:九乡新闻网 时间:2024/04/29 19:42:06
WASService 命令行工具允许您在 Linux 和 Windows 操作系统上为产品 Java 进程创建服务。
当安装向导创建服务时,卸载程序可以除去服务。如果使用 WASService 命令自已创建一个服务,那么当该服务不再有效时,您必须除去它。卸载程序不会除去您使用 WASService 命令创建的服务。
WASService 命令行工具位于 app_server_root\bin 目录中。
WASService 命令行工具创建服务或更新现有服务的详细命令如下:Java代码
1.WASService.exe -add service_name
2. -serverName server_name
3. -profilePath server_profile_directory
4. [-wasHome app_server_root]
5. [-configRoot configuration_repository_directory]
6. [-startArgs additional_start_arguments]
7. [-stopArgs additional_stop_arguments]
8. [-userid user_id -password password]
9. [-logFile service_log_file]
10. [-logRoot server_log_directory]
11. [-restart true | false]
12. [-startType automatic | manual | disabled]
WASService.exe -add service_name
-serverName server_name
-profilePath server_profile_directory
[-wasHome app_server_root]
[-configRoot configuration_repository_directory]
[-startArgs additional_start_arguments]
[-stopArgs additional_stop_arguments]
[-userid user_id -password password]
[-logFile service_log_file]
[-logRoot server_log_directory]
[-restart true | false]
[-startType automatic | manual | disabled]WASService 命令行工具启动现有服务的命令
WASService.exe -start service_name [optional startServer.bat parameters] WASService 命令行工具停止正在运行的服务的命令
WASService.exe -stop service_name [optional stopServer.bat parameters] WASService 命令行工具查看服务状态的命令
WASService.exe -status service_name WASService 命令行工具删除服务的命令
WASService.exe -remove service_name
假设 WAS 安装在 D:\IBM\WebSphere\AppServer 目录下,要创建的 NodeAgent 概要文件在 D:\IBM\WebSphere\AppServer\profiles\AppSrv01\ 目录之下,则可以进行如下操作,将 NodeAgent 添加到 Windows 的服务当中
1、进入 WASService 命令行工具目录:
cd D:\IBM\WebSphere\AppServer\bin
2、运行 WASService 命令行工具:
WASService -add nodeagent
-servername nodeagent
-profilePath D:\IBM\WebSphere\AppServer\profiles\AppSrv01
-wasHome "D:\IBM\WebSphere\AppServer"
-logfile "D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent\startNodeAgent.log"
-logRoot "D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent"
-restart true
-startType automaticJava代码
1.WASService -add nodeagent -servername nodeagent -profilePath D:\IBM\WebSphere\AppServer\profiles\AppSrv01 -wasHome "D:\IBM\WebSphere\AppServer" -logfile "D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent\startNodeAgent.log" -logRoot "D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent" -restart true -startType automatic
WASService -add nodeagent -servername nodeagent -profilePath D:\IBM\WebSphere\AppServer\profiles\AppSrv01 -wasHome "D:\IBM\WebSphere\AppServer" -logfile "D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent\startNodeAgent.log" -logRoot "D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent" -restart true -startType automatic查看系统服务,可以看到添加了“IBM WebSphere Application Server V6.1 - nodeagent”一个服务,启动它之后,可以在
D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent\目录下看到如下文件的相关启动情况:
startNodeAgent.log
startServer.log
nodeagent.pid 相关的操作日志如下:
创建服务:
D:\IBM\WebSphere\AppServer\bin>WASService -add nodeagent -servername nodeagent -profilePath D:\IBM\WebSphere\AppServer\profiles\AppSrv01 -wasHome "D:\IBM\WebSphere\AppServer" -logfile "D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent\startNodeAgent.log" -logRoot "D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent" -restart true -startType automatic
Adding Service: nodeagent
Config Root: D:\IBM\WebSphere\AppServer\profiles\AppSrv01\config
Server Name: nodeagent
Profile Path: D:\IBM\WebSphere\AppServer\profiles\AppSrv01
Was Home: D:\IBM\WebSphere\AppServer\
Start Args:
Restart: 1
IBM WebSphere Application Server V6.1 - nodeagent service successfully added. 启动服务
D:\IBM\WebSphere\AppServer\bin>WASService.exe -start "nodeagent"
Starting Service: nodeagent
Successfully started service. 查看服务运行状态
D:\IBM\WebSphere\AppServer\bin>WASService.exe -status "nodeagent"
The service is running. 停止服务
D:\IBM\WebSphere\AppServer\bin>WASService.exe -stop "nodeagent"
Successfully stopped service. 查看服务运行状态
D:\IBM\WebSphere\AppServer\bin>WASService.exe -status "nodeagent"
The service is stopped. 删除服务
D:\IBM\WebSphere\AppServer\bin>WASService.exe -remove nodeagent
Remove Service: nodeagent
Successfully removed service 本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/YuLimin/archive/2009/04/04/4048897.aspx
当安装向导创建服务时,卸载程序可以除去服务。如果使用 WASService 命令自已创建一个服务,那么当该服务不再有效时,您必须除去它。卸载程序不会除去您使用 WASService 命令创建的服务。
WASService 命令行工具位于 app_server_root\bin 目录中。
WASService 命令行工具创建服务或更新现有服务的详细命令如下:Java代码
1.WASService.exe -add service_name
2. -serverName server_name
3. -profilePath server_profile_directory
4. [-wasHome app_server_root]
5. [-configRoot configuration_repository_directory]
6. [-startArgs additional_start_arguments]
7. [-stopArgs additional_stop_arguments]
8. [-userid user_id -password password]
9. [-logFile service_log_file]
10. [-logRoot server_log_directory]
11. [-restart true | false]
12. [-startType automatic | manual | disabled]
WASService.exe -add service_name
-serverName server_name
-profilePath server_profile_directory
[-wasHome app_server_root]
[-configRoot configuration_repository_directory]
[-startArgs additional_start_arguments]
[-stopArgs additional_stop_arguments]
[-userid user_id -password password]
[-logFile service_log_file]
[-logRoot server_log_directory]
[-restart true | false]
[-startType automatic | manual | disabled]WASService 命令行工具启动现有服务的命令
WASService.exe -start service_name [optional startServer.bat parameters] WASService 命令行工具停止正在运行的服务的命令
WASService.exe -stop service_name [optional stopServer.bat parameters] WASService 命令行工具查看服务状态的命令
WASService.exe -status service_name WASService 命令行工具删除服务的命令
WASService.exe -remove service_name
假设 WAS 安装在 D:\IBM\WebSphere\AppServer 目录下,要创建的 NodeAgent 概要文件在 D:\IBM\WebSphere\AppServer\profiles\AppSrv01\ 目录之下,则可以进行如下操作,将 NodeAgent 添加到 Windows 的服务当中
1、进入 WASService 命令行工具目录:
cd D:\IBM\WebSphere\AppServer\bin
2、运行 WASService 命令行工具:
WASService -add nodeagent
-servername nodeagent
-profilePath D:\IBM\WebSphere\AppServer\profiles\AppSrv01
-wasHome "D:\IBM\WebSphere\AppServer"
-logfile "D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent\startNodeAgent.log"
-logRoot "D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent"
-restart true
-startType automaticJava代码
1.WASService -add nodeagent -servername nodeagent -profilePath D:\IBM\WebSphere\AppServer\profiles\AppSrv01 -wasHome "D:\IBM\WebSphere\AppServer" -logfile "D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent\startNodeAgent.log" -logRoot "D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent" -restart true -startType automatic
WASService -add nodeagent -servername nodeagent -profilePath D:\IBM\WebSphere\AppServer\profiles\AppSrv01 -wasHome "D:\IBM\WebSphere\AppServer" -logfile "D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent\startNodeAgent.log" -logRoot "D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent" -restart true -startType automatic查看系统服务,可以看到添加了“IBM WebSphere Application Server V6.1 - nodeagent”一个服务,启动它之后,可以在
D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent\目录下看到如下文件的相关启动情况:
startNodeAgent.log
startServer.log
nodeagent.pid 相关的操作日志如下:
创建服务:
D:\IBM\WebSphere\AppServer\bin>WASService -add nodeagent -servername nodeagent -profilePath D:\IBM\WebSphere\AppServer\profiles\AppSrv01 -wasHome "D:\IBM\WebSphere\AppServer" -logfile "D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent\startNodeAgent.log" -logRoot "D:\IBM\WebSphere\AppServer\profiles\AppSrv01\logs\nodeagent" -restart true -startType automatic
Adding Service: nodeagent
Config Root: D:\IBM\WebSphere\AppServer\profiles\AppSrv01\config
Server Name: nodeagent
Profile Path: D:\IBM\WebSphere\AppServer\profiles\AppSrv01
Was Home: D:\IBM\WebSphere\AppServer\
Start Args:
Restart: 1
IBM WebSphere Application Server V6.1 - nodeagent service successfully added. 启动服务
D:\IBM\WebSphere\AppServer\bin>WASService.exe -start "nodeagent"
Starting Service: nodeagent
Successfully started service. 查看服务运行状态
D:\IBM\WebSphere\AppServer\bin>WASService.exe -status "nodeagent"
The service is running. 停止服务
D:\IBM\WebSphere\AppServer\bin>WASService.exe -stop "nodeagent"
Successfully stopped service. 查看服务运行状态
D:\IBM\WebSphere\AppServer\bin>WASService.exe -status "nodeagent"
The service is stopped. 删除服务
D:\IBM\WebSphere\AppServer\bin>WASService.exe -remove nodeagent
Remove Service: nodeagent
Successfully removed service 本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/YuLimin/archive/2009/04/04/4048897.aspx
在WAS 6.1里为NodeAgent创建Windows系统服务 - 简单就是美! - C...
windows XP 系统关闭不必要的服务
C盘系统坏了 但数据在C盘里怎么办
C盘系统坏了 但数据在C盘里怎么办
Windows 7系统十个绝对不能关闭的系统服务
Windows系统崩溃的简单处理办法
简单!定制个性化Windows 7系统时钟
简单就是美
简单就是美
简单,就是一种美
禁止Windows的某些“系统服务”, 提升计算机运行速度
终极优化:Windows Vista系统服务设置完全攻略
在Windows下创建.htaccess文件的方法
在Windows 7内轻松创建虚拟硬盘
计算机:重装Windows xp系统C盘怎么格式化
详解Windows系统中如何释放C盘空间 收藏
详解Windows系统中如何释放C盘空间
DNS服务器搭建在Windows Server2003系统
C盘里WINDOWS哪些东西可以删除掉
C盘里WINDOWS哪些东西可以删除掉3232
C盘里WINDOWS哪些东西可以删除掉
C盘里WINDOWS哪些东西可以删除掉
详解C盘Windows文件夹里重要文件的作用
C盘里WINDOWS哪些东西可以删除掉