设为首页 收藏本站
查看: 488|回复: 0

[经验分享] oracle traffic director安装

[复制链接]
发表于 2018-9-9 10:25:05 | 显示全部楼层 |阅读模式
  网络拓扑
  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.101  otdadmin
  192.168.3.201  node1
  192.168.3.202  node2
  创建用户和组
  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
  [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
  删除原来的yum源配置文件
  service vsftpd restart
  [root@node1 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安装(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 eth2
  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  开机自启动
  [root@node1 ~]# /etc/rc.d/init.d/keepalived start  启动服务
  [root@node2 keepalived-1.2.19]# ln -s /etc/rc.d/init.d/keepalived /etc/rc2.d/S99keepalived  开机启动
  [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 eth2
  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   查看虚地址是否生效。
  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脚本执行即可。
  [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
  然后一路默认即可
  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
  [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
  启动管理主机实例
  [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
  创建节点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
  [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 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实例
  [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
  创建节点nod2的实例(在管理中西注册)
  [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  ........(.R.....
  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..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 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
  启动node2实例
  [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
  以下为web页面配置,不在赘述。


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-568629-1-1.html 上篇帖子: Oracle学习之DATAGUARD(十一) snapshot database 下篇帖子: oracle常用的一些时间转换
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表