setapplicationserver (sas)
說明
配置應用程式伺服器,並將伺服器設為 JSP 專案的預設編譯器。
語法
setapplicationserver -name <server_name> -path <installation_ directory> [-setdefault true]-name:必須提供。伺服器的名稱。伺服器名稱的可用選項為:- TomcatExternal
- WebLogic11g
- WebLogic12c
- WebSphere7
- WebSphere8
- WebSphere8.5
- WebSphere9
-path:必須提供。伺服器的安裝目錄。
-setdefault:選用。指定所識別的伺服器為 JSP 專案的預設編譯器。有效值為 true。
註: 若要使用由 CLI 配置的應用程式伺服器,請手動更新
PFF 檔案中的 jsp_compiler_info_name 和 jsp_compiler_info_type 欄位。| 應用程式伺服器 | jsp_compiler_info_name |
jsp_compiler_info_type |
|---|---|---|
| TomcatExternal | TomcatExternal | 1 |
| WebLogic11g | WebLogic 11g | 11 |
| WebLogic12c | WebLogic 12c | 12 |
| WebSphere7 | WebSphere 7.0 | 5 |
| WebSphere8 | WebSphere 8.0 | 8 |
| WebSphere8.5 | WebSphere 8.5 | 9 |
| WebSphere9 | WebSphere 9.0 | 10 |
範例
AllApplications>> setapplicationserver -name TomcatExternal -path "D:\WebServer\Tomcat" -setdefault true
AllApplications>> setapplicationserver -name WebLogic11g -path "D:\WebServers\WebLogic"