上都海奶茶馆 发表于 2018-9-9 10:25:05

oracle traffic director安装

  网络拓扑
  otdadmin 192.168.3.101
  node1 192.168.3.201
  node2 192.168.3.202   virtual ip 192.168.3.200
  系统版本;
  olinux6.4
  关闭防火墙 chkconfig iptables off
  service iptables stop
  关闭selinux
  vim /etc/selinux/config
  selinux=disabled
  init 6
  配置dns
  vim /etc/hosts
  192.168.3.101otdadmin
  192.168.3.201node1
  192.168.3.202node2
  创建用户和组
  groupadd -g 501 oinstall
  useradd -g oinstall -u 501 weblogic
  创建目录
  mkdir -p /u01/install
  chwon -R weblogic:oinstall /u01
  配置本地yum源,安装依赖的软件包
  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
  
  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
  删除原来的yum源配置文件
  service vsftpd restart
  #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安装(root)
  tar -xzvf *.tar.gz
  ./configure --prefix=/usr --sysconfdir=/etc
  make
  make install
  # 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 eth2
  virtual_router_id 51
  priority 90
  advert_int 1
  authentication {
  auth_type PASS
  auth_pass 1111
  }
  virtual_ipaddress {
  192.168.3.200
  }
  }
  # ln -s /etc/rc.d/init.d/keepalived /etc/rc2.d/S99keepalived开机自启动
  # /etc/rc.d/init.d/keepalived start启动服务
  # ln -s /etc/rc.d/init.d/keepalived /etc/rc2.d/S99keepalived开机启动
  # 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 eth2
  virtual_router_id 51
  priority 100
  advert_int 1
  authentication {
  auth_type PASS
  auth_pass 1111
  }
  virtual_ipaddress {
  192.168.3.200
  }
  }
  # service keepalived status
  keepalived is stopped
  # /etc/rc.d/init.d/keepalived start
  Starting keepalived:                                       
  # ip a   查看虚地址是否生效。
  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: eth2: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 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
  注意:node1的keepalived.conf配置vrrp实例状态为master,优先级90,node2的keepalived.conf配置vrrp实例状态为backup,优先级为100(默认).
  otd安装(weblogic)
  cd /u01/install
  unzip otd的压缩包
  cd /Disk1
  ./runInstaller
  提示以root身份创建清单目录,copy脚本执行即可。
  # /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
  然后一路默认即可
  otdadmin管理主机创建实例:
  /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
  # /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
  启动管理主机实例
  # /home/weblogic/adminstanc/admin-server/bin/startserv
  Oracle Traffic Director 11.1.1.7.0 B01/14/2013 04:13
   daemon is running as super-user
   Using from
   Loading web module in virtual server at
   Loading web module in virtual server at
   admin-ssl-port: https://otdadmin:8989 ready to accept requests
   successful server startup
  创建节点node1的实例(在管理中西注册)
  /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
  # /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
  : ObjectId: 2.5.29.37 Criticality=true
  ExtendedKeyUsages [
  serverAuth
  ]
  : ObjectId: 2.5.29.15 Criticality=true
  KeyUsage [
  Key_Encipherment
  Key_Agreement
  ]
  ]
  Algorithm:
  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 A2 5B D8 31 7F   C9 14 0A 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
  启动node1实例
  # /home/weblogic/otdagent/admin-server/bin/startserv
  Oracle Traffic Director 11.1.1.7.0 B01/14/2013 04:13
   daemon is running as super-user
   Using from
   Loading web module in virtual server at
   admin-ssl-port: https://node1:8990 ready to accept requests
   successful server startup
  创建节点nod2的实例(在管理中西注册)
  # /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
  : ObjectId: 2.5.29.37 Criticality=true
  ExtendedKeyUsages [
  serverAuth
  ]
  : ObjectId: 2.5.29.15 Criticality=true
  KeyUsage [
  Key_Encipherment
  Key_Agreement
  ]
  ]
  Algorithm:
  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........(.R.....
  0070: 63 A7 DA 43 76 DA E3 3A   C3 A8 0D 8D BF FC D0 F3c..Cv..:........
  0080: E9 6B C8 FA 4A 1F 97 46   0B A2 84 07 40 7C 4D 69.k..J..F....@.Mi
  0090: C5 FF 4D CE F2 AD 17 A3   C3 02 03 77 3E CC 1E 9E..M........w>...
  00A0: 51 66 3C BD 67 32 45 50   3A D9 B9 C4 80 B9 F5 02Qfy
  OTD-70215 The administration node has been configured successfully.
  The node can be started by executing: /home/otdnode/otdagent/admin-server/bin/startserv
  启动node2实例
  # /home/otdnode/otdagent/admin-server/bin/startserv
  Oracle Traffic Director 11.1.1.7.0 B01/14/2013 04:13
   daemon is running as super-user
   Using from
   Loading web module in virtual server at
   admin-ssl-port: https://node2:8990 ready to accept requests
   successful server startup
  http://ip:8989
  以下为web页面配置,不在赘述。

页: [1]
查看完整版本: oracle traffic director安装