Network topology
Otdadmin 192.168.3.101
Node1 192.168.3.201
Node2 192.168.3.202 Virtual IP 192.168.3.200
System version;
olinux6.4
Turn off firewall chkconfig iptables off
Service Iptables Stop
Turn off SELinux
Vim/etc/selinux/config
Selinux=disabled
Init 6
Configure DNS
Vim/etc/hosts
192.168.3.101 Otdadmin
192.168.3.201 Node1
192.168.3.202 Node2
Create users and Groups
GROUPADD-G 501 Oinstall
Useradd-g Oinstall-u 501 WebLogic
Create a Directory
Mkdir-p/u01/install
Chwon-r weblogic:oinstall/u01
Configure a local Yum source to install dependent packages
Mount-r/dev/sr0/mnt
Cd/mnt/packages
RPM-IVH createrepo-0.9.9-17.el6.noarch.rpm
RPM-IVH vsftpd-2.2.2-11.el6.x86_64.rpm
Mkdir-p/var/ftp/pub
cp-rv/mnt/packages/var/ftp/pub/
Createrepo-g/mnt/repodata/ 0be33010a8f4a5dba47c01ff076d0496a4769183f38408ed129d8aaa5f5892e8-comps-rhel6-server.xml/var/ftp/pub/packages/
cd/etc/yum.repos.d/
VI Local.repo
[Myyum]
Name=olinux Myyum
baseurl=ftp://192.168.3.202/pub/packages/
Enabled=1
Gpgcheck=1
Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-oracle
Delete the original yum source configuration file
Service VSFTPD Restart
[[email protected] Server #yum install kernel-devel* compat-libcap* openssl-devel* compat-libstdc++* krb5-devel* libstdc++* zlib-devel* glibc* e2fsprogs-devel* libaio-devel* keyutils-libs-devel* libselinux-devel* libsepol-devel* gcc-c++* elfutils-libelf-devel*-y
keepalived installation (root)
TAR-XZVF *.tar.gz
./configure--PREFIX=/USR--sysconfdir=/etc
Make
Make install
[Email protected] ~]# vim/etc/keepalived/keepalived.conf
! Configuration File for Keepalived
Global_defs {
Notification_email {
[Email protected]
[Email protected]
[Email protected]
}
Notification_email_from [email protected]
Smtp_server 192.168.200.1
Smtp_connect_timeout 30
router_id Lvs_devel
}
Vrrp_instance Vi_1 {
State MASTER
Interface Eth2
VIRTUAL_ROUTER_ID 51
Priority 90
Advert_int 1
Authentication {
Auth_type PASS
Auth_pass 1111
}
virtual_ipaddress {
192.168.3.200
}
}
[[email protected] ~]# ln-s/etc/rc.d/init.d/keepalived/etc/rc2.d/s99keepalived boot from
[[email protected] ~]#/etc/rc.d/init.d/keepalived start service
[[email protected] keepalived-1.2.19]# ln-s/etc/rc.d/init.d/keepalived/etc/rc2.d/s99keepalived boot up
[Email protected] keepalived-1.2.19]# vim/etc/keepalived/keepalived.conf
! Configuration File for Keepalived
Global_defs {
Notification_email {
[Email protected]
[Email protected]
[Email protected]
}
Notification_email_from [email protected]
Smtp_server 192.168.200.1
Smtp_connect_timeout 30
router_id Lvs_devel
}
Vrrp_instance Vi_1 {
State BACKUP
Interface Eth2
VIRTUAL_ROUTER_ID 51
Priority 100
Advert_int 1
Authentication {
Auth_type PASS
Auth_pass 1111
}
virtual_ipaddress {
192.168.3.200
}
}
[[Email protected] keepalived-1.2.19]# service keepalived status
Keepalived is stopped
[[email protected] keepalived-1.2.19]#/etc/rc.d/init.d/keepalived start
Starting keepalived: [OK]
[[Email protected] keepalived-1.2.19]# IP A to see if the virtual address is in effect.
1:lo: <LOOPBACK,UP,LOWER_UP> MTU 16436 qdisc noqueue State UNKNOWN
Link/loopback 00:00:00:00:00:00 BRD 00:00:00:00:00:00
inet 127.0.0.1/8 Scope host Lo
INET6:: 1/128 Scope Host
Valid_lft Forever Preferred_lft Forever
2:eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> MTU Qdisc pfifo_fast State up Qlen 1000
Link/ether 00:50:56:ae:05:54 BRD FF:FF:FF:FF:FF:FF
inet 192.168.3.202/24 BRD 192.168.3.255 Scope Global eth2
inet 192.168.3.200/32 Scope Global eth2
Inet6 FE80::250:56FF:FEAE:554/64 Scope link
Valid_lft Forever Preferred_lft Forever
Note: Node1 's keepalived.conf configuration VRRP instance State is master, keepalived.conf configuration for priority 90,node2 VRRP instance status is backup, priority is 100 (default).
OTD installation (WebLogic)
Cd/u01/install
Unzip OTD Compression pack
Cd/disk1
./runinstaller
Prompt to create the inventory directory as root and copy script to execute.
[Email protected] ~]#/home/weblogic/orainventory/createcentralinventory.sh
Setting the Inventory to/home/otdnode/orainventory
Setting the group name to Oinstall
Creating the Oracle inventory pointer file (/ETC/ORAINST.LOC)
Changing permissions of/home/otdnode/orainventory to 770.
Changing groupname of/home/otdnode/orainventory to Oinstall.
The execution of the script is complete
Then you can do it by default
Otdadmin Management Host Creation instance:
/home/weblogic/oracle/product/11.1.1.7.0/trafficdirector_home_1/bin/tadm Configure-server--port=8989--user= Admin--instance-home=/home/weblogic/adminstance
[Root[email protected] bin]#/home/weblogic/oracle/product/11.1.1.7.0/trafficdirector_home_1/bin/tadm Configure-server--port=8989--user=admin--instance-home=/home/weblogic/adminstanc
This command would create the administration server. The password is provided would be required to access the administration server.
Enter admin-user-password>
Enter Admin-user-password again>
OTD-70214 The administration server has been configured successfully.
The server can be started by executing:/home/weblogic/adminstanc/admin-server/bin/startserv
The administration Console can be accessed at https://otdadmin:8989 using the user name ' admin '.
You have mail in/var/spool/mail/root
To start an administrative host instance
[Email protected] bin]#/home/weblogic/adminstanc/admin-server/bin/startserv
Oracle traffic Director 11.1.1.7.0 b01/14/2013 04:13
[Notification:1] [OTD-10333] Daemon is running as Super-user
[Notification:1] [OTD-80118] Using [Java HotSpot (TM) 64-bit Server VM, Version 1.6.0_35] from [Sun Microsystems INC]
[Notification:1] [OTD-80000] Loading Web module in Virtual Server [Admin-server] at [/admin]
[Notification:1] [OTD-80000] Loading Web module in Virtual Server [Admin-server] at [/jmxconnector]
[Notification:1] [OTD-10358] admin-ssl-port:https://otdadmin:8989 ready to accept requests
[Notification:1] [OTD-10487] Successful server startup
Create an instance of the node Node1 (in managing Chinese and Western registrations)
/home/weblogic/oracle/product/11.1.1.7.0/trafficdirector_home_1/bin/tadm Configure-server--user=admin--port= 8989--host=192.168.3.101--admin-node--node-port=8990--instance-home=/home/weblogic/otdagent
[Email protected] keepalived-1.2.19]#/home/weblogic/oracle/product/11.1.1.7.0/trafficdirector_home_1/bin/tadm Configure-server--user=admin--port=8989--host=192.168.3.101--admin-node--node-port=8990--instance-home=/home/ Weblogic/otdagent
This command would create an administration node and register it with the remote administration server:https://192.168.3.1 01:8989.
Enter admin-user-password>
[
[
Version:v3
Subject:cn=otdadmin
Signature Algorithm:sha256withrsa, OID = 1.2.840.113549.1.1.11
Key:sun RSA Public key, 2048 bits
Modulus: 2797037008612982071327814897920439870402418865702158758258397062917952794262939032242276567501564763571530373401819881215 6090528577387168834943398019258340709908905238035168371262141775626654885278564964907192263703894897979531092209827117540 6834364330631276662362827272171112161111003846043782806164252738419220078070790032290801981508192047045179154223906378466 8733066462711275527169750049527106346389796956073731287746230876139676647997448640429408291306948860296578493903007087370 6316467364581865753847348539692990673704006850905917377433827307078237371280074915575283302384394304362842188191638091672 222288546217
Public exponent:65537
Validity: [From:mon Jul 20:59:50 CST 2015,
to:wed Jul 20:59:50 CST 2016]
Issuer:cn=admin-ca-cert, ou=oracle traffic Director 11.1.1.7, o=oracle Corporation
SerialNumber: [5889153e 58d91fff]
Certificate Extensions:2
[1]: objectid:2.5.29.37 criticality=true
Extendedkeyusages [
Serverauth
]
[2]: objectid:2.5.29.15 criticality=true
Keyusage [
Key_encipherment
Key_agreement
]
]
algorithm: [Sha256withrsa]
Signature:
0000:0a E6 A1 C2 A0 B8 CB C8 8E 4F 5A ... pr ..... 6..OZ
0010:ae CC 1 b C5 F4 E0 8E BD F5 0C, 5D 3B .......];
0020:7e D1 1 b A2 5B D8 7F C9 0A F3 AC DF 24 .... [. 1........$
0030:2C 3C E3 7E B8 6D 3 a BB 1C C8,.. H<...V (. M: .....)
0040:1d F8 0D A9 ED 1 A C2 9C all 5A A4 B1 F6 [email protected]
0050:c8-AB-A8 0B 5C 3F, BC, D9, 0C 3C, C.9. \?....!. <.
0060:16 2D 0E C7 BB D4-DB E4 5A 3E EB 9B.-S ... Z>, ....
0070:27 0E 9E A0 2A EA D1 A5 4F DF 2E D8 EC 5C ' ... O......\
0080:99 2B 4E exabytes EB 8B 7E C2 E7-8D BC 1E. +ns....h.a.q ...
0090:f6 4 a 3E D4 C9 5B, 7C F7 CE 05. J>, ..... B[.4 .....
00a0:46 1C 9F 1C C9 CC FF 7E F ..... C...df....q
00b0:43 B2 FD F3 8F DB D0 E5 5C E6 D0 ... ' A...\.HV.
00C0:A4 8F F2 BD C6, 9E BC, EC-EA ...!.!.. 9.&.4.a.
00d0:3a D9 5E B5 CA B8 0F 7D F0 AB, 4F:. ^.......... BO
00E0:BC 4C 6D 1 b D1 ED F9 (FD B8 C5) A2 Lm .... B .....
00f0:69 4F E8 C7 D7 1D 2C 8F 7D 5C A4 1 b iO ... Y.. \...
]
Do you trust the above certificate [Y|n]-->y
OTD-70215 the Administration node has been configured successfully.
The node can be started by executing:/home/weblogic/otdagent/admin-server/bin/startserv
Launch Node1 Instance
[Email protected] home]#/home/weblogic/otdagent/admin-server/bin/startserv
Oracle traffic Director 11.1.1.7.0 b01/14/2013 04:13
[Notification:1] [OTD-10333] Daemon is running as Super-user
[Notification:1] [OTD-80118] Using [Java HotSpot (TM) 64-bit Server VM, Version 1.6.0_35] from [Sun Microsystems INC]
[Notification:1] [OTD-80000] Loading Web module in Virtual Server [Admin-server] at [/jmxconnector]
[Notification:1] [OTD-10358] admin-ssl-port:https://node1:8990 ready to accept requests
[Notification:1] [OTD-10487] Successful server startup
Create an instance of the node nod2 (in managing Chinese and Western registrations)
[Email protected] ~]#/home/weblogic/oracle/product/11.1.1.7.0/trafficdirector_home_1/bin/tadm configure-server-- User=admin--port=8989--host=192.168.3.101--admin-node--node-port=8990--instance-home=/home/weblogic/otdagent
This command would create an administration node and register it with the remote administration server:https://192.168.3.1 01:8989.
Enter admin-user-password>
[
[
Version:v3
Subject:cn=otdadmin
Signature Algorithm:sha256withrsa, OID = 1.2.840.113549.1.1.11
Key:sun RSA Public key, 2048 bits
Modulus: 2540632388474425662552446890036001241892052692585576186450716490498536188051793175831125008642954575138775260824643698177 1964736760211252278737360505239413909757341486818817872897530429500451524151791482863602954237159557899486541958859172924 5718557794538268472403230567674537027631227988764781373553267883091138550032853953661704333457682344807089216750247244602 2822999563636989083503730682122163305335019752088606365139147180341112263459584619383164271045537310961322676294540960747 7428274010668359830833375255231508796141497914269352523968074001425514424328955653386431759823573902680891333926711452464 979088857433
Public exponent:65537
Validity: [From:mon Jul 16:38:13 CST 2015,
to:wed Jul 16:38:13 CST 2016]
Issuer:cn=admin-ca-cert, ou=oracle traffic Director 11.1.1.7, o=oracle Corporation
SerialNumber: [ -4b868cdb D13980AA]
Certificate Extensions:2
[1]: objectid:2.5.29.37 criticality=true
Extendedkeyusages [
Serverauth
]
[2]: objectid:2.5.29.15 criticality=true
Keyusage [
Key_encipherment
Key_agreement
]
]
algorithm: [Sha256withrsa]
Signature:
0000:1f B4 0E 8D Bayi DB B4 2F 94 CF 9D 3F D5. 5...../. F..?.
0010:3e 9E 6D DE notoginseng 8C 0C B3 9F E1 FE FD >.m. 7.....V. '.
0020:01 6C 3D 0E 0F BF 1 a B2 2F lg=!. C..../. Dt
0030:f7 1 A, 1 a E4, A2 2B F9 ... 10c.r.i.$.+w.
0040:ac F2 A6 2B C9 4 a E9 02 40 ...!!! +.. UJ ' [email protected]
0050:ea E6 E7 6B, FD C6 6A 0C 6A 58 87 14. Q.K. V.J. Jx..
0060:0a B9-BB 9E be D7 8A F7 AD F1 10 ..... (. R.....
0070:63 A7 da E3 3 a C3 A8 0D 8D BF FC D0 F3 c.. Cv: .....
0080:e9 6B C8 FA 4 a 1F $0B A2 (+ 7C 4D) [email protected]
0090:c5 FF 4D CE F2 AD A3 C3 Geneva 3E CC 1E 9E. M........w>, .....
00a0:51 3C BD 3 a D9 B9 C4 B9 F5 the QF<.G2EP: .....
00b0:f3 B1 9E, 5F, 0D, F2, 6E ....... 3.6.pn
00C0:B5 CA 5D ca D7 0B 3D A5 8D A4 C2 4E D3 9D 47 ...] ...=.... N.. G
00d0:e4 7C DC FD 9F A5 A0 9E 5A 13 68 67 ... 1.......cz.hg
00e0:6b E9 0E AB CC E4 9F 6F (k ...). ' ... oDc
00f0:42 D6 D8 6C 5F 2F D2 5E F5 3D (7C) B. l._/b.a.^.=.
]
Do you trust the above certificate [Y|n]-->y
OTD-70215 the Administration node has been configured successfully.
The node can be started by executing:/home/otdnode/otdagent/admin-server/bin/startserv
Launch Node2 Instance
[Email protected] ~]#/home/otdnode/otdagent/admin-server/bin/startserv
Oracle traffic Director 11.1.1.7.0 b01/14/2013 04:13
[Notification:1] [OTD-10333] Daemon is running as Super-user
[Notification:1] [OTD-80118] Using [Java HotSpot (TM) 64-bit Server VM, Version 1.6.0_35] from [Sun Microsystems INC]
[Notification:1] [OTD-80000] Loading Web module in Virtual Server [Admin-server] at [/jmxconnector]
[Notification:1] [OTD-10358] admin-ssl-port:https://node2:8990 ready to accept requests
[Notification:1] [OTD-10487] Successful server startup
http://ip:8989
The following is a Web page configuration, not repeating.
Oracle Traffic Director Installation