Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Oracle traffic director installation

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

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

Close 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 local yum sources and 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 profile

Service vsftpd restart

[root@node1 Server] # yum install kernel-devel* compat-libcap* openssl-devel* compat-libstdc++* krb5-devel* libstdc++* zlib-devel* glibc* e2fsprogsMurl * 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

[root@node1 ~] # vim / etc/keepalived/keepalived.conf

! Configuration File for keepalived

Global_defs {

Notification_email {

Acassen@firewall.loc

Failover@firewall.loc

Sysadmin@firewall.loc

}

Notification_email_from Alexandre.Cassen@firewall.loc

Smtp_server 192.168.200.1

Smtp_connect_timeout 30

Router_id LVS_DEVEL

}

Vrrp_instance VI_1 {

State MASTER

Interface eth3

Virtual_router_id 51

Priority 90

Advert_int 1

Authentication {

Auth_type PASS

Auth_pass 1111

}

Virtual_ipaddress {

192.168.3.200

}

}

[root@node1 ~] # ln-s / etc/rc.d/init.d/keepalived / etc/rc2.d/S99keepalived Boot

[root@node1 ~] # / etc/rc.d/init.d/keepalived start start the service

[root@node2 keepalived-1.2.19] # ln-s / etc/rc.d/init.d/keepalived / etc/rc2.d/S99keepalived boot

[root@node2 keepalived-1.2.19] # vim / etc/keepalived/keepalived.conf

! Configuration File for keepalived

Global_defs {

Notification_email {

Acassen@firewall.loc

Failover@firewall.loc

Sysadmin@firewall.loc

}

Notification_email_from Alexandre.Cassen@firewall.loc

Smtp_server 192.168.200.1

Smtp_connect_timeout 30

Router_id LVS_DEVEL

}

Vrrp_instance VI_1 {

State BACKUP

Interface eth3

Virtual_router_id 51

Priority 100

Advert_int 1

Authentication {

Auth_type PASS

Auth_pass 1111

}

Virtual_ipaddress {

192.168.3.200

}

}

[root@node2 keepalived-1.2.19] # service keepalived status

Keepalived is stopped

[root@node2 keepalived-1.2.19] # / etc/rc.d/init.d/keepalived start

Starting keepalived: [OK]

[root@node2 keepalived-1.2.19] # ip a to see if the virtual address is valid.

1: lo: 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: eth3: mtu 1500 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 eth3

Inet 192.168.3.200/32 scope global eth3

Inet6 fe80::250:56ff:feae:554/64 scope link

Valid_lft forever preferred_lft forever

Note: node1 keepalived.conf configuration vrrp instance status is master, priority 90 keepalived.conf configuration vrrp instance status is backup, priority is 100 (default).

Otd installation (weblogic)

Cd / u01/install

Compressed package of unzip otd

Cd / Disk1

. / runInstaller

Prompt to create an inventory directory as root, and the copy script can be executed.

[root@node2 ~] # / 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 default all the way.

Create an instance of otdadmin management host:

/ 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@otdadmin 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 will create the administration server. The password that is provided will 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 user name 'admin'.

You have mail in / var/spool/mail/root

Start the management host instance

[root@otdadmin 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 node node1 (registered in management)

/ 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

[root@node1 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 will create an administration node and register it with the remote administration server: https://192.168.3.101: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: 27970370086129820713278148979204398704024188657021587582583970629179527942629390322422765675015647635715303734018198812156090528577387168834943398019258340709908905238035168371262141775626654885278564964907192263703894897979531092209827117540683436433063127666236282727217111216111100384604378280616425273841922007807079003229080198150819204704517915422390637846687330664627112755271697500495271063463897969560737312877462308761396766479974486404294082913069488602965784939030070873706316467364581865753847348539692990673704006850905917377433827307078237371280074915575283302384394304362842188191638091672222288546217

Public exponent: 65537

Validity: [From: Mon Jul 27 20:59:50 CST 2015

To: Wed Jul 27 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 70 72 92 DD C2 A0 B8 CB 36 C8 8E 4F 5A... pr.6..OZ

0010: AE CC 1B C5 F4 13 E0 8E BD 86 F5 04 0C 97 5D 3B.]

0020: 7e D1 1B A25B D8 317F C9 140A F3 08 AC DF 24. [.1. $

0030: 2C 16 18 48 3C E3 06 7E 76 28 B8 6D 3A BB 1C C8,.. Hy

OTD-70215 The administration node has been configured successfully.

The node can be started by executing: / home/weblogic/otdagent/admin-server/bin/startserv

Start the node1 instance

[root@node1 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 node nod2 (registered in management)

[root@node2] # / 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 will create an administration node and register it with the remote administration server: https://192.168.3.101: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: 25406323884744256625524468900360012418920526925855761864507164904985361880517931758311250086429545751387752608246436981771964736760211252278737360505239413909757341486818817872897530429500451524151791482863602954237159557899486541958859172924571855779453826847240323056767453702763122798876478137355326788309113855003285395366170433345768234480708921675024724460228229995636369890835037306821221633053350197520886063651391471803411122634595846193831642710455373109613226762945409607477428274010668359830833375255231508796141497914269352523968074001425514424328955653386431759823573902680891333926711452464979088857433

Public exponent: 65537

Validity: [From: Mon Jul 27 16:38:13 CST 2015

To: Wed Jul 27 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 35 0E 8D 81 DB B4 2F 94 14 66 CF 9D 3F D5 ..5. / ..f..?.

0010: 3e 9e 6D 10 DE 37 18 8C 0C B3 9F 56 E1 FE 27 FD > .m.. 7.V..

0020: 01 6C 67 3D 21 0E 43 0F BF 1A B2 2F 05 00 64 74. LG =! .C.... /.. DT

0030: F7 1A 11 31 30 63 1A 72 E4 69 80 24 A2 2B 77 F9... 10c.r.i.$.+w.

0040: AC 09 BE F2 91 A6 21 2B C9 19 75 4A 27 E9 02 40.! +.. uJ'..@

0050: EA E6 71 E7 6B 09 FD 76 C6 6A 95 0C 6A 58 87 14.. q.k..v.j..jX..

0060: 0A B9 83 BB 9e BE D7 8A 28 01 52 97 F7 AD F1 10.

0070: 63 A7 DA 43 76 DA E3 3A C3 A8 0D 8D BF FC D0 F3 c..Cv..:.

0080: E9 6B C8 FA 4A 1F 97 46 0B A2 84 07 40 7C 4D 69 .k.. F.... @ .Mi

0090: C 5 FF 4D CE F 2 AD 17 A 3 C 3 02 03 77 3 E CC 1E... M.W >.

00A0: 51 66 3C BD 67 32 45 50 3A D9 B9 C4 80 B9 F5 02 Qfy

OTD-70215 The administration node has been configured successfully.

The node can be started by executing: / home/otdnode/otdagent/admin-server/bin/startserv

Start the node2 instance

[root@node2 ~] # / 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 the configuration of the web page, which will not be discussed in detail.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report