was使用命令创建概要文件
背景说明:
很多时候我们无法使用图形界面来创建概要文件,这时候我们可以选择使用命令来创建,下面是我这次需要创建的概要文件的一些信息,大家可以根据自己的需要修改:
was安装目录: /washome/IBM/WebSphere/AppServer
概要文件名 : AppSrvicbc
服务名 : servericbc
用户名密码 :admin/admin
存放路径 :/washome/IBM/WebSphere/AppServer/profiles/AppSrvicbc
主机名:linux-i1so
节点名:icbcNode
单元名:icbcCell
创建概要文件:
linux-i1so:/washome/IBM/WebSphere/AppServer/bin # ./manageprofiles.sh -create -serverName servericbc -profileName AppSrvicbc -profilePath /washome/IBM/WebSphere/AppServer/profiles/AppSrvicbc -templatePath /washome/IBM/WebSphere/AppServer/profileTemplates/default -nodeName icbcNode -cellName icbcCell -hostName linux-i1so -enableAdminSecurity true -adminUserName admin -adminPassword admin
INSTCONFSUCCESS: Success: Profile AppSrvicbc now exists. Please consult /washome/IBM/WebSphere/AppServer/profiles/AppSrvicbc/logs/AboutThisProfile.txt for more information about this profile.
设置默认jdk为1.7:
由于was8.5.5默认使用的jdk还是1.6。我的项目需要jdk1.7,所以我需要设置AppSrvicbc概要文件的默认jdk为1.7。这个java7需要到IBM官网下载安装包安装,这里不做介绍。如果大家项目不需要1.7则不需要这步操作。
linux-i1so:/washome/IBM/WebSphere/AppServer/profiles/AppSrvicbc/bin # ../../../bin/managesdk.sh -enableProfile -profileName AppSrvicbc -sdkName 1.7_64
启动服务:
linux-i1so:/washome/IBM/WebSphere/AppServer/profiles/AppSrvicbc/bin # ./startServer.sh servericbc
ADMU0116I: Tool information is being logged in file
/washome/IBM/WebSphere/AppServer/profiles/AppSrvicbc/logs/servericbc/startServer.log
ADMU0128I: Starting tool with the AppSrvicbc profile
ADMU3100I: Reading configuration for server: servericbc
ADMU3200I: Server launched. Waiting for initialization status.
ADMU3000I: Server servericbc open for e-business; process id is 9322
至此,使用命令创建概要文件完成!