1.创建用户was
Groupadd -g 2005
Useradd –u 2005 –g 2005 was
Groupadd –u 1123 –g 1123 –G was nbapp
2.修改/etc/hosts
[root@ebankapp2 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
66.66.47.211 ebankapp2.bocd.com.cn
3.修改权限保证nbapp用户创建域
Chmod -R 775 /home/was/IBM/WebSphere/AppServer/
4.was 用户安装软件,选择不创建概要文件
5.nbapp用户创建概要文件
/home/was/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create -templatePath /home/was/IBM/WebSphere/AppServer/profileTemplates/dmgr -profilePath /home/was/IBM/WebSphere/AppServer/profiles/Dmgr001 -nodeName "Dmgr001Node" -cellName "Dmgr001NodeCell" -enableAdminSecurity true -adminUserName admin -adminPassword admin -profileName Dmgr01 -hostName `hostname`
/home/was/IBM/WebSphere/AppServer/logs/manageprofiles/Dmgr01_create.log
INSTCONFFAILED: 无法创建概要文件
6.域创建日志
tail -f /home/was/IBM/WebSphere/AppServer/profiles/Dmgr001/logs/wsadmin.traceout
发现unknowhost错误,主机名配置错误
7.nbapp用户起服务
/home/was/IBM/WebSphere/AppServer/bin/startManager.sh
8.启服务日志
tail -f /home/was/IBM/WebSphere/AppServer/profiles/Dmgr001/logs/dmgr/startServer.log
9.参数端口文件
tail -f /home/was/IBM/WebSphere/AppServer/profiles/Dmgr001/logs/AboutThisProfile.txt
10.登陆 https://hostname:9043/ibm/console
如果出错,检查防火墙配置
11.删除概要文件
/home/was/IBM/WebSphere/AppServer/bin/mangerprofiles.sh -deleteAll
rm –rf /home/was/IBM
Linux环境下配置websphere7.0的一些命令
1)创建概要文件
通过命令行建立Dmgr服务器,进入${WAS_Home}/bin目录,运行
./manageprofiles.sh -create -templatePath ${WAS_Home}/profileTemplates/dmgr -profileName${profileName}
比如:进入/opt/IBM/WebSphere/AppServer 7/bin/目录,运行
cd ${WAS_Home}/bin
./manageprofiles.sh -create -templatePath /home/was/IBM/WebSphere/AppServer/profileTemplates/dmgr -profileName Dmgr01
注意:模板必须选择:dmgr
通过命令行建立AppSrv01应用服务器,进入${WAS_Home}/bin目录,运行
./manageprofiles.sh –create -templatePath /home/was/IBM/WebSphere/AppServer/profileTemplates/default -profileName${profileName}
比如:进入/opt/IBM/WebSphere/AppServer7 /bin/目录,运行
cd ${WAS_Home}/bin
./manageprofiles.sh -create -templatePath /home/was/IBM/WebSphere/AppServer/profileTemplates/default -profileName AppSrv01
注意:模板必须选择:default
WebSphere7的概要文件相当于weblogic的domain。
创建一个概要文件后,要首先运行“第一步”中“安装验证”,否则,发布程序后,可能无法访问,即便是端口号正确。
WebSphere控制台的端口号与应用程序访问时的端口号是不一样的。
2.删除概要文件
1、cd C:\\Program Files\\IBM\\WebSphere\\AppServer\\bin
2、manageprofiles.bat -listProfiles (展示概要文件列表)
3、manageprofiles.bat -delete -profileName AppSrv02 (删除概要文件的配置信息)
4、删除C:\\Program Files\\IBM\\WebSphere\\AppServer\\profiles下对应的概要文件目录
注意:删除概要文件之前,先把对应的服务停止。
3.查看概要文件的各个端口号
如查看Dmgr的端口号命令如下:
cd /opt/IBM/WebSphere/AppServer7/profiles/Dmgr/logs
tail AboutThisProfile.txt
4.启动与停止服务
如:
启动AppSrv01管理服务器
进入AppSrv01应用服务器的安装目录WebSphere\\AppServer7\\profiles\\ AppSrv01\\bin,执行命令:
./startServer.sh server1 (命令前的./必须加,否则提示找不到命令)
停止AppSrv01管理服务器
进入AppSrv01应用服务器的安装目录WebSphere\\AppServer7\\profiles\\ AppSrv01\\bin,执行命令:
./stopServer.sh server1 (命令前的./必须加,否则提示找不到命令)
5.查看日志
如:进入AppSrv01应用服务器的安装目录WebSphere\\AppServer7\\profiles\\ AppSrv01\\logs\\server1,执行命令:
tail SystemOut.log
tail SystemErr.log
或用vi 命令下载本文