视频1 视频21 视频41 视频61 视频文章1 视频文章21 视频文章41 视频文章61 推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37 推荐39 推荐41 推荐43 推荐45 推荐47 推荐49 关键词1 关键词101 关键词201 关键词301 关键词401 关键词501 关键词601 关键词701 关键词801 关键词901 关键词1001 关键词1101 关键词1201 关键词1301 关键词1401 关键词1501 关键词1601 关键词1701 关键词1801 关键词1901 视频扩展1 视频扩展6 视频扩展11 视频扩展16 文章1 文章201 文章401 文章601 文章801 文章1001 资讯1 资讯501 资讯1001 资讯1501 标签1 标签501 标签1001 关键词1 关键词501 关键词1001 关键词1501 专题2001
WebSphere 7 在linux5 非root安装及出错处理
2025-10-03 14:21:18 责编:小OO
文档
WebSphere 7 在linux5.5 X安装及报错处理

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 命令下载本文

显示全文
专题