Install WAS

Install rpms:

yum install -y libstdc++.i686 libstdc++-devel.i686 gtk2.i686 gtk2-engines.i686 \

PackageKit-gtk-module.i686 PackageKit-gtk-module.x86_64 libcanberra-gtk2.x86_64 \

libcanberra-gtk2.i686

Install IM:

./installc -silent -acceptLicense

Unstall IM:

/var/ibm/InstallationManager/uninstall/uninstallc

List Availabe Packages:

/opt/IBM/InstallationManager/eclipse/tools/imcl listAvailablePackages -repositories /root/was/repository.config

Install WAS:

/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.websphere.NDTRIAL.v85_8.5.5000.20130514_1044 \

-repositories /root/was/repository.config \

-acceptLicense

Install JDK:

/opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.websphere.IBMJAVA.v70_7.0.4001.20130510_2103 \

-repositories /tmp/software/java/repository.config  \

-installationDirectory /opt/IBM/WebSphere/AppServer/  \

-acceptLicense

注意:/opt/IBM/WebSphere/AppServer/为WAS安装路径,一定要准确

Uninstall WAS:

/opt/IBM/InstallationManager/eclipse/tools/imcl uninstall com.ibm.websphere.NDTRIAL.v85_8.5.5000.20130514_1044 \

-installationDirectory /opt/IBM/WebSphere/AppServer

rm -rf /opt/IBM/WebSphere/AppServer

Check Installed Packages:

/opt/IBM/InstallationManager/eclipse/tools/imcl listInstalledPackages

Create DM Profiles:

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \

-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/management \

-serverType DEPLOYMENT_MANAGER -profileName Dmgr01 \

-profilePath /opt/IBM/WebSphere/AppServer/profiles/Dmgr01 \

-enableAdminSecurity true \

-adminUserName wasadmin \

-adminPassword wasadmin \

-cellName Cell01 \

-nodeName CellManager01

Create Custom Profiles:

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \

-profileName Custom01 \

-profilePath /opt/IBM/WebSphere/AppServer/profiles/Custom01 \

-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/managed \

-nodeName CustomNode \

-cellName CustomCell \

-isDefault

Create Default Profiles:

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \

-profileName defaultProfile \

-profilePath /opt/IBM/WebSphere/AppServer/profiles/defaultProfile \

-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default \

-nodeName CustomNode \

-cellName CustomCell \

-isDefault

Create Cell Profiles:

first:

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \

-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/cell/dmgr \

-nodeProfilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01 \

-profileName Dmgr01 \

-cellName DefaultCell01 \

-nodeName DefaultNode01 \

-enableAdminSecurity true \

-adminUserName wasadmin \

-adminPassword wasadmin \

-appServerNodeName ServerNode

secound:

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -create \

-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/cell/default \

-dmgrProfilePath /opt/IBM/WebSphere/AppServer/profiles/Dmgr01 \

-portsFile /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/properties/portdef.props \

-nodePortsFile /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/properties/nodeportdef.props \

-profileName AppSrv01 \

-cellName DefaultCell01 \

-nodeName DefaultNode01 \

-enableAdminSecurity true \

-adminUserName wasadmin \

-adminPassword wasadmin \

-appServerNodeName ServerNode

Delete Profiles:

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -delete -profileName Dmgr01

/opt/IBM/WebSphere/AppServer/bin/manageprofiles.sh -validateAndUpdateRegistry

Add Note to DM:

/opt/IBM/WebSphere/AppServer/bin/addNode.sh was1 8879 \

-username wasadmin \

-password wasadmin \

-profileName Custom01

Delete Note:

/opt/IBM/WebSphere/AppServer/bin/removeNode.sh -force

查看安装了哪些jdk版本:

/opt/IBM/WebSphere/AppServer/bin/managesdk.sh -listAvailable

切换Dmgr01 jdk版本:

/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/bin/managesdk.sh \

-enableProfile -sdkName 1.7_64 \

-profileName Dmgr01 -enableServers \

-user wasadmin  -password wasadmin

切换Custom01 jdk版本:

/opt/IBM/WebSphere/AppServer/profiles/Custom01/bin/managesdk.sh  \

-enableProfile -sdkName 1.7_64 \

-profileName Dmgr01 -enableServers \

-user wasadmin  -password wasadmin

切换所有Profile的sdk使用版本

在DM、node和server启动的时候执行:

[[email protected]]# /opt/IBM/WebSphere/AppServer/bin/managesdk.sh -enableProfileAll -sdkname 1.7_64 -enableServers

检查都安装了什么版本的jdk:

[[email protected]]# /opt/IBM/WebSphere/AppServer/bin/managesdk.sh -listAvailable -verbose

检查每个profile都使用的哪个版本的jdk

[[email protected]]# /opt/IBM/WebSphere/AppServer/bin/managesdk.sh -listEnabledProfileAll -verbose

[[email protected]]# /opt/IBM/WebSphere/AppServer/bin/managesdk -listEnabledProfile -profileName AppSrv02 -verbose

[[email protected]]# /opt/IBM/WebSphere/AppServer/bin/managesdk.sh -listEnabledProfile -profileName Node01 -verbose

时间: 2024-08-10 14:24:57

Install WAS的相关文章

Install Hyper-V on Windows 10

? Enable Hyper-V to create virtual machines on Windows 10.Hyper-V can be enabled in many ways including using the Windows 10 control panel, PowerShell (my favorite) or using the Deployment Imaging Servicing and Management tool (DISM). This documents

Ubuntu16.04 install OpenJDK8

1.按Ctrl + Alt + T打开终端.打开后,运行下面的命令来添加PPA:sudo add-apt-repository ppa:openjdk-r/ppa 2.之后,更新系统包缓存并安装OpenJDK 8: sudo apt-get update sudo apt-get install openjdk-8-jdk 3.如果您的系统上安装了多个Java版本.运行下面的命令设置默认的Java:sudo update-alternatives --config java 键入一个数字以选择J

Install Adobe Flash Player 11.2 on CentOS/RHEL 7/6/5, Fedora 20/19

Adobe Flash Player are very useful for watching videos in web browser online. Without flash player most of the videos will not play in your browser. This article will help you to install Adobe flash player plugin for your browsers in CentOS 6/5, Redh

How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu

About LAMP LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the virtual private server is already running Ubuntu, the linux part is taken care of. Here i

centos 6 oracle 11G DB install

因业务迁移,需重新部署oracle DB,此文仅作部署记录,部署文档主要参考官方文档http://docs.oracle.com/cd/E11882_01/install.112/e47689/toc.htm 概要: 主机:OpenStack 云主机 系统:Completing a Minimal Linux centos 6.8 x86_64 DB:Oracle Database 11g Release 2(11.2) 内存:2Gb 硬盘:/dev/vda 20Gb /dev/vdb 30Gb

nginx install

wget http://nginx.org/download/nginx-1.11.1.tar.gz tar xf nginx-1.11.1.tar.gz cd nginx-1.11.1 搭建yum环境,解决nginx需要的开发包 挂载光盘 mount /dev/cdrom /mnt cd /etc/yum.repos.d/ vim Centos_86x64.repo [base] name=Centos_86x64 baseurl=file:///mnt/ enabled=1 gpgcheck

Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast

1.事件描述:CentOS7下使用tree命令,发现该命令没有被安装,在安装的过程中发现yum报错 [[email protected] ~]# tree -d bash: tree: 未找到命令... [[email protected] ~]# yum -y install tree 已加载插件:fastestmirror, langpacks Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast

Install postfix on Ubuntu 14.04.txt

Ubuntu 14.04上安装和配置Postfix邮件服务详细教程 Postfix: 用来接受和发送邮件的邮件服务器,正确说法应该叫邮件传送代理(Mail Transfer Agent,MTA),是邮件服务最重要的部分:    Dovecot: POP 和 IMAP 服务器,用来管理本地邮件目录以便用户能通过 Mail.app, Thunderbird, Mutt 等邮件客户端(又叫邮件用户代理 Mail User Agent, MUA)登陆和下载邮件:    Postgrey: 邮件灰名单工具

pip install lxml 报错error: command ‘gcc‘ failed wit

install gcc install libxslt-devel libxml2-devel

How to install php 5.6.9 and apache httpd 2.4.12 on OEL6u6 x86 64bit

1. 安装apache httpd 2. 配置apache httpd 3. 安装php 5.6.9 4. 测试 1. 安装apache httpd # yum install apr apr-util # ls -l -rw-rw-r--. 1 NONE NONE 5054838 May 19 06:23 httpd-2.4.12.tar.bz2 # tar jxvf httpd-2.4.12.tar.bz2 # cd httpd-2.4.12 # ./configure --enable-m