Centos6.8普通用户静默式安装IBM WAS8-IHS8-PLUGIN8

[root@co1 was]# groupadd wasadmin
[root@co1 was]# useradd -m wasadmin -g wasadmin -s /bin/bash -d /home/wasadmin
[root@co1 was]# passwd wasadmin
Changing password for user wasadmin.
New password:
BAD PASSWORD: it is based on a dictionary word
Retype new password:
passwd: all authentication tokens updated successfully.

[root@co1 was]# chown -R wasadmin:wasadmin */
[root@co1 was]# ls -al
drwxr-xr-x. 2 wasadmin wasadmin 4096 May 2 23:06 .
drwxr-xr-x. 5 root root 4096 May 2 23:06 ..
-rw-r–r–. 1 wasadmin wasadmin 158611968 May 2 22:04 InstalMgr1.5.2_LNX_X86_WAS_8.5.tar
[root@co1 im]# su – wasadmin
[wasadmin@co1 ~]$ id
uid=500(wasadmin) gid=500(wasadmin) groups=500(wasadmin) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[wasadmin@co1 ~]$ ls
[wasadmin@co1 ~]$ cd /install
[wasadmin@co1 install]$ ls
db2 esb txseries was
[wasadmin@co1 install]$ cd was
[wasadmin@co1 was]$ ls
ihs im was
[wasadmin@co1 was]$ cd im
[wasadmin@co1 im]$ ls
InstalMgr1.5.2_LNX_X86_WAS_8.5.tar
[wasadmin@co1 im]$ tar xvf *.tar
InstalMgr1.5.2_LNX_X86_WAS_8.5/
[wasadmin@co1 im]$ ls
InstalMgr1.5.2_LNX_X86_WAS_8.5 InstalMgr1.5.2_LNX_X86_WAS_8.5.tar
[wasadmin@co1 im]$ ls -al
total 154908
drwxr-xr-x. 3 wasadmin wasadmin 4096 May 2 23:19 .
drwxr-xr-x. 5 root root 4096 May 2 23:06 ..
drwxrwxr-x. 12 wasadmin wasadmin 4096 Dec 11 2012 InstalMgr1.5.2_LNX_X86_WAS_8.5
-rw-r–r–. 1 wasadmin wasadmin 158611968 May 2 22:04 InstalMgr1.5.2_LNX_X86_WAS_8.5.tar
[wasadmin@co1 im]$ cd InstalMgr1.5.2_LNX_X86_WAS_8.5
[wasadmin@co1 InstalMgr1.5.2_LNX_X86_WAS_8.5]$ ls
about_files documentation groupinstc.ini installc.ini libcairo-swt.so plugins silent-install.ini userinstc.ini
about.html features groupinst.ini install.ini license readme_1.5.2.html tools userinst.ini
configuration groupinst install install.xml native repository.config userinst user-silent-install.ini
consoleinst.sh groupinstc installc jre_6.0.0.sr9_20110208_03 Offerings repository.xml userinstc
[wasadmin@co1 InstalMgr1.5.2_LNX_X86_WAS_8.5]$ ./installc -acceptLicense
-bash: ./installc: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[wasadmin@co1 InstalMgr1.5.2_LNX_X86_WAS_8.5]$ yum install glibc.i686
Loaded plugins: fastestmirror
You need to be root to perform this command.
[wasadmin@co1 InstalMgr1.5.2_LNX_X86_WAS_8.5]$ exit
logout
[root@co1 im]# yum install glibc.i686

[root@co1 im]# su – wasadmin
[wasadmin@co1 ~]$ id
uid=500(wasadmin) gid=500(wasadmin) groups=500(wasadmin) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[wasadmin@co1 ~]$ cd /install/was
[wasadmin@co1 was]$ ls
ihs im was
[wasadmin@co1 was]$ cd im
[wasadmin@co1 im]$ ls
InstalMgr1.5.2_LNX_X86_WAS_8.5 InstalMgr1.5.2_LNX_X86_WAS_8.5.tar
[wasadmin@co1 im]$ cd InstalMgr1.5.2_LNX_X86_WAS_8.5
[wasadmin@co1 InstalMgr1.5.2_LNX_X86_WAS_8.5]$ ls
about_files documentation groupinstc.ini installc.ini libcairo-swt.so plugins silent-install.ini userinstc.ini
about.html features groupinst.ini install.ini license readme_1.5.2.html tools userinst.ini
configuration groupinst install install.xml native repository.config userinst user-silent-install.ini
consoleinst.sh groupinstc installc jre_6.0.0.sr9_20110208_03 Offerings repository.xml userinstc
[wasadmin@co1 InstalMgr1.5.2_LNX_X86_WAS_8.5]$ ./installc -acceptLicense
libgcc_s.so.1 must be installed for pthread_cancel to work
JVMDUMP006I Processing dump event “abort”, detail “” – please wait.

[wasadmin@co1 InstalMgr1.5.2_LNX_X86_WAS_8.5]$ exit
logout
[root@co1 im]# yum install gcc*

[root@co1 im]# su – wasadmin
[wasadmin@co1 ~]$ id
uid=500(wasadmin) gid=500(wasadmin) groups=500(wasadmin) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[wasadmin@co1 ~]$ cd /install/
[wasadmin@co1 install]$ ls
db2 esb txseries was
[wasadmin@co1 install]$ cd was
[wasadmin@co1 was]$ ls
ihs im was
[wasadmin@co1 was]$ cd im
[wasadmin@co1 im]$ ls
InstalMgr1.5.2_LNX_X86_WAS_8.5 InstalMgr1.5.2_LNX_X86_WAS_8.5.tar
[wasadmin@co1 im]$ cd InstalMgr1.5.2_LNX_X86_WAS_8.5
[wasadmin@co1 InstalMgr1.5.2_LNX_X86_WAS_8.5]$ ls
about_files groupinst install.ini Offerings tools
about.html groupinstc install.xml plugins userinst
configuration groupinstc.ini javacore.20180502.232419.1917.0002.txt readme_1.5.2.html userinstc
consoleinst.sh groupinst.ini jre_6.0.0.sr9_20110208_03 repository.config userinstc.ini
core.20180502.232419.1917.0001.dmp install libcairo-swt.so repository.xml userinst.ini
documentation installc license silent-install.ini user-silent-install.ini
features installc.ini native Snap.20180502.232419.1917.0003.trc
[wasadmin@co1 InstalMgr1.5.2_LNX_X86_WAS_8.5]$ ./installc -acceptLicense
libgcc_s.so.1 must be installed for pthread_cancel to work

[wasadmin@co1 InstalMgr1.5.2_LNX_X86_WAS_8.5]$ exit
logout
[root@co1 im]# yum search libgcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
======================================================================= N/S Matched: libgcc =======================================================================
libgcc.i686 : GCC version 4.4 shared support library
libgcc.x86_64 : GCC version 4.4 shared support library

Name and summary matches only, use “search all” for everything.
[root@co1 im]# yum install libgcc.x86_64 libgcc.i686 -y
tools
[wasadmin@co1 InstalMgr1.5.2_LNX_X86_WAS_8.5]$ ./installc -acceptLicense
CRIMC1018E ERROR: Administrator privileges are required.

[wasadmin@co1 InstalMgr1.5.2_LNX_X86_WAS_8.5]$ ./userinstc -acceptLicense
Installed com.ibm.cic.agent_1.5.2000.20120223_0907 to the /home/wasadmin/IBM/InstallationManager/eclipse directory.
[wasadmin@co1 InstalMgr1.5.2_LNX_X86_WAS_8.5]$ cd /home/wasadmin/IBM/InstallationManager/
lib native readme.html silent-install.ini
[wasadmin@co1 eclipse]$ cd tools/
[wasadmin@co1 tools]$ ls
imcl imcl.ini imutilsc imutilsc.ini
[wasadmin@co1 tools]$ ./imcl listAvailablePackages -repositories /install/was/was/was8.5
com.ibm.websphere.ND.v85_8.5.0.20120501_1108
[wasadmin@co1 tools]$ ./imcl install com.ibm.websphere.ND.v85_8.5.0.20120501_1108 -repositories /install/was/was/was8.5 -acceptLicense
Installed com.ibm.websphere.ND.v85_8.5.0.20120501_1108 to the /home/wasadmin/IBM/WebSphere/AppServer directory.
[wasadmin@co1 tools]$ ./imcl listAvailablePackages -repositories /install/was/ihs/was-v85-suppl
com.ibm.websphere.APPCLIENT.v85_8.5.0.20120501_1108
com.ibm.websphere.IHS.v85_8.5.0.20120501_1108
com.ibm.websphere.PLG.v85_8.5.0.20120501_1108
com.ibm.websphere.PLUGCLIENT.v85_8.5.0.20120501_1108
com.ibm.websphere.WCT.v85_8.5.0.20120501_1108

[wasadmin@co1 tools]$ ls /home/wasadmin/IBM/
IMShared InstallationManager WebSphere
[wasadmin@co1 tools]$ ./imcl install com.ibm.websphere.IHS.v85_8.5.0.20120501_1108 -repositories /install/was/ihs/was-v85-suppl -properties “user.ihs.httpPort=80,user.ihs.allowNonRootSilentInstall=true” -acceptLicense
Modified com.ibm.websphere.IHS.v85_8.5.0.20120501_1108 in the /home/wasadmin/IBM/HTTPServer directory.
[wasadmin@co1 tools]$ ./imcl install com.ibm.websphere.PLG.v85_8.5.0.20120501_1108 -repositories /install/was/ihs/was-v85-suppl -acceptLicense
Installed com.ibm.websphere.PLG.v85_8.5.0.20120501_1108 to the /home/wasadmin/IBM/WebSphere/Plugins directory.
[wasadmin@co1 tools]$ ./imcl install com.ibm.websphere.WCT.v85_8.5.0.20120501_1108 -repositories /install/was/ihs/was-v85-suppl -acceptLicense
Installed com.ibm.websphere.WCT.v85_8.5.0.20120501_1108 to the /home/wasadmin/IBM/WebSphere/Toolbox directory.
[
[root@co1 im]# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
“/etc/hosts” 3L, 177C written

/home/wasadmin/IBM/WebSphere/AppServer/bin
[wasadmin@co1 bin]$ ./manageprofiles.sh -create -profileName Dmgr01 -profilePath /home/wasadmin/IBM/WebSphere/AppServer/profiles/Dmgr01 -templatePath /home/wasadmin/IBM/WebSphere/AppServer/profileTemplates/dmgr -enableAdminSecurity true -adminUserName wasadmin -adminPassword wasadmin -samplesPassword wasadmin

CWMBU0002I: The deployment manager profile template has been deprecated and replaced by the management profile template with a deployment manager server.
INSTCONFSUCCESS: Success: Profile Dmgr01 now exists. Please consult /home/wasadmin/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/AboutThisProfile.txt for more information about this profile.
[wasadmin@co1 bin]$
[wasadmin@co1 bin]$ pwd
/home/wasadmin/IBM/WebSphere/AppServer/bin

[wasadmin@co1 bin]$ ./startManager.sh
ADMU0116I: Tool information is being logged in file
/home/wasadmin/IBM/WebSphere/AppServer/profiles/Dmgr01/logs/dmgr/startServer.log
ADMU0128I: Starting tool with the Dmgr01 profile
ADMU3100I: Reading configuration for server: dmgr
ADMU3200I: Server launched. Waiting for initialization status.
ADMU3000I: Server dmgr open for e-business; process id is 10290
[wasadmin@co1 bin]$ pwd
/home/wasadmin/IBM/WebSphere/AppServer/profiles/Dmgr01/bin
[wasadmin@co1 bin]$ cd ../..

[wasadmin@co1 AppServer]$ cd bin
[wasadmin@co1 bin]$ ./manageprofiles.sh -create -profileName AppSrv01 -profilePath /home/wasadmin/IBM/WebSphere/AppServer/profiles/AppSrv01 -templatePath /home/wasadmin/IBM/WebSphere/AppServer/profileTemplates/default
INSTCONFSUCCESS: Success: Profile AppSrv01 now exists. Please consult /home/wasadmin/IBM/WebSphere/AppServer/profiles/AppSrv01/logs/AboutThisProfile.txt for more information about this profile.
[wasadmin@co1 bin]$ cd ..
[
[wasadmin@co1 AppServer]$ cd profiles
[wasadmin@co1 profiles]$ ls
AppSrv01 Dmgr01
[wasadmin@co1 profiles]$ cd AppSrv01/
[wasadmin@co1 AppSrv01]$ ls
bin config configuration etc firststeps installableApps installedApps installedConnectors logs properties servers temp wstemp
[wasadmin@co1 AppSrv01]$ cd bin

[wasadmin@co1 bin]$ netstat -na | grep 8879
tcp 0 0 :::8879 :::* LISTEN
[wasadmin@co1 bin]$ ./addNode.sh co1 8879
A
ADMU0003I: Node co1Node01 has been successfully federated.
[
[root@co1 im]# chkconfig iptables off
[root@co1 im]# service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT all — 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
2 ACCEPT icmp — 0.0.0.0/0 0.0.0.0/0
3 ACCEPT all — 0.0.0.0/0 0.0.0.0/0
4 ACCEPT tcp — 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
5 REJECT all — 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
num target prot opt source destination
1 REJECT all — 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
num target prot opt source destination

[root@co1 im]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
[root@co1 im]# netstat -na | grep 9060
tcp 0 0 :::9060 :::* LISTEN

以下文章点击率最高

Loading…

发表评论