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/<password>@//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 --disconnected
Database service name (SID)? XE
其他的默认,创建CA证书和cobbler

可以使用http://hostname.localdomain.com去访问了。
要查看日志在/var/log/tomcat5/catalina.out 如果使用tomcat6,要
chmod g+w /var/log/tomcat6


你可能感兴趣的:(linux,RHEL5.4,安装spacewalk)