[websphere 學習紀錄]4.基本管理

啓動Server,進入管理控制檯,startServer & stopServer 用來開關Server.
C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/bin/startServer.bat" server1 -profileName AppSrv01
ADMU0116I: Tool information is being logged in file C:/Program                                       Files/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/server1/startServer.log
ADMU7701I: Because server1 is registered to run as a Windows Service, the
           request to start this server will be completed by starting the
           associated Windows Service.
ADMU0116I: Tool information is being logged in file C:/Program
           Files/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/server1/startServer.log
ADMU0128I: Starting tool with the AppSrv01 profile
ADMU3100I: Reading configuration for server: server1
ADMU3200I: Server launched. Waiting for initialization status.
ADMU3000I: Server server1 open for e-business; process id is 14856
IVTL0015I: WebSphere Application Server mytestserver is running on port: 9080 for profile AppSrv01
Testing server using the following URL:http://mytestserver :9080/ivt/ivtserver?parm2=ivtservlet
IVTL0050I: Servlet engine verification status: Passed
Testing server using the following URL:http://mytestserver :9080/ivt/ivtserver?parm2=ivtAddition.jsp
IVTL0055I: JavaServer Pages files verification status: Passed
Testing server using the following URL:http://mytestserver :9080/ivt/ivtserver?parm2=ivtejb
IVTL0060I: Enterprise bean verification status: Passed
IVTL0035I: The Installation Verification Tool is scanning the file C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/server1/SystemOut.log for errors and warnings.
0000000a WSKeyStore    W   CWPKI0041W: One or more key stores are using the default password.
0000000a ThreadPoolMgr W   WSVR0626W: The ThreadPool setting on the ObjectRequestBroker service is deprecated.
IVTL0040I: 2 errors/warnings are detected in the file C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/server1/SystemOut.log
IVTL0070I: The Installation Verification Tool verification succeeded.
IVTL0080I: The installation verification is complete.

關於端口:

不安全的管理控制檯的缺省端口號是端口 9060,對於安全的管理控制檯,那麼爲端口 9043。在概要文件創建期間部署的每一個新的管理控制檯都指定有一個新的不安全端口號,並且當在概要文件創建期間啓用了安全性時,會指定有一個新的安全端口號。

檢查運行控制檯應用程序的服務器的 SystemOut.log 文件,以驗證控制檯應用程序已成功地啓動。如果控制檯應用程序已成功地啓動,您將看到 CWWSR0221I: 應用程序已啓動:isclite 消息。

如果由於控制檯端口與已經在機器上運行的應用程序衝突而無法啓動管理控制檯,那麼在 installation root/profiles/profile name/config/cells/cell_name/nodes/node_name/serverindex.xml 文件和 installation root/profiles/profile name/config/cells/cell_name/virtualhosts.xml 文件中更改端口號。將所有顯示爲端口 9060(或者在 WebSphere Application Server 概要文件創建期間所選的端口)的內容更改爲控制檯的端口。

管理控制檯設置會話超時
  1. 在文本編輯器中編輯 ${WAS_HOME}/systemApps/adminconsole.ear/deployment.xml 文件。
  2. 定位 xml 語句 <tuningParams xmi:id="TuningParams_1088453565469" maxInMemorySessionCount="1000" allowOverflow="true" writeFrequency="TIME_BASED_WRITE" writeInterval="10" writeContents="ONLY_UPDATED_ATTRIBUTES" invalidationTimeout="30">
  3. 將 invalidationTimeout 值更改爲期望的會話超時。缺省值爲 30。
  4. 保存 ${WAS_HOME}/systemApps/adminconsole.ear/deployment.xml 文件。
  5. 重新啓動應用程序服務器。
還可以通過JMX進行擴展和再編程,以及ant來管理或執行任務。

備份環境
C:/Program Files/ibm/WebSphere/AppServer/profiles/AppSrv01/bin>backupConfig
ADMU0116I: Tool information is being logged in file C:/Program
           Files/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/backupConfig.log
ADMU0128I: Starting tool with the AppSrv01 profile
ADMU5001I: Backing up config directory C:/Program
           Files/IBM/WebSphere/AppServer/profiles/AppSrv01/config to file
           C:/Program
           Files/ibm/WebSphere/AppServer/profiles/AppSrv01/bin/WebSphereConfig_2
008-03-10.zip
ADMU0505I: Servers found in configuration:
ADMU0506I: Server name: server1
ADMU2010I: Stopping all server processes for node mytestserverNode01
ADMU7702I: Because server1 is registered to run as a Windows Service, the
           request to stop this server will be completed by stopping the
           associated Windows Service.
................................................................................
................................................................................
................................................................................
..........................................................
ADMU5002I: 298 files successfully backed up

恢復環境
C:/Program Files/ibm/WebSphere/AppServer/profiles/AppSrv01/bin>restoreConfig WebSphereConfig_2008-03-10.zip
ADMU0116I: Tool information is being logged in file C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/restoreConfig.log
ADMU0128I: Starting tool with the AppSrv01 profile
ADMU0505I: Servers found in configuration:
ADMU0506I: Server name: server1
ADMU2010I: Stopping all server processes for node mytestserverNode01
ADMU5502I: The directory C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/config already
           exists; renaming to C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/config.old
ADMU5504I: Restore location successfully renamed
ADMU5505I: Restoring file WebSphereConfig_2008-03-10.zip to location C:/Program Files/IBM/WebSphere/AppServer/profiles/AppSrv01/config
................................................................................
................................................................................
................................................................................
...........ADMU5506I: 298 files successfully restored
ADMU6001I: Begin App Preparation -
ADMU6009I: Processing complete.
摘自:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/welcome.html
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章