3.4.安装Grid Infrastructure

3.4.1.安装Grid

1.运行 grid的安装文件runInstaller

[grid@linuxrac1 grid]$ ./runInstaller

Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 14708 MB    Passed

Checking swap space: must be greater than 150 MB.   Actual 5945 MB    Passed

Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-09-26_12

                      安装图 略

以root用户按顺序执行

1.[root@rac1 ~]# /u01/app/oraInventory/orainstRoot.sh

2.[root@rac2 ~]# /u01/app/oraInventory/orainstRoot.sh

3.[root@rac1 ~]# /u01/app/11.2.0/grid/root.sh

4.[root@rac2 ~]# /u01/app/11.2.0/grid/root.sh 运行完脚本后,点击ok完成安装.如果不能rac-scan,那么会报错

[root@linuxrac1 ~]# /u01/app/oraInventory/orainstRoot.sh

Changing permissions of /u01/app/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.

The execution of the script is complete.

[root@linuxrac2 ~]# /u01/app/oraInventory/orainstRoot.sh

Changing permissions of /u01/app/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.

The execution of the script is complete.

[root@linuxrac1 ~]# /u01/app/11.2.0/grid/root.sh

Running Oracle 11g root.sh script...

The following environment variables are set as:

ORACLE_OWNER= grid

ORACLE_HOME=  /u01/app/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]: /usr/local/bin

The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying dbhome to /usr/local/bin ...

The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying oraenv to /usr/local/bin ...

The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying coraenv to /usr/local/bin ...

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root.sh script.

Now product-specific root actions will be performed.

2014-10-17 00:24:16: Parsing the host name

2014-10-17 00:24:16: Checking for super user privileges

2014-10-17 00:24:16: User has super user privileges

Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params

Creating trace directory

LOCAL ADD MODE

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

root wallet

root wallet cert

root cert export

peer wallet

profile reader wallet

pa wallet

peer wallet keys

pa wallet keys

peer cert request

pa cert request

peer cert

pa cert

peer root cert TP

profile reader root cert TP

pa root cert TP

peer pa cert TP

pa peer cert TP

profile reader pa cert TP

profile reader peer cert TP

peer user cert

pa user cert

Adding daemon to inittab

CRS-4123: Oracle High Availability Services has been started.

ohasd is starting

ADVM/ACFS is not supported on centos-release-5-4.el5.centos.1

CRS-2672: Attempting to start 'ora.gipcd' on 'linuxrac1'

CRS-2672: Attempting to start 'ora.mdnsd' on 'linuxrac1'

CRS-2676: Start of 'ora.gipcd' on 'linuxrac1' succeeded

CRS-2676: Start of 'ora.mdnsd' on 'linuxrac1' succeeded

CRS-2672: Attempting to start 'ora.gpnpd' on 'linuxrac1'

CRS-2676: Start of 'ora.gpnpd' on 'linuxrac1' succeeded

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'linuxrac1'

CRS-2676: Start of 'ora.cssdmonitor' on 'linuxrac1' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'linuxrac1'

CRS-2672: Attempting to start 'ora.diskmon' on 'linuxrac1'

CRS-2676: Start of 'ora.diskmon' on 'linuxrac1' succeeded

CRS-2676: Start of 'ora.cssd' on 'linuxrac1' succeeded

CRS-2672: Attempting to start 'ora.ctssd' on 'linuxrac1'

CRS-2676: Start of 'ora.ctssd' on 'linuxrac1' succeeded

ASM created and started successfully.

DiskGroup OCR_VOTE created successfully.

clscfg: -install mode specified

Successfully accumulated necessary OCR keys.

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

CRS-2672: Attempting to start 'ora.crsd' on 'linuxrac1'

CRS-2676: Start of 'ora.crsd' on 'linuxrac1' succeeded

CRS-4256: Updating the profile

Successful addition of voting disk 4657b29f8f874f22bfd2d3d9ace93e9f.

Successfully replaced voting disk group with +OCR_VOTE.

CRS-4256: Updating the profile

CRS-4266: Voting file(s) successfully replaced

##  STATE    File Universal Id                File Name Disk group

--  -----    -----------------                --------- ---------

1. ONLINE   4657b29f8f874f22bfd2d3d9ace93e9f (ORCL:OCR_VOTE) [OCR_VOTE]

Located 1 voting disk(s).

CRS-2673: Attempting to stop 'ora.crsd' on 'linuxrac1'

CRS-2677: Stop of 'ora.crsd' on 'linuxrac1' succeeded

CRS-2673: Attempting to stop 'ora.asm' on 'linuxrac1'

CRS-2677: Stop of 'ora.asm' on 'linuxrac1' succeeded

CRS-2673: Attempting to stop 'ora.ctssd' on 'linuxrac1'

CRS-2677: Stop of 'ora.ctssd' on 'linuxrac1' succeeded

CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'linuxrac1'

CRS-2677: Stop of 'ora.cssdmonitor' on 'linuxrac1' succeeded

CRS-2673: Attempting to stop 'ora.cssd' on 'linuxrac1'

CRS-2677: Stop of 'ora.cssd' on 'linuxrac1' succeeded

CRS-2673: Attempting to stop 'ora.gpnpd' on 'linuxrac1'

CRS-2677: Stop of 'ora.gpnpd' on 'linuxrac1' succeeded

CRS-2673: Attempting to stop 'ora.gipcd' on 'linuxrac1'

CRS-2677: Stop of 'ora.gipcd' on 'linuxrac1' succeeded

CRS-2673: Attempting to stop 'ora.mdnsd' on 'linuxrac1'

CRS-2677: Stop of 'ora.mdnsd' on 'linuxrac1' succeeded

CRS-2672: Attempting to start 'ora.mdnsd' on 'linuxrac1'

CRS-2676: Start of 'ora.mdnsd' on 'linuxrac1' succeeded

CRS-2672: Attempting to start 'ora.gipcd' on 'linuxrac1'

CRS-2676: Start of 'ora.gipcd' on 'linuxrac1' succeeded

CRS-2672: Attempting to start 'ora.gpnpd' on 'linuxrac1'

CRS-2676: Start of 'ora.gpnpd' on 'linuxrac1' succeeded

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'linuxrac1'

CRS-2676: Start of 'ora.cssdmonitor' on 'linuxrac1' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'linuxrac1'

CRS-2672: Attempting to start 'ora.diskmon' on 'linuxrac1'

CRS-2676: Start of 'ora.diskmon' on 'linuxrac1' succeeded

CRS-2676: Start of 'ora.cssd' on 'linuxrac1' succeeded

CRS-2672: Attempting to start 'ora.ctssd' on 'linuxrac1'

CRS-2676: Start of 'ora.ctssd' on 'linuxrac1' succeeded

CRS-2672: Attempting to start 'ora.asm' on 'linuxrac1'

CRS-2676: Start of 'ora.asm' on 'linuxrac1' succeeded

CRS-2672: Attempting to start 'ora.crsd' on 'linuxrac1'

CRS-2676: Start of 'ora.crsd' on 'linuxrac1' succeeded

CRS-2672: Attempting to start 'ora.evmd' on 'linuxrac1'

CRS-2676: Start of 'ora.evmd' on 'linuxrac1' succeeded

CRS-2672: Attempting to start 'ora.asm' on 'linuxrac1'

CRS-2676: Start of 'ora.asm' on 'linuxrac1' succeeded

CRS-2672: Attempting to start 'ora.OCR_VOTE.dg' on 'linuxrac1'

CRS-2676: Start of 'ora.OCR_VOTE.dg' on 'linuxrac1' succeeded

linuxrac1     2014/10/17 00:28:25     /u01/app/11.2.0/grid/cdata/linuxrac1/backup_20141017_002825.olr

Preparing packages for installation...

cvuqdisk-1.0.7-1

Configure Oracle Grid Infrastructure for a Cluster ... succeeded

Updating inventory properties for clusterware

Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 5945 MB    Passed

The inventory pointer is located at /etc/oraInst.loc

The inventory is located at /u01/app/oraInventory

'UpdateNodeList' was successful.

[root@linuxrac2 ~]# /u01/app/11.2.0/grid/root.sh

Running Oracle 11g root.sh script...

The following environment variables are set as:

ORACLE_OWNER= grid

ORACLE_HOME=  /u01/app/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]: /usr/local/bin

The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying dbhome to /usr/local/bin ...

The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying oraenv to /usr/local/bin ...

The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)

[n]: y

Copying coraenv to /usr/local/bin ...

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root.sh script.

Now product-specific root actions will be performed.

2014-10-17 00:30:02: Parsing the host name

2014-10-17 00:30:02: Checking for super user privileges

2014-10-17 00:30:02: User has super user privileges

Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params

Creating trace directory

LOCAL ADD MODE

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

Adding daemon to inittab

CRS-4123: Oracle High Availability Services has been started.

ohasd is starting

ADVM/ACFS is not supported on centos-release-5-4.el5.centos.1

CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node linuxrac1, number 1, and is terminating

An active cluster was found during exclusive startup, restarting to join the cluster

CRS-2672: Attempting to start 'ora.mdnsd' on 'linuxrac2'

CRS-2676: Start of 'ora.mdnsd' on 'linuxrac2' succeeded

CRS-2672: Attempting to start 'ora.gipcd' on 'linuxrac2'

CRS-2676: Start of 'ora.gipcd' on 'linuxrac2' succeeded

CRS-2672: Attempting to start 'ora.gpnpd' on 'linuxrac2'

CRS-2676: Start of 'ora.gpnpd' on 'linuxrac2' succeeded

CRS-2672: Attempting to start 'ora.cssdmonitor' on 'linuxrac2'

CRS-2676: Start of 'ora.cssdmonitor' on 'linuxrac2' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'linuxrac2'

CRS-2672: Attempting to start 'ora.diskmon' on 'linuxrac2'

CRS-2676: Start of 'ora.diskmon' on 'linuxrac2' succeeded

CRS-2676: Start of 'ora.cssd' on 'linuxrac2' succeeded

CRS-2672: Attempting to start 'ora.ctssd' on 'linuxrac2'

CRS-2676: Start of 'ora.ctssd' on 'linuxrac2' succeeded

CRS-2672: Attempting to start 'ora.asm' on 'linuxrac2'

CRS-2676: Start of 'ora.asm' on 'linuxrac2' succeeded

CRS-2672: Attempting to start 'ora.crsd' on 'linuxrac2'

CRS-2676: Start of 'ora.crsd' on 'linuxrac2' succeeded

CRS-2672: Attempting to start 'ora.evmd' on 'linuxrac2'

CRS-2676: Start of 'ora.evmd' on 'linuxrac2' succeeded

linuxrac2     2014/10/17 00:32:27     /u01/app/11.2.0/grid/cdata/linuxrac2/backup_20141017_003227.olr

Preparing packages for installation...

cvuqdisk-1.0.7-1

Configure Oracle Grid Infrastructure for a Cluster ... succeeded

Updating inventory properties for clusterware

Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 5945 MB    Passed

The inventory pointer is located at /etc/oraInst.loc

The inventory is located at /u01/app/oraInventory

'UpdateNodeList' was successful.

3.4.2.确认集群软件安装成功

查看集群软件安装结果

[root@linuxrac1 /]# crs_stat -t

Name           Type           Target    State     Host

------------------------------------------------------------

ora....ER.lsnr ora....er.type ONLINE    ONLINE    linuxrac1

ora....N1.lsnr ora....er.type ONLINE    ONLINE    linuxrac1

ora....VOTE.dg ora....up.type ONLINE    ONLINE    linuxrac1

ora.asm        ora.asm.type   ONLINE    ONLINE    linuxrac1

ora.eons       ora.eons.type  ONLINE    ONLINE    linuxrac1

ora.gsd        ora.gsd.type   OFFLINE   OFFLINE

ora....SM1.asm application    ONLINE    ONLINE    linuxrac1

ora....C1.lsnr application    ONLINE    ONLINE    linuxrac1

ora....ac1.gsd application    OFFLINE   OFFLINE

ora....ac1.ons application    ONLINE    ONLINE    linuxrac1

ora....ac1.vip ora....t1.type ONLINE    ONLINE    linuxrac1

ora....SM2.asm application    ONLINE    ONLINE    linuxrac2

ora....C2.lsnr application    ONLINE    ONLINE    linuxrac2

ora....ac2.gsd application    OFFLINE   OFFLINE

ora....ac2.ons application    ONLINE    ONLINE    linuxrac2

ora....ac2.vip ora....t1.type ONLINE    ONLINE    linuxrac2

ora....network ora....rk.type ONLINE    ONLINE    linuxrac1

ora.oc4j       ora.oc4j.type  OFFLINE   OFFLINE

ora.ons        ora.ons.type   ONLINE    ONLINE    linuxrac1

ora.scan1.vip  ora....ip.type ONLINE    ONLINE    linuxrac1

[root@linuxrac1 /]# crs_stat -t -v

Name           Type           R/RA   F/FT   Target    State     Host

----------------------------------------------------------------------

ora....ER.lsnr ora....er.type 0/5    0/     ONLINE    ONLINE    linuxrac1

ora....N1.lsnr ora....er.type 0/5    0/0    ONLINE    ONLINE    linuxrac1

ora....VOTE.dg ora....up.type 0/5    0/     ONLINE    ONLINE    linuxrac1

ora.asm        ora.asm.type   0/5    0/     ONLINE    ONLINE    linuxrac1

ora.eons       ora.eons.type  0/3    0/     ONLINE    ONLINE    linuxrac1

ora.gsd        ora.gsd.type   0/5    0/     OFFLINE   OFFLINE

ora....SM1.asm application    0/5    0/0    ONLINE    ONLINE    linuxrac1

ora....C1.lsnr application    0/5    0/0    ONLINE    ONLINE    linuxrac1

ora....ac1.gsd application    0/5    0/0    OFFLINE   OFFLINE

ora....ac1.ons application    0/3    0/0    ONLINE    ONLINE    linuxrac1

ora....ac1.vip ora....t1.type 0/0    0/0    ONLINE    ONLINE    linuxrac1

ora....SM2.asm application    0/5    0/0    ONLINE    ONLINE    linuxrac2

ora....C2.lsnr application    0/5    0/0    ONLINE    ONLINE    linuxrac2

ora....ac2.gsd application    0/5    0/0    OFFLINE   OFFLINE

ora....ac2.ons application    0/3    0/0    ONLINE    ONLINE    linuxrac2

ora....ac2.vip ora....t1.type 0/0    0/0    ONLINE    ONLINE    linuxrac2

ora....network ora....rk.type 0/5    0/     ONLINE    ONLINE    linuxrac1

ora.oc4j       ora.oc4j.type  0/5    0/0    OFFLINE   OFFLINE

ora.ons        ora.ons.type   0/3    0/     ONLINE    ONLINE    linuxrac1

ora.scan1.vip  ora....ip.type 0/0    0/0    ONLINE    ONLINE    linuxrac1

3.4.3.创建ASM磁盘组

  本次任务将创建 3 个asm 磁盘组,分别为:DATA,FRA。其中DATA 将存放数据库文件;FRA 存放闪回文件.

在grid 用户下,执行 asmca,启动 asm 磁盘组创建向导。

在grid用户下,执行asmca

[grid@linuxrac1 ~]$ pwd

/home/grid

[grid@linuxrac1 ~]$ asmca

基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境所有链接:

1.资源准备
http://www.cnblogs.com/HondaHsu/p/4046352.html

2.搭建环境-2.1创建虚拟机
http://www.cnblogs.com/HondaHsu/p/4046378.html

2.搭建环境-2.2安装操作系统CentOS5.4
http://www.cnblogs.com/HondaHsu/p/4046384.html

2.搭建环境-2.3配置共享磁盘
http://www.cnblogs.com/HondaHsu/p/4046389.html

2.搭建环境-2.4. 安装JDK
http://www.cnblogs.com/HondaHsu/p/4046430.html

2.搭建环境-2.5. 配置网络
http://www.cnblogs.com/HondaHsu/p/4046443.html

2.搭建环境-2.6. 安装Oracle所依赖的必要包
http://www.cnblogs.com/HondaHsu/p/4054216.html

2.搭建环境-2.7. 配置资源与参数
http://www.cnblogs.com/HondaHsu/p/4054238.html

2.搭建环境-2.8. 配置用户环境
http://www.cnblogs.com/HondaHsu/p/4054259.html

2.搭建环境-2.9. 配置用户等效性(可选项)
http://www.cnblogs.com/HondaHsu/p/4054277.html

2.搭建环境-2.10.配置用户NTF服务
http://www.cnblogs.com/HondaHsu/p/4054333.html

3.安装Oracle RAC-3.1.安装并配置ASM驱动
http://www.cnblogs.com/HondaHsu/p/4054367.html

3.安装Oracle RAC-3.2.安装 cvuqdisk 软件包
http://www.cnblogs.com/HondaHsu/p/4054395.html

3.安装Oracle RAC-3.3.安装前检查
http://www.cnblogs.com/HondaHsu/p/4054481.html

3.安装Oracle RAC-3.4.安装Grid Infrastructure
http://www.cnblogs.com/HondaHsu/p/4054518.html

3.安装Oracle RAC-3.5.安装oracle11gr2 database 软件与创建数据库
http://www.cnblogs.com/HondaHsu/p/4054586.html

3.安装Oracle RAC-3.6.集群管理命令
http://www.cnblogs.com/HondaHsu/p/4054635.html

4.安装Oracle RAC FAQ-4.1.系统界面报错Gnome
http://www.cnblogs.com/HondaHsu/p/4046314.html

4.安装Oracle RAC FAQ-4.2.Oracleasm Createdisk ASM磁盘失败:Instantiating disk: failed
http://www.cnblogs.com/HondaHsu/p/4046248.html

4.安装Oracle RAC FAQ-4.3.Oracle 集群节点间连通失败
http://www.cnblogs.com/HondaHsu/p/4046263.html

4.安装Oracle RAC FAQ-4.4.无法图形化安装Grid Infrastructure
http://www.cnblogs.com/HondaHsu/p/4046273.html

4.安装Oracle RAC FAQ-4.5.安装Grid,创建ASM磁盘组空间不足
http://www.cnblogs.com/HondaHsu/p/4046285.html

4.安装Oracle RAC FAQ-4.6.重新配置与缷载11R2 Grid Infrastructure
http://www.cnblogs.com/HondaHsu/p/4046300.html

4.安装Oracle RAC FAQ-4.7.Oracle 11G R2 RAC修改public网络IP
http://www.cnblogs.com/HondaHsu/p/4054953.html

基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:3.安装Oracle RAC-3.4.安装Grid Infrastructure的更多相关文章

  1. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:2.搭建环境-2.7. 配置资源与参数

    2.7.配置资源与参数 2.7.1. 修改主机名称 [root@linuxrac1 ~]# cd /etc/sysconfig [root@linuxrac1 sysconfig]# vi netwo ...

  2. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:2.搭建环境-2.6. 安装Oracle所依赖的必要包

    2.6. 安装Oracle所依赖的必要包 2.6.1. 检查Oracle所依赖的必要rpm包 [root@localhost /]#rpm -q binutils compat-libstdc elf ...

  3. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:2.搭建环境-2.5. 配置网络

    2.5. 配置网络 2.5.1. 配置网络 Oracle Rac数据库涉及到公用网络和私有网络,因此要做网络划分和IP地址规划,下表列出了要安装的RAC数据库对应的IP地址.主机名以及网络连接类型: ...

  4. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:2.搭建环境-2.4. 安装JDK

    2.4.安装JDK 2.4.1.准备JDK 在百度搜索:JDK下载 2.4.2.上传JDK put E:\软件安装文件\jdk-8u11-linux-x64.rpm /home/linuxrac1/D ...

  5. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:2.搭建环境-2.3配置共享磁盘

    2.3.配置共享磁盘 2.3.1.创建共享磁盘 在cmd中进入WMware Workstation 10.0 安装目录: 1.创建存储Oracle Clusterware文件  (Oracle Clu ...

  6. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:2.搭建环境-2.2安装操作系统CentOS5.4

    2.2. 安装操作系统CentOS5.4 两个虚拟机都安装,此步骤在创建虚拟机节点时: 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境所有链接: 1.资源 ...

  7. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:2.搭建环境-2.1创建虚拟机

    2.1.创建虚拟机 2.1.1. 创建虚拟机节点1 2.1.2.  创建虚拟机节点2 操作如节点1. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境所有链 ...

  8. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:1.资源准备

    最近,在VmwareStation 10虚拟机上,基于CentOS5.4安装Oracle 11g RAC,并把过程记录下来.刚开始时,是基于CentOS 6.4安装Oracle 11g RAC, 没有 ...

  9. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:4.安装Oracle RAC FAQ-4.1.系统界面报错Gnome

    1.错误信息:登录系统后,屏幕弹出几个错误对话框,无菜单.无按钮 GConf error: Failed to contact configuration server; some possible ...

  10. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:4.安装Oracle RAC FAQ-4.6.重新配置与缷载11R2 Grid Infrastructure

    1.[root@linuxrac1 ~]# /u01/app/oraInventory/orainstRoot.sh 2.[root@linuxrac2 ~]# /u01/app/oraInvento ...

随机推荐

  1. Linux下的hrtimer高精度定时器【转】

    转自:http://blog.csdn.net/waverider2012/article/details/38305785 hrtimer高精度定时器的interval由ktime_set(cons ...

  2. centos 7 卸载自带的jdk

    # 查看jdk安装信息 rpm -qa|grep java 卸载已安装的jdk: # yum -y remove java java-1.7.0-*

  3. OC学习——OC中的@protocol(@required、@optional)、代理设计模式

    一.什么是协议? 1.协议声明了可以被任何类实现的方法   2.协议不是类,它是定义了一个其他对象可以实现的接口   3.如果在某个类中实现了协议中的某个方法,也就是这个类实现了那个协议.   4.协 ...

  4. __rb_tree_rebalance

    Inline void __rb_tree_rebalance(__rb_tree_node_base* x, __rb_tree_node_base*& root) //当前节点,根 { x ...

  5. kafka consumer 代码示例

    使用者小组 使得许多进程的多台机器 在逻辑上作为一个单个的使用者 出现. 我们使用中,一种常见的情况是,我们按照逻辑划分出多个使用者小组,每个小组都是有作为一个逻辑整体的多台使用者计算机组成的集群. ...

  6. Selenium2+python自动化46-js解决click失效问题【转载】

    前言 有时候元素明明已经找到了,运行也没报错,点击后页面没任何反应.这种问题遇到了,是比较头疼的,因为没任何报错,只是click事件失效了. 本篇用2种方法解决这种诡异的点击事件失效问题 一.遇到的问 ...

  7. python 如何将JSON数据原封不动的转为字符串(顺序不能变动)?

    最好是采用 OrderedDict + json.dumps方案 1. 在存储 content 的时候就使用 OrderedDict 而非用默认的 dict from collections impo ...

  8. python3生成测试数据,并写入ssdb

    import pyssdb import random import time c = pyssdb.Client() chars = 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoP ...

  9. redis持久化的方法及对比

    1.持久化的作用 redis所有的数据保持在内存中,对数据的更新将异步的保存到磁盘上. 两种方式: 2.RDB 2.1.概念 2.2.触发机制 2.2.1.save 同步 因为是同步命令,数据量大的话 ...

  10. 如果想从jenkins直接生成docker镜像,并推送到harbor中,最简单的脚本如何实现?

    如果不考虑意外, 第一版最简单的构思如下: #!/usr/bin/env python # -*- coding: utf-8 -*- import getopt, sys import subpro ...