注册 登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

态度决定高度

英语,沟通,rhca,管理

 
 
 

日志

 
 

Spacewalk Installation Instructions  

2011-07-14 09:34:28|  分类: 默认分类 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

一、准备工作

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



  评论这张
 
阅读(539)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018