<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Centos on EvBackup</title>
    <link>https://forzw.com/tags/centos/</link>
    <description>Recent content in Centos on EvBackup</description>
    <image>
      <title>EvBackup</title>
      <url>https://forzw.com/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://forzw.com/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Wed, 03 Apr 2013 13:10:37 +0000</lastBuildDate>
    <atom:link href="https://forzw.com/tags/centos/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>module-init-tools与kmod冲突问题</title>
      <link>https://forzw.com/archives/696/</link>
      <pubDate>Wed, 03 Apr 2013 13:10:37 +0000</pubDate>
      <guid>https://forzw.com/archives/696/</guid>
      <description>&lt;p&gt;环境：redhat 5.6 x64&lt;/p&gt;
&lt;p&gt;在安装一个软件包时出现如下提示：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[root@tape setup]# rpm -Uvh kmod-mhvtl-1.3-1.el5.elrepo.x86_64.rpm 
warning: kmod-mhvtl-1.3-1.el5.elrepo.x86_64.rpm: Header V4 DSA signature: NOKEY
error: Failed dependencies:
        module-init-tools = 3.3-0.pre3.1.60.el5 conflicts with kmod-mhvtl-1.3-1.el5
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;经过搜索，原因是新的module管理方式kmod替代了原来软件module-init-tools的功能，在安装的时候造成冲突。&lt;/p&gt;
&lt;p&gt;有方法说卸载module-init-tools可以解决问题，但是卸载时会提示将依赖其的很多系统软件包一并卸载，估计不行。&lt;/p&gt;
&lt;p&gt;之后通过如下方式解决：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;下载相同版本的module-init-tools包，并安装  
 [root@tape setup]# rpm -Uvh kmod-mhvtl---.x86_64.rpm 

warning: kmod-mhvtl-1.3-1.el5.elrepo.x86_64.rpm: Header V4 DSA signature: NOKEY,  Preparing...             ########################################### 
[100%]    1:module-init-tools     ########################################### [ 50%]    2:kmod-mhvtl             ########################################### [100%] Working. This may take some
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;安装时间稍微变长。&lt;/p&gt;</description>
    </item>
    <item>
      <title>Sendmail和sm-client启动慢解决办法</title>
      <link>https://forzw.com/archives/668/</link>
      <pubDate>Mon, 16 Jul 2012 07:15:40 +0000</pubDate>
      <guid>https://forzw.com/archives/668/</guid>
      <description>&lt;p&gt;通常情况下在安装好redhat或者centos后，重启就会发现Sendmail和sm-client的启动速度异常缓慢，原因一般是在DNS中查询当前主机名称，由于查询不到，做递归查询，解决方法如下。 在/etc/hosts中添加主机名称解析，示例：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;127.0.0.1 localhost.localdomain localhost db1
#db1为当前主机名称
&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>在RedHat上安装Oracle 11gR2 RAC</title>
      <link>https://forzw.com/archives/664/</link>
      <pubDate>Sun, 15 Jul 2012 17:29:42 +0000</pubDate>
      <guid>https://forzw.com/archives/664/</guid>
      <description>&lt;p&gt;oracle版本：11.2.0.1.0 grid版本：11.2.0.1.0 redhat版本：RedHat EL5 x86_64 存储方式：iscsi + asm&lt;/p&gt;
&lt;p&gt;安装过程分以下四个步骤&lt;/p&gt;
&lt;p&gt;一，安装准备 二，配置安装 三，相关设置 四，常见错误&lt;/p&gt;
&lt;p&gt;一，安装准备 1，创建oracle用户  以root用户登录，并创建oracle用户以及所属的dba组&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;/usr/sbin/groupadd -g 501 oinstall
/usr/sbin/groupadd -g 502 dba
/usr/sbin/groupadd -g 503 oper
/usr/sbin/groupadd -g 504 asmadmin
/usr/sbin/groupadd -g 505 asmoper
/usr/sbin/groupadd -g 506 asmdba
/usr/sbin/useradd -g oinstall -G dba,asmdba,oper oracle
/usr/sbin/useradd -g oinstall -G asmadmin,asmdba,asmoper,oper,dba grid
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;2，配置系统参数&lt;/p&gt;
&lt;p&gt;编辑 /etc/sysctl.conf 文件并添加下列参数：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;#ORACLE SETTING
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;编辑 /etc/pam.d/login 文件，并添加下行参数：&lt;/p&gt;</description>
    </item>
    <item>
      <title>CentOS6,RHEL6虚拟机克隆引起的网卡问题</title>
      <link>https://forzw.com/archives/622/</link>
      <pubDate>Tue, 19 Jul 2011 16:52:42 +0000</pubDate>
      <guid>https://forzw.com/archives/622/</guid>
      <description>&lt;p&gt;系统环境：ubuntu&lt;br&gt;
软件：virtualbox-ose&lt;br&gt;
虚拟操作系统：centos6&lt;br&gt;
问题描述：对虚拟系统进行克隆后，开机执行“ifconfig”看不到eth0,执行”service network restart“提示错误“Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.”&lt;br&gt;
解决方法：&lt;br&gt;
方法一：（删除70-persistent-net.rules文件，并重启系统）&lt;br&gt;
rm -fr /etc/udev/rules.d/70-persistent-net.rules&lt;br&gt;
方法二：修改/etc/udev/rules.d/70-persistent-net.rules文件中刚生成的配置，就是对应正确MAC地址的eth1为eth0,并删除旧的配置项，之后重启网络服务。&lt;/p&gt;</description>
    </item>
    <item>
      <title>创建基于CentOS的LiveCD</title>
      <link>https://forzw.com/archives/621/</link>
      <pubDate>Sat, 16 Jul 2011 19:06:29 +0000</pubDate>
      <guid>https://forzw.com/archives/621/</guid>
      <description>&lt;p&gt;1，安装livecd相关工具&lt;/p&gt;
&lt;p&gt;创建文件/etc/yum.repos.d/centos-livecd.repo&lt;/p&gt;
&lt;p&gt;内容如下：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# Name: CentOS LiveCD repository
[livecd]
name = CentOS $releasever - LiveCD
baseurl = http://www.nanotechnologies.qc.ca/propos/linux/centos-live/$basearch/live
enabled=1
protect=0
gpgkey = http://www.nanotechnologies.qc.ca/propos/linux/RPM-GPG-KEY-PGuay2010
&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;#更新repo
yum clean all
yum update

#安装工具
yum install livecd-tools syslinux anaconda-runtime
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;#创建配置文件mini.ks（这里使用最简单配置）&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;lang en_US.UTF-8
keyboard us
timezone US/Eastern
auth --useshadow --enablemd5
selinux --enforcing
firewall --disabled

repo --name=a-base    --baseurl=http://mirror.centos.org/centos/5/os/$basearch
repo --name=a-updates --baseurl=http://mirror.centos.org/centos/5/updates/$basearch
#repo --name=a-extras  --baseurl=http://mirror.centos.org/centos/5/extras/$basearch
repo --name=a-live    --baseurl=http://www.nanotechnologies.qc.ca/propos/linux/centos-live/$basearch/live

%packages
bash
kernel
syslinux
passwd
policycoreutils
chkconfig
authconfig
rootfiles
comps-extras
xkeyboard-config
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;2，生成LiveCD（前提有可用的YUM源）&lt;/p&gt;</description>
    </item>
    <item>
      <title>在RedHat及其衍生系统上安装Oracle 9i</title>
      <link>https://forzw.com/archives/581/</link>
      <pubDate>Thu, 30 Dec 2010 03:46:25 +0000</pubDate>
      <guid>https://forzw.com/archives/581/</guid>
      <description>&lt;p&gt;系统环境：RedHat (Oracle) Enterprise 4 x86 and x86_64 oracle版本：9i(R2)&lt;/p&gt;
&lt;p&gt;安装过程分以下四个步骤&lt;/p&gt;
&lt;p&gt;一，安装准备 二，下载安装 三，相关设置 四，常见错误&lt;/p&gt;
&lt;p&gt;一，安装准备 1，创建oracle用户  以root用户登录，并创建oracle用户以及所属的dba组&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;su -
# groupadd dba
# useradd -g dba oracle
# mkdir /home/oracle
# chown oracle:dba /home/oracle  
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;2，配置系统参数&lt;/p&gt;
&lt;p&gt;编辑 /etc/sysctl.conf 文件并添加下列参数：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;kernel.sem = 250 32000 100 128
kernel.shmmax = 2147483648
kernel.shmmni = 128
kernel.shmall = 2097152
kernel.msgmnb = 65536
kernel.msgmni = 2878
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000  
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;编辑后可以运行“sysctl -p&amp;quot; 生效，或者重启系统&lt;/p&gt;
&lt;p&gt;编辑 /etc/security/limits.conf 并添加下行参数：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;* - nproc 16384
* - nofile 16384   
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;3，创建oracle目录&lt;/p&gt;</description>
    </item>
    <item>
      <title>在RedHat及其衍生系统上安装Oracle 11gR1</title>
      <link>https://forzw.com/archives/576/</link>
      <pubDate>Wed, 29 Dec 2010 14:39:29 +0000</pubDate>
      <guid>https://forzw.com/archives/576/</guid>
      <description>&lt;p&gt;oracle版本：11.1.0.6.0 redhat版本：RedHat EL4,5 Oracle EL 4,5 CentOS 4,5&lt;/p&gt;
&lt;p&gt;安装过程分以下四个步骤&lt;/p&gt;
&lt;p&gt;一，安装准备 二，下载安装 三，相关设置 四，常见错误&lt;/p&gt;
&lt;p&gt;一，安装准备 1，创建oracle用户  以root用户登录，并创建oracle用户以及所属的dba组&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;su -
# groupadd dba
# useradd -g dba oracle
# mkdir /home/oracle
# chown oracle:dba /home/oracle  
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;2，配置系统参数&lt;/p&gt;
&lt;p&gt;编辑 /etc/sysctl.conf 文件并添加下列参数：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6553600
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144 
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;编辑后可以运行“sysctl -p&amp;quot; 生效，或者重启系统&lt;/p&gt;</description>
    </item>
    <item>
      <title>在RedHat系统以及衍生系统生安装Oracle 10g</title>
      <link>https://forzw.com/archives/564/</link>
      <pubDate>Tue, 21 Dec 2010 10:19:36 +0000</pubDate>
      <guid>https://forzw.com/archives/564/</guid>
      <description>&lt;p&gt;版本：v1.0 创建时间：2010-12-21 修改时间：2010-12-22 文档描述： 在RedHat EL 3,4,5或者CentOS 3,4,5或者Oracle Enterprise Linux 4,5上安装Oracle 10g Release 2&lt;/p&gt;
&lt;p&gt;这篇文章描述Oracle 10g R2在红帽企业版 3,4,5和Oracle企业版 4,5系统上的安装步骤，由于centos和redhat的关系，这篇文章同样适用于centos 3,4,5版本。 文中并不涉及数据库建立具体过程以及ASM存储的设置步骤。 安装过程分下面几个步骤： 一、安装环境的准备 二、下载软件并安装 三、安装后的配置 四、常见安装错误&lt;/p&gt;
&lt;p&gt;一、安装环境的准备 1，创建oracle用户 以root用户登录系统创建oracle用户以及其所属的dba组&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;su -
# groupadd dba
# useradd -g dba oracle
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;2，系统参数设置 编辑/etc/sysctl.conf并添加下面内容&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;注意：编辑完成后你需要重启系统，或者执行 ”sysctl -p“ 命令使配置生效。&lt;/p&gt;</description>
    </item>
    <item>
      <title>oracle 10g rac 安装图解</title>
      <link>https://forzw.com/archives/472/</link>
      <pubDate>Thu, 27 May 2010 07:36:08 +0000</pubDate>
      <guid>https://forzw.com/archives/472/</guid>
      <description>&lt;p&gt;规划：所用linux系统以虚拟化方式安装在esx上，配置有内网的yum源，各分配有16G存储，下面为简单拓扑图&lt;/p&gt;
&lt;p&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://media.forzw.com/blog/2016/rac.jpg&#34;&gt;&lt;/p&gt;
&lt;p&gt;一，下载软件 1,地址：http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201linx8664soft.html 10201_database_linux_x86_64.cpio.gz 10201_clusterware_linux_x86_64.cpio.gz&lt;/p&gt;
&lt;p&gt;2,地址：http://www.oracle.com/technology/software/tech/linux/asmlib/rhel5.html oracleasm-2.6.18-164.el5-2.0.5-1.el5.x86_64.rpm oracleasmlib-2.0.4-1.el5.x86_64.rpm oracleasm-support-2.1.3-1.el5.x86_64.rpm&lt;/p&gt;
&lt;p&gt;二，安装环境 1，系统：centos 5.4 x86_64 2，外部存储：linux下的iscsi 3, iscsi服务器配置&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;#下载iSCSI Enterprise Target
wget http://nchc.dl.sourceforge.net/sourceforge/iscsitarget/iscsitarget-0.4.17.tar.gz

#解压缩
tar -zxvf iscsitarget-0.4.17.tar.gz
cd iscsitarget-0.4.17

#编译、安装
make
make install

#配置服务
chkconfig --level 2345 iscsi-target on
service iscsi-target start

#配置第一个iSCSI设备
#在/opt/下生成64G大的空洞设备文件
#请将opt修改为实际的目录，并根据实际情况设置设备文件大小
#生成空洞文件速度很快的，且在真正使用之前不占用磁盘实际空间
dd if=/dev/zero of=/opt/iscsi.[配置文件中Target的名称].img bs=1G count=64 seek=64

#cout是从什么开始，一般设置为0
#生成256G的例子
dd if=/dev/zero of=/opt/iscsi/iqn.2009-04.com.haoyuan-inc:storage.disk.oracle.01.img bs=1G count=0 seek=256

vim /etc/ietd.conf
#编辑Target名称，例如：iqn.2009-04.com.haoyuan-inc:storage.disk.share.01
#编辑LUN段内容，例如：Lun 0 Path=/opt/iscsi.iqn.2009-04.com.haoyuan-inc:storage.disk.share.01.image,Type=fileio
#不要设置XXXUser，允许任何人访问

#重启iscsi-target
service iscsi-target restart
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;三，安装准备&lt;/p&gt;</description>
    </item>
    <item>
      <title>搭建yum服务器</title>
      <link>https://forzw.com/archives/435/</link>
      <pubDate>Thu, 18 Mar 2010 07:00:34 +0000</pubDate>
      <guid>https://forzw.com/archives/435/</guid>
      <description>&lt;p&gt;建立yum服务器，方便软件安装，下面操作的环境是centos 5.4 x86_64，采用http方式安装。 1、安装必要软件：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;yum install httpd createrepo
#apache服务和rpeo下的xml生成工具
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;2、拷贝相关文件：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;mkdir -p /app/yum.repo/centos/5/os/x86_64/RPMS
mkdir -p /app/yum.repo/centos/5/updates
mkdir -p /app/yum.repo/tools/
mkdir /mnt/cdrom
mount -t iso9660 /dev/cdrom /mnt/cdrom
cp -R /mnt/cdrom/Centos/* /app/yum.repo/centos/5/os/x86_64/RPMS/
cp -R /mnt/cdrom/repodata /app/yum.repo/centos/5/os/x86_64/
cp -R /mnt/cdrom/RPM-GPG-KEY-CentOS-5 /app/yum.repo/
#拷贝其他包到/app/yum.repo/tools下，这个可以自定义添加你想要的rpm包，比如jdk
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;3、启动http服务:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;rm -rf /var/www/html
ln -s /app/yum.repo /var/www/html
service httpd start
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;4、修改repo文件：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;cd /etc/yum.repo/

vi CentOS-Base.repo

[base]
name=CentOS-$releasever - Base
baseurl=http://pxe.forzw.com/yum.repo/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://pxe.forzw.com/yum.repo/RPM-GPG-KEY-CentOS-5
　　
#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=http://pxe.forzw.com/yum.repo/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://pxe.forzw.com/yum.repo/RPM-GPG-KEY-CentOS-5
　　
vi CentOS-Tools.repo

[tools]
name=CentOS-$releasever - Base
baseurl=http://pxe.forzw.com/yum.repo/tools/
gpgcheck=0  
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;5、附加内容 在上述步骤结束后，更新需要使用yum机器/etc/yum.repo目录中的文件为第四步中更改的内容，即可使用yum，yum 命令在这里就不说了，补充几个yum服务器常用的命令：&lt;/p&gt;</description>
    </item>
    <item>
      <title>部署LVS&#43;Keepalived节点</title>
      <link>https://forzw.com/archives/431/</link>
      <pubDate>Fri, 12 Mar 2010 10:58:15 +0000</pubDate>
      <guid>https://forzw.com/archives/431/</guid>
      <description>&lt;p&gt;安装步骤如下：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ln -s /usr/src/kernels/(现有内核)/  /usr/src/linux
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;下载&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;wget http://www.linuxvirtualserver.org/software/kernel-2.6/ipvsadm-1.24.tar.gz
wget http://www.keepalived.org/software/keepalived-1.1.15.tar.gz
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;安装与启动&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;tar zxvf ipvsadm-1.24.tar.gz
cd ipvsadm-1.24
make
make install
cd ..
tar zxvf keepalived-1.1.15.tar.gz
cd keepalived-1.1.15
./configure
make 
make install

cp /usr/local/etc/rc.d/init.d/keepalived /etc/rc.d/init.d/
cp /usr/local/etc/sysconfig/keepalived /etc/sysconfig/
mkdir /etc/keepalived
cp /usr/local/etc/keepalived/keepalived.conf /etc/keepalived/
cp /usr/local/sbin/keepalived /usr/sbin/

service keepalived start
&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>部署Func/Certmaster平台</title>
      <link>https://forzw.com/archives/430/</link>
      <pubDate>Fri, 12 Mar 2010 10:54:03 +0000</pubDate>
      <guid>https://forzw.com/archives/430/</guid>
      <description>&lt;p&gt;Func简介 Func是由红帽子公司以Fedora平台统一网络控制器 Func（Fedora Unified Network Controller &lt;a href=&#34;https://fedorahosted.org/func&#34;&gt;https://fedorahosted.org/func&lt;/a&gt;），目的是为了解决这一系列统一管理监控问题而设计开发的系统管理基础框架。 它是一个能有效的简化我们多服务器系统管理工作的工具，它很容易学习、很容易使用、也很容易被扩展，它功能强大而我们只需要非常非常少的配置和维护。 Func分为master及slave两部分，master为主控端，slave为被控端。以下为两部分的安装配置说明&lt;/p&gt;
&lt;p&gt;一、Func 2.5版本安装文档[Master]&lt;/p&gt;
&lt;p&gt;下载软件包&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;wget http://people.fedoraproject.org/~alikins/files/certmaster/certmaster-0.25.tar.gz
wget http://people.fedoraproject.org/~alikins/files/func/func-0.25.tar.gz
wget http://ovh.dl.sourceforge.net/sourceforge/pyopenssl/pyOpenSSL-0.9.tar.gz
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;安装&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;tar -zxvf pyOpenSSL-0.9.tar.gz
cd pyOpenSSL-0.9
/usr/local/bin/python setup.py install

tar -zxvf certmaster-0.25.tar.gz
cd certmaster-0.25
/usr/local/bin/python setup.py install

tar -zxvf func-0.25.tar.gz
cd func-0.25
/usr/local/bin/python setup.py install
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;配置&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;vi /etc/certmaster/certmaster.conf

[main]
autosign = no
listen_addr =

#证书交换通讯端口
listen_port = 1998

cadir = /etc/pki/certmaster/ca
cert_dir = /etc/pki/certmaster
certroot = /var/lib/certmaster/certmaster/certs
csrroot = /var/lib/certmaster/certmaster/csrs
cert_extension = cert
sync_certs = False
&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;vi /etc/func/minion.conf
[main]
log_level = DEBUG
acl_dir = /etc/func/minion-acl.d

listen_addr =

#(Func通讯端口
listen_port = 1999
minion_name =
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;启动服务&lt;/p&gt;</description>
    </item>
    <item>
      <title>DD命令详解</title>
      <link>https://forzw.com/archives/418/</link>
      <pubDate>Tue, 26 Jan 2010 12:11:33 +0000</pubDate>
      <guid>https://forzw.com/archives/418/</guid>
      <description>&lt;p&gt;1.命令简介 dd 的主要选项：&lt;/p&gt;
&lt;p&gt;指定数字的地方若以下列字符结尾乘以相应的数字:&lt;/p&gt;
&lt;p&gt;b=512, c=1, k=1024, w=2, xm=number m&lt;/p&gt;
&lt;p&gt;if=file #输入文件名，缺省为标准输入。 of=file #输出文件名，缺省为标准输出。 ibs=bytes #一次读入 bytes 个字节(即一个块大小为 bytes 个字节)。 obs=bytes #一次写 bytes 个字节(即一个块大小为 bytes 个字节)。 bs=bytes #同时设置读写块的大小为 bytes ，可代替 ibs 和 obs 。 cbs=bytes #一次转换 bytes 个字节，即转换缓冲区大小。 skip=blocks #从输入文件开头跳过 blocks 个块后再开始复制。 seek=blocks #从输出文件开头跳过 blocks 个块后再开始复制。(通常只有当输出文件是磁盘或磁带时才有效)。 count=blocks #仅拷贝 blocks 个块，块大小等于 ibs 指定的字节数。 conv=conversion[,conversion&amp;hellip;] #用指定的参数转换文件。&lt;/p&gt;
&lt;p&gt;转换参数: ascii 转换 EBCDIC 为 ASCII。 ebcdic 转换 ASCII 为 EBCDIC。 ibm 转换 ASCII 为 alternate EBCDIC. block 把每一行转换为长度为 cbs 的记录，不足部分用空格填充。 unblock 使每一行的长度都为 cbs ，不足部分用空格填充。 lcase 把大写字符转换为小写字符。 ucase 把小写字符转换为大写字符。 swab 交换输入的每对字节。 noerror 出错时不停止。 notrunc 不截短输出文件。 sync 把每个输入块填充到ibs个字节，不足部分用空(NUL)字符补齐。&lt;/p&gt;</description>
    </item>
    <item>
      <title>定制自己的LiveCD，依托(centos)</title>
      <link>https://forzw.com/archives/405/</link>
      <pubDate>Wed, 20 Jan 2010 04:46:58 +0000</pubDate>
      <guid>https://forzw.com/archives/405/</guid>
      <description>&lt;p&gt;1、建立自己的yum-repository或者使用官方的（考虑到你需要的软件小，所以这一步不是很必要）。&lt;/p&gt;
&lt;p&gt;2、安装一个centos系统，修改etc/yum.repos.d/centos-livecd.repo文件内容&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# Name: CentOS LiveCD repository
[livecd]
name = CentOS $releasever - LiveCD
baseurl = http://www.nanotechnologies.qc.ca/propos/linux/centos-live/$basearch/live
enabled=1
protect=0
gpgkey = http://www.nanotechnologies.qc.ca/propos/linux/RPM-GPG-KEY-PGuay
保存之后，执行以下命令：
&lt;/code&gt;&lt;/pre&gt;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# yum install livecd-tools syslinux
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;这样就安装好了工具，接下来就是写自己想要的ks脚本；&lt;/p&gt;
&lt;p&gt;3、ks脚本&lt;/p&gt;
&lt;p&gt;名称：centos-livecd-minimal.ks（包含必须包的脚本）&lt;/p&gt;
&lt;p&gt;内容：&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;lang en_US.UTF-8
keyboard us
timezone US/Eastern
auth --useshadow --enablemd5
selinux --disabled
firewall --disabled
 
 
repo --name=base --baseurl=http://ftp.telus.net/pub/centos/5/os/$basearch
repo --name=updates --baseurl=http://ftp.telus.net/pub/centos/5/updates/$basearch
repo --name=extras --baseurl=http://ftp.telus.net/pub/centos/5/extras/$basearch
#repo --name=base --baseurl=http://isoredirect.centos.org/centos/5/os/$basearch
#repo --name=updates --baseurl=http://isoredirect.centos.org/centos/5/updates/$basearch
#repo --name=extras --baseurl=http://isoredirect.centos.org/centos/5/extras/$basearch
repo --name=live --baseurl=http://www.nanotechnologies.qc.ca/propos/linux/centos-live/$basearch/live
 
%packages
bash
kernel
syslinux
passwd
policycoreutils
chkconfig
authconfig
rootfiles
comps-extras
xkeyboard-config
gnome-desktop
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;4、生成&lt;/p&gt;</description>
    </item>
    <item>
      <title>Nginx整合Resin</title>
      <link>https://forzw.com/archives/404/</link>
      <pubDate>Wed, 20 Jan 2010 04:37:31 +0000</pubDate>
      <guid>https://forzw.com/archives/404/</guid>
      <description>&lt;p&gt;操作系统：centos 5.4 64位&lt;/p&gt;
&lt;p&gt;1，安装jdk,已经配置有yumrepository，直接使用。&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;yum install jdk
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;2，安装pcre,nginx运行所需perl库。&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;yum install pcre pcre-devel
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;3，安装mysql ，mysql相关配置省略。&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;yum install mysql mysql-server
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;4，安装并配置resin。&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;wget http://www.caucho.com/download/resin-4.0.3.tar.gz
 
tar zxvf resin-4.0.3.tar.gz
 
cd resin-4.0.3
 
./configure --prefix=/usr/local/resin
 
make &amp;amp;&amp;amp; make install
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;修改配置参数&lt;/p&gt;
&lt;p&gt;vi /usr/local/resin/conf/resin.xml 注释掉下面代码，不然会提示启动错误&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;
www-data
www-data
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;并添加相应配置&lt;/p&gt;
&lt;p&gt;启动resin&lt;/p&gt;
&lt;p&gt;/usr/local/resin/bin/resin.sh start 5，安装nginx。&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;wget http://nginx.org/download/nginx-0.8.32.tar.gz
 
tar zxvf nginx-0.8.32.tar.gz
 
./configure --prefix=/usr/local/nginx
 
make &amp;amp;&amp;amp; make install
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;修改配置文件&lt;/p&gt;
&lt;p&gt;vi /usr/local/nginx/conf/proxy&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffers 32 4k;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;vi /usr/local/nginx/conf/nginx 修改server { &amp;hellip; &amp;hellip;} 为下面代码&lt;/p&gt;</description>
    </item>
    <item>
      <title>linux下的无盘工作站配置（centos）</title>
      <link>https://forzw.com/archives/399/</link>
      <pubDate>Tue, 29 Dec 2009 09:17:57 +0000</pubDate>
      <guid>https://forzw.com/archives/399/</guid>
      <description>&lt;p&gt;   需求：需要多个系统同运行同样的服务，如j2ee模块、memcached等，这些服务不与硬盘相关，只运行在内存中，并且多个系统同时运行，为了规避单点故障以及实现高效。&lt;/p&gt;
&lt;p&gt;   下面步骤是centos5.4系统的无盘服务端配置步骤，客户端只要选择从网络启动，即可在无干预情况下启动系统。&lt;/p&gt;
&lt;p&gt;   一，新建主要目录&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;&lt;code&gt;mkdir -p /diskless/x86_64/centos5.4/root mkdir /diskless/x86_64/centos5.4/snapshot&lt;/code&gt;&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;   二，拷贝预置模板到/diskless/x86_64/centos5.4/root目录&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;&lt;code&gt;rsync -auv -e ssh --delete --exclude=&#39;/proc/*&#39; --exclude=&#39;/sys/*&#39; --exclude=&#39;/tmp/*&#39;--exclude=&#39;/var/log/*&#39; root@10.0.70.72:/ /diskless/x86_64/centos5.4/root/&lt;/code&gt;&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;  三，配置所需tftp服务 &lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;&lt;code&gt;yum -y install tftp tftp-server yum -y install busybox vi /etc/xinetd/tftp diskable=no chkconfig --level 345 xinetd on chkconfig --level 345 tftp on service xinetd start&lt;/code&gt;&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;  四，配置dhcp服务&lt;/p&gt;
&lt;table&gt;
	&lt;thead&gt;
			&lt;tr&gt;
					&lt;th&gt;&lt;code&gt;yum -y install dhcp-server chkconfig --level 345 dhcpd on&lt;/code&gt;  vi /etc/dhcpd.conf allow booting; allow bootp; class &amp;ldquo;pxeclients&amp;rdquo; {    match if substring(option vendor-class-identifier, 0, 9) = &amp;ldquo;PXEClient&amp;rdquo;;    next-server &amp;lt;server-ip&amp;gt;;    filename &amp;ldquo;linux-install/pxelinux.0&amp;rdquo;; } service dhcpd start&lt;/th&gt;
			&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt; &lt;/p&gt;</description>
    </item>
    <item>
      <title>Oracle 11g Software Installation on Linux—CentOS-5</title>
      <link>https://forzw.com/archives/395/</link>
      <pubDate>Mon, 07 Dec 2009 18:02:25 +0000</pubDate>
      <guid>https://forzw.com/archives/395/</guid>
      <description>&lt;p&gt;Introduction 　　This paper takes a look at installing oracle 11g (11.1) on Linux (CentOS-5).You can read about CentOS at &lt;a href=&#34;https://www.centos.org&#34;&gt;www.centos.org&lt;/a&gt; and be assured of its&amp;rsquo; Enterprise-class quality. This paper will use oracle&amp;rsquo;s Quick Installation Guide for Linux x86 as its&amp;rsquo; guide—noting where additional information may be obtained but getting oracle installed on Linux as fast as possible. We at thecheapdba.com have years of experience installing oracle—starting back with oracle 7. We will point out best practices so that you end up with a reliable database that provides exceptional performance. We will occasionally re-visit, edit, and post additions to this paper as we find further configuration best practices. 　　This paper will not cover the installation of CentOS-5 as that can be acquired through the CentOS website and additional Linux guides. We will however point out those alterations to the Linux environment that pertains to getting oracle installed. 　　Our goal is to provide you with the steps to properly install the oracle 11g software without having to read oracle&amp;rsquo;s installation guide from front to back cover. We will provide you the commands to execute (just cut-n-paste) and the desired outcome of those commands. If you get something other than what is expected it would be time for you to re-visit earlier steps in this process. So hold on, here we go. 　　It is assumed that the installer of oracle software has access and is running on an X Window System workstation. Please consult X Server documentation if you need help. We at thecheapdba.com typically will use cygwin ( &lt;a href=&#34;https://www.cygwin.com&#34;&gt;www.cygwin.com&lt;/a&gt; ) for all interfacing with our Linux distribution. It has an X Window System that works quite well—and as we always like is free. 　　Checking Hardware Requirements 　　Log into the CentOS-5 system as the root user. 　　For setting up the system to be used by oracle there are a few prerequisites that must be checked and possibly changed by the root user. Log in as the root user and this document will tell you when it is time to switch from the root user to someone else. 　　How much memory 　　command: grep -i memtotal /proc/meminfo 　　results: should be at least 1GB 　　How much swap 　　command: grep -i swaptotal /proc/meminfo 　　results: should be 1.5 the size of memtotal if memtotal &amp;lt; 2GB 　　should be equal to memtotal if memtotal is between 2GB and 8GB 　　should be .75 the size of memtotal if memtotal &amp;gt; 8GB 　　What processor type 　　command: grep &amp;ldquo;model name&amp;rdquo; /proc/cpuinfo 　　results: informational 　　How much available RAM and swap 　　command: free 　　results: informational 　　How much shared memory available 　　command: df -k /dev/shm 　　results: informational 　　purpose: The shared memory should be sized to be at least the greater of MEMORY_MAX_TARGET and MEMORY_TARGET for each oracle instance on the computer. 　　How much disk space in /tmp 　　command: df -k /tmp 　　results: should have at least 400MB available 　　How much disk space for oracle binaries 　　command: df -k 　　results: Depending on installation type you should have between 1.5GB and 3.5GB 　　Checking Software Requirements 　　What distribution and version of Linux is installed 　　command: cat /proc/version 　　results: Linux version 2.6.18-8.1.15.el5 (&lt;a href=&#34;mailto:mockbuild@builder6.centos.org&#34;&gt;mockbuild@builder6.centos.org&lt;/a&gt;) 　　(gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) 　　#1 SMP Mon Oct 22 08:32:04 EDT 2007 　　What version of the kernel is installed 　　command: uname -r 　　results: 2.6.18-8.1.15.el5 　　Are the following packages installed (assumes CentOS-5 and above distribution) 　　command:rpm -q binutils \ 　　compat-libstdc++ \ 　　elfutils-libelf \ 　　elfutils-libelf-devel \ 　　glibc \ 　　glibc-common \ 　　glibc-devel \ 　　glibc-headers \ 　　gcc \ 　　gcc-c++ \ 　　libaio-devel \ 　　libaio \ 　　libgcc \ 　　libstdc++ \ 　　libstdc++ \ 　　make \ 　　sysstat \ 　　unixODBC \ 　　unixODBC-devel 　　results: you will probably get quite a few packages that are not installed with a typical installation. You can investigate missing packages with the following command making sure you add/subtract from this list if necessary. 　　yum list available &amp;ldquo;compat*&amp;rdquo; \ 　　&amp;ldquo;elfutils*&amp;rdquo; \ 　　&amp;ldquo;glibc*&amp;rdquo; \ 　　&amp;ldquo;gcc*&amp;rdquo; \ 　　&amp;ldquo;libaio*&amp;rdquo; \ 　　&amp;ldquo;sysstat*&amp;rdquo; \ 　　&amp;ldquo;unixODBC*&amp;rdquo; 　　action : Our base installation left us needing to issue the following command to install missing packages. 　　yum -y install compat-libstdc++-296.i386 \ 　　compat-libstdc++-33.i386 \ 　　elfutils-libelf-devel.i386 \ 　　glibc-devel.i386 \ 　　glibc-headers.i386 \ 　　gcc.i386 \ 　　gcc-c++.i386 \ 　　libaio-devel.i386 \ 　　sysstat.i386 \ 　　unixODBC.i386 \ 　　unixODBC-devel.i386 　　Create oracle user and group 　　Create groups oinstall &amp;amp; dba 　　command: /usr/sbin/groupadd oinstall 　　/usr/sbin/groupadd dba 　　Create the oracle and change password 　　command: /usr/sbin/useradd -g oinstall -G dba -s /bin/bash oracle 　　/usr/bin/passwd oracle 　　Validate the nobody user exists 　　command: /usr/bin/id nobody 　　results: this user is almost always created on a base CentOS installation 　　action : if this user is not created use the following command to create 　　/usr/sbin/useradd nobody 　　Configuring kernel parameters 　　The following kernel parameters must be validated and possibly changed. Use the commands given below to view a particular kernel setting and then change if the setting is lower than the recommendation given in the following table. 　　You can make the changes by editing the /etc/sysctl.conf file and then rebooting the server. The following results are what we observed on our server and should not be expected on yours. 　　shmmni 　　4096 　　shmall 　　2097152 　　shmmax 　　2147483648 　　semmsl 　　250 　　semmns 　　32000 　　semopm 　　100 　　semmni 　　128 　　file-max 　　65536 　　ip_local_port_range 　　1024 - 65000 　　rmem_default 　　1048576 　　rmem_max 　　1048576 　　wmem_default 　　262144 　　wmem_max 　　262144 　　command: /sbin/sysctl -a | grep kernel.sem 　　results: kernel.sem = 250 32000 100 128 　　command: /sbin/sysctl -a | grep kernel.shm 　　results: kernel.shmmni = 4096 　　kernel.shmall = 268435456 　　kernel.shmmax = 4294967295 　　command: /sbin/sysctl -a | grep file-max 　　results: fs.file-max = 102440 　　command: /sbin/sysctl -a | grep ip_local_port_range 　　results: net.ipv4.ip_local_port_range = 32768 61000 　　command: /sbin/sysctl -a | grep rmem_default 　　results: net.core.rmem_default = 109568 　　command: /sbin/sysctl -a | grep rmem_max 　　results: net.core.rmem_max = 131071 　　command: /sbin/sysctl -a | grep wmem_default 　　results: net.core.wmem_default = 109568 　　command: /sbin/sysctl -a | grep wmem_max 　　results: net.core.wmem_max = 131071 　　sample /etc/sysctl.conf file. This is given as an example only and does not reflect the results obtained above by the /sbin/sysctl commands. Only add lines that are needed and do not change any values to be lower than the base installation might have assigned. 　　kernel.shmall = 2097152 　　kernel.shmmax = 2147483648 　　kernel.shmmni = 4096 　　kernel.sem = 250 32000 100 128 　　fs.file-max = 65536 　　net.ipv4.ip_local_port_range = 1024 65000 　　net.core.rmem_default = 4194304 　　net.core.rmem_max = 4194304 　　net.core.wmem_default = 262144 　　net.core.wmem_max = 262144 　　Setting shell limits for the oracle user 　　Add the following lines to /etc/security/limits.conf 　　oracle soft nproc 2047 　　oracle hard nproc 16384 　　oracle soft nofile 1024 　　oracle hard nofile 65536 　　Add the following lines to /etc/pam.d/login 　　session required /lib/security/pam_limits.so 　　session required pam_limits.so 　　Add the following lines to /etc/profile 　　if [ $USER = &amp;ldquo;oracle&amp;rdquo; ]; then 　　if [ $SHELL = &amp;ldquo;/bin/ksh&amp;rdquo; ]; then 　　ulimit -p 16384 　　ulimit -n 65536 　　else 　　ulimit -u 16384 -n 65536 　　fi 　　fi 　　Creating Directories to Install the oracle Software 　　Validate you have enough space on disk and choose a directory to install 　　command: df -k 　　results: pick a mount point that has enough space—we have chosen /opt for the our. 　　Create subdirectories and give permissions to the oracle user 　　The following directory used is common for oracle installations. Note that we are creating all directories under /opt and that there are no other applications using /opt/app and below. This is very important as we are changing permissions with the following commands. 　　command: mkdir -p /opt/app/oracle/product/11.1.0 　　chown -R oracle:oinstall /opt/app 　　chmod -R 775 /opt/app 　　Switch to the oracle user 　　Up to know we have been doing everything as the root user. It is now time to switch to the oracle user to actually install the oracle software. 　　command: su – oracle 　　Add the following line to $HOME/.bash_profile 　　umask 022 　　Execute oracle&amp;rsquo;s bash_profile to use new setting 　　command: . ./.bash_profile 　　Make sure the oracle user is using an X Windows System 　　It is assumed you know how to set up an X Windows System as stated earlier in the document. Please verify it is working by issuing the xterm command and validating an X Terminal comes up. You may close the X Terminal if you wish. 　　Set oracle environment for the installation 　　Issue the following commands to set/unset particular oracle environments in preparation for the installation. 　　command: export orACLE_BASE=/opt/app/oracle 　　export orACLE_SID=orcl 　　unset orACLE_HOME 　　unset TNS_ADMIN 　　Start oracle Installer 　　This paper assumes you have downloaded the oracle software from the net and have unzipped the files. We have unzipped our software into /opt and the following commands will take you through starting the oracle installer form that mount point. 　　command: cd /opt/database 　　./runInstaller 　　From this point, oracle will do a few minor checks on the operating system and then put up the oracle Installation screen. Our particular configuration did not throw any errors at this point but it should be noted, as it can be helpful, that sometimes the oracle installer will complain at this very early stage about various Linux system configurations. If this is the case you might be able to bypass them by adding an additional argument to the runInstaller command. Please only use this as a last resort to the normal installation path. 　　command: ./runInstaller -ignoreSysPrereqs 　　From this point on we will walk through each of the prompts one at a time to give you a simple feel for a full installation of the oracle software. 　　Select installation method 　　This screen is very busy to say the least. We are not going to create any databases at this point as it is not required nor is it suggested to do at this point. We like to create databases separately through the Database Creation Assistant (DBCA) and not confuse the software installation process. 　　1. Choose basic installation 　　1. verify oracle Base of &amp;lsquo;/opt/app/oracle&amp;rsquo; 　　2. verify oracle Home of &amp;lsquo;/opt/app/oracle/product/11.1.0/db_1&amp;rsquo; 　　3. verify installation type of &amp;lsquo;Enterprise Edition&amp;rsquo; 　　4. verify dba group of &amp;lsquo;dba&amp;rsquo; 　　2. Un-check “Create Starter Database” 　　3. Un-check “Advanced Installation” 　　4. Click 　　Specify Inventory directory and credentials 　　1. verify path of inventory directory of &amp;lsquo;/opt/app/oraInventory&amp;rsquo; 　　2. verify group name for install of &amp;lsquo;oinstall&amp;rsquo; 　　3. Click 　　Product-Specific Prerequisite Checks 　　This screen, the installer will verify the system environment and report on any issues it may find. If all goes well you will get the status of &amp;lsquo;Succeeded&amp;rsquo; for every check. Scroll through and make sure nothing has failed or look at the status box at the bottom of the screen and verify you get the following: 　　&amp;lsquo;Check complete. The overall result of this check is: Passed&amp;rsquo; 　　1. verify all statuses 　　2. Click 　　Summary 　　This screen give a summary of the installation you are about to perform. It can be interesting to click and expand the products being installed to give you an idea of the what product and version is going to be installed. 　　1. validate &amp;lsquo;Global Settings&amp;rsquo; for directories 　　2. validate &amp;lsquo;Space Requirements&amp;rsquo; 　　3. Click 　　Install 　　This screen gives a status of what is being installed. If all system settings have been properly set and all packages been installed properly then this should proceed without error. The status bar gives some indication of what is being installed at a particular point and the amount of work to be performed. But as all status bars you never really know how long in the process it is. 　　1. Note the time it takes for specific products. If you notice one hanging or taking a long amount of time (greater than 10 minutes) you could have a condition that requires a pre-installation patch. Don&amp;rsquo;t stop the installer yet but instead start looking for a bug / patch for the oracle 11g installation process and the actual product being installed. 　　2. Execute Configuration scripts 　　1. open up a different terminal window 　　2. login as the root user 　　3. run /opt/app/oraInventory/orainstRoot.sh 　　4. run /opt/app/oracle/product/11.1.0/db_1/root.sh 　　1. accept default of /usr/local/bin 　　5. Click 　　3. Click 　　4. Click 　　Cleanup 　　1. If you downloaded the software from the net you can now remove .zip file and the complete directory structure you unzipped it to. That particular command is not given here as it can be quite disastrous if executed from the wrong directory. 　　2. Add the following lines to oracle&amp;rsquo;s $HOME/.bash_profile file. This will allow you to execute various oracle binaries to create databases, configure network settings, and generally manage the oracle database environment. 　　export orACLE_HOME=/opt/app/oracle/product/11.1.0/db_1 　　export PATH=$ORACLE_HOME/bin:$PATH 　　Installation is complete 　　Congratulations on a successful installation of the oracle software. This paper hopefully was also successful in its attempt to guide you down a more simplistic path—giving you the commands to execute and working past the minor hurdles encountered during installation. Obviously this paper can not predict all the issues that you may encounter but if you have a relatively current system with ample memory and disk space there is no reason not to believe your installation wouldn&amp;rsquo;t run smoothly.&lt;/p&gt;</description>
    </item>
    <item>
      <title>linux/centos cacti备份及恢复shell</title>
      <link>https://forzw.com/archives/391/</link>
      <pubDate>Mon, 23 Nov 2009 08:49:57 +0000</pubDate>
      <guid>https://forzw.com/archives/391/</guid>
      <description>&lt;p&gt;备份及恢复Cacti (1)cacti的文件目录的备份(rra目录除外) (2)mysql备份 mysqldump -p cacti &amp;gt;/tmp/cacti.sql (3)备份rra dumprrd.sh&lt;/p&gt;
&lt;p&gt;#!/bin/sh rrddump=&amp;quot;/usr/local/bin/rrdtool dump&amp;quot; xmldir=&amp;quot;/tmp/mysqlbackup/rraxml&amp;quot; xmlbackup=&amp;quot;/tmp/mysqlbackup/rrabak&amp;quot; mysqlbackupDIR=&amp;quot;/tmp/mysqlbackup&amp;quot; rrdpath=&amp;quot;/usr/local/share/cacti/rra/&amp;quot; DATE=`date +&amp;quot;%y-%m-%d&amp;quot;` if [ ! -e {xmldir} fi if [ ! -e {xmlbackup} fi #create rra =&amp;gt; xml for file in `find /usr/local/share/cacti/rra/ -mtime -2 | awk -F\/ ‘{print $NF}̵7;` do {rrdpath}{xmldir}/${file}.xml done if [ `ls /tmp/mysqlbackup/rraxml/|wc -l` -ge 2 ];then #tar backup cd ${mysqlbackupDIR} tar czvf {DATE}.tar.gz rraxml &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 mv {DATE}.tar.gz ${xmlbackup} #delete file&amp;amp;dir if [ $? -eq 0 ];then rm -fdr {xmldir} /usr/bin/find ${mysqlbackupDIR}/rrabak -type f -ctime +2 | /usr/bin/xargs /bin/rm &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 echo &amp;ldquo;Rra Backup is ok!&amp;rdquo; fi else echo &amp;ldquo;Rra Backup is fail!&amp;rdquo; fi&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
