[websphere 学习纪录]4.基本管理

来源:互联网 发布:逻辑回归算法知乎 编辑:程序博客网 时间:2024/06/05 18:25
启动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
原创粉丝点击