linux网卡IP同一网段,Linux下多网卡不同IP在同一网段的情况

一、准备工作

1.Setting up Spacewalk repo

rpm -Uvh http://spacewalk.redhat.com/yum/1.4/RHEL/5/x86_64/spacewalk-repo-1.4-1.el5.noarch.rpm

2.Additional repos & packages

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

3.Follow the instructions to use EPEL5 with the additions:

Necessary packages rhn-client-tools and rhnlib were removed from CentOS, they can be found in spacewalk-client repo. Setup it by installing spacewalk-client-repo package. rpm -ihv http://spacewalk.redhat.com/yum/1.4-client/RHEL/5/x86_64/spacewalk-client-repo-1.4-1.el5.noarch.rpm

Import Redhat's RPM GPG key: # wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release http://www.redhat.com/security/37017186.txt # rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

二、数据库安装Oracle Pre-Requisites

Download

server: oracle-xe-univ-10.2.0.1-1.0.i386.rpm

client:

oracle-instantclient11.2-basic-11.2.0.2.0.ARCH.rpm

oracle-instantclient11.2-sqlplus-11.2.0.2.0.ARCH.rpm

# /usr/sbin/groupadd -r dba # /usr/sbin/useradd -r -M -g dba -d /usr/lib/oracle/xe -s /bin/bash oracle

and check swap size > 1G

yum -y install bc libc.so.6 libaio.so.1

yum -y localinstall --nogpgcheck oracle-xe-univ-10.2.0.1-1.0.i386.rpm

yum -y localinstall --nogpgcheck oracle-instantclient11.2-basic*.rpm oracle-instantclient11.2-sqlplus*.rpm

yum -y install oracle-lib-compat

yum -y install oracle-xe-selinux oracle-instantclient-selinux oracle-instantclient-sqlplus-selinux

配置 /etc/init.d/oracle-xe configure

HTTP port for Oracle Application Express: 9055只修改端口,其他的默认

测试:sqlplus 'sys/@//localhost/XE as sysdba'

Create the spacewalk database user

SQL> create user spacewalk identified by spacewalk default tablespace users; SQL> grant dba to spacewalk; SQL> quit

测试sqlplus spacewalk/spacewalk@//localhost/XE

Additional Oracle configuration

# sqlplus spacewalk/spacewalk@//localhost/XE SQL> alter system set processes = 400 scope=spfile; SQL> alter system set "_optimizer_filter_pred_pullup"=false scope=spfile; SQL> alter system set "_optimizer_cost_based_transformation"=off scope=spfile; SQL> quit # /sbin/service oracle-xe restart

三、安装

yum remove cobbler-web

yum install spacewalk-oracle

Configuring the firewall

iptables -D RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited iptables -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 443 -j ACCEPT iptables -A RH-Firewall-1-INPUT -p tcp -m tcp --dport 80 -j ACCEPT iptables -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited service iptables save service iptables restart

Configuring Spacewalk

spacewalk-setup --disconnectedDatabase service name (SID)? XE其他的默认,创建CA证书和cobbler可以使用http://hostname.localdomain.com去访问了。 要查看日志在/var/log/tomcat5/catalina.out 如果使用tomcat6,要chmod g+w /var/log/tomcat6

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值