startNode 命令
startNode 命令读取 Node Agent 进程的配置文件,并构造一个 launch 命令。
根据您指定的选项,startNode命令创建一个新的 Java™ 虚拟机 (JVM) API 来运行代理进程,或者将启动命令数据写入文件。
如果您使用的是 Windows 平台,并且节点代理作为 Windows 服务运行,则startNode命令将启动相关的 Windows 服务,它将负责启动节点代理。
startNode命令读取已添加到配置文件的节点代理进程的配置文件WebSphere® Application Server Network Deployment单元并启动服务器。
您不必将用户名和密码与 startNode 命令配合使用,因为此命令虽然会启动服务器进程,但不会调用 MBean 方法。
要了解有关从何处运行此命令的更多信息,请参阅“使用命令行工具”。
语法
命令语法如下所示:
startNode [options]参数
下列选项可用于 startNode 命令:
- -?
- 显示用法说明。
-curlib <product_library>
指定要用于底层“提交作业”(SBMJOB) CL 命令的当前库。
-cpyenvvar
告诉startNode命令设置当前为节点代理进程定义的环境变量。 缺省情况是不设置当前定义的环境变量。
- -help
- 显示用法说明。
-inllibl <library_list>
指定要用于底层“提交作业”(SBMJOB) CL 命令的初始库列表。
-inlaspgrp <ASP_group>
指定底层“提交作业”(SBMJOB) CL 命令的初始 ASP 组。
-jobd <product_library/job_description>
指定底层“提交作业”(SBMJOB) CL 命令的作业描述。
-jobq <product_library/job_queue>
指定底层“提交作业”(SBMJOB) CL 命令的作业队列。
-logfile <fileName>
指定写入跟踪信息的日志文件的位置。 默认情况下,日志文件名为startServer.log并创建在你的配置文件根/logs目录。
-nowait
告诉startNode命令不等待启动的节点代理进程初始化成功。
-outq <product_library/output_queue>
指定底层“提交作业”(SBMJOB) CL 命令的输出队列。
-profileName
定义多配置文件安装中应用服务器进程的配置文件。 在单概要文件环境中运行不需要 -profileName 选项。 此选项的缺省值为缺省概要文件。
-quiet
抑制进度信息startNode命令以正常模式打印。
-replacelog
替换日志文件而不是附加到当前日志。
-sbs <product_library/subsystem_description>
指定要用于底层“提交作业”(SBMJOB) CL 命令的子系统。
-script [<script fileName>] -background
生成启动脚本startServer命令,而不是直接启动节点代理进程。 启动脚本名称是一个可选参数。 如果您未提供启动脚本名称,缺省脚本文件名是
start_node_agent.sh
start_node_agent.bat
-statusport <portNumber>
可选参数,允许管理员设置节点代理状态回调的端口号。 该工具打开此端口并等待来自 Node Agent 的指示该 Node Agent 已启动的状态回调。 如果未设置此参数,那么将自动分配一个未使用的端口。
- -trace
生成跟踪信息到日志文件以供调试目的。
- -timeout <seconds>
- 指定在节点初始化超时并返回一个错误之前的等待时间。
-usejobd
指定切换至 Run-As 用户标识时,将“提交作业”(SBMJOB) 进程中的作业描述用于节点代理程序。
笔记:此命令不会影响当前作业描述的 USER 字段。
使用方案
以下示例说明正确的语法:
startNode
startNode -script (produces the start_node.bat or .sh file)
startNode -trace (produces additional trace statements in the startnode.log file)startNode
startNode -trace (produces additional trace statements in the startnode.log file)startNode (Starts the node agent process for the default profile.
The default profile must belong to a product cell.)
startNode -profileName mynode (Starts the node agent for the mynode profile
which belongs to a product cell.)
startNode -trace (produces trace files in the profile_root/logs directory)