Sun Java Enterprise System 2005Q4 安装指南

附录 B 安装命令

本附录介绍运行 Sun JavaTM Enterprise System (Java ES) 安装程序和卸载程序的命令语法及选项。

Installer 命令

Java ES installer 命令格式如下:

installer [option]...

下表介绍 installer 命令选项。

表 B–1 Java ES Installer 命令行选项

选项 

说明 

-help

定义安装程序的命令行选项。 

-id

将状态文件 ID 打印到屏幕。 

-no

运行安装程序但不安装软件。 

-noconsole

以无提示模式启动安装程序,抑制图形界面。联合使用此选项和 -state 选项可在无提示模式下运行安装程序。

-nodisplay

以基于文本的模式启动安装程序(不启动图形界面)。 

-saveState [statefile ]

指示安装程序在 statefile 指定的位置生成状态文件。状态文件在执行无提示安装时使用。

如果指定的文件不存在,命令就会创建该文件。 

如果省略 statefile 值,安装程序将写入默认文件 statefile.out

您可以在后续安装会话中指定同一个状态文件。首次会话后,会在文件名后面附加 n,其中 n 是一个随每次会话而递增的整数,起始值为零 (0)。

-state statefile

使用指定的状态文件为无提示安装提供输入。此选项与 -noconsole 选项联合用于启动无提示安装。

示例

从安装目录以图形模式运行安装程序:


./installer

以基于文本的模式运行安装程序:


./installer -nodisplay

运行图形式安装程序而不安装软件:


./installer -no

创建状态文件而不安装软件:

在安装软件的同时创建状态文件:


./installer [-nodisplay] -saveState myInstallStatefile

以无提示模式运行安装程序:


./installer -nodisplay -noconsole -state myInstallStatefile

Uninstall 命令

Java ES uninstall 命令格式如下:


uninstall [option]...

下表介绍 uninstall 命令选项。

表 B–2 Java ES Uninstall 命令行选项

选项 

说明 

-help

定义卸载程序的命令行选项。 

-id

将状态文件 ID 打印到屏幕。 

-no

运行卸载程序但不删除软件。 

-noconsole

以无提示模式启动卸载程序,抑制图形界面。联合使用此选项和 -state 选项可在无提示模式下运行卸载程序。

-nodisplay

以基于文本的模式启动卸载程序(不启动图形界面)。 

-saveState [statefile ]

指示卸载程序在 statefile 指定的位置生成状态文件。状态文件在执行无提示卸载时使用。

如果指定的文件不存在,命令就会创建该文件。 

如果省略 statefile 值,卸载程序将写入默认文件 statefile.out

您可以在后续卸载会话中指定同一个状态文件。首次会话后,会在文件名后面附加 n,其中 n 是一个随每次会话而递增的整数,起始值为零 (0)。

-state statefile

使用指定的状态文件为无提示卸载提供输入。此选项与 -noconsole 选项联合用于启动无提示卸载。

示例

安装完成后,Java ES 安装程序将卸载程序置于以下位置:

在卸载程序目录中以图形模式运行卸载程序:


./uninstall

以基于文本的模式运行卸载程序:


./uninstall -nodisplay

运行图形式卸载程序而不删除软件:


./uninstall -no

创建状态文件而不删除软件:

在卸载软件的同时创建卸载程序状态文件:


./uninstall [-nodisplay] -saveState myUninstallStatefile

以无提示模式运行卸载程序:


./uninstall -nodisplay -noconsole -state myUninstallStatefile