RHEL5.5 安装Spacewalk 1.6

终于安装完成了spacewalk,并成功部署并注册了系统。下面就把整个的部署过程记录一下,欢迎大家批评指正。

下面的话摘自Spacewalk的官方网站:
“Spacewalk是一个开源(GPLv2)Linux系统管理解决方案,它是Red Hat网络卫星(Network Satellite)项目衍生出来的上游社区项目,Spacewalk管理Red Hat衍生发行版的软件内容更新,如FedoraCentOS和Scientific Linux,你可以通过不同的环境准备软件内容,管理系统更新内容的部署。它提供了一个清爽了Web控制界面,可查看系统和软件更新状态,以及启动更新操作。”
Spacewalk的重要特性:
1、系统硬件和软件信息清单
2、在你的系统上安装和更新软件
3、收集和发布你的自定义软件包到管理组
4、准备(通过kickstart)你的系统
5、管理和部署配置文件到你的系统
6、监控你的系统
7、准备和启动/停止/配置虚拟客户机
8、跨多个地理位置高效地分发内容

安装准备:

rhel 5的系统 ,我这是rhel5.5

服务器要求可以上网,SELINUX 是permissive or enforcing

#配置yum仓库

1.配置好系统光盘yum仓库

2.spacewalk 服务器yum仓库

cat > /etc/yum.repos.d/spacewalk.repo << 'EOF'  [spacewalk]  name=Spacewalk  RHEL 5 / CentOS 5  baseurl=http://spacewalk.RedHat.com/yum/nightly/RHEL/5/$basearch/  # RHEL 6  #baseurl=http://spacewalk.redhat.com/yum/nightly/RHEL/6/$basearch/  # Fedora 14  #baseurl=http://spacewalk.redhat.com/yum/nightly/Fedora/14/$basearch/  # Fedora 15  #baseurl=http://spacewalk.redhat.com/yum/nightly/Fedora/15/$basearch/  gpgkey=http://spacewalk.redhat.com/yum/RPM-GPG-KEY-spacewalk-2010  enabled=1  gpgcheck=0  EOF 

3.spacewalk 客户端yum仓库
cat > /etc/yum.repos.d/spacewalk-client.repo  'EOF'
[spacewalk-client]
name=Spacewalk
# RHEL 5 / CentOS 5
baseurl=http://spacewalk.redhat.com/yum/nightly-client/RHEL/5/$basearch/
# RHEL 6 / CentOS 6
#baseurl=http://spacewalk.redhat.com/yum/nightly-client/RHEL/6/$basearch/
# Fedora 14
#baseurl=http://spacewalk.redhat.com/yum/nightly-client/Fedora/14/$basearch/
# Fedora 15
#baseurl=http://spacewalk.redhat.com/yum/nightly-client/Fedora/15/$basearch/
gpgkey=http://spacewalk.redhat.com/yum/RPM-GPG-KEY-spacewalk-2010
enabled=1
gpgcheck=0
EOF
 
4.配置EPEL yum仓库
# rpm -Uvh
 
5.下载如下三个包在Oracle 官网,需要注册账号一个账号才可以下
地址:
x86_64=http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html
x86=http://www.oracle.com/technetwork/topics/linuxsoft-082809.html
 
oracle-instantclient11.2-basic-11.2.0.2.0.x86_64.rpm
oracle-instantclient11.2-sqlplus-11.2.0.2.0.x86_64.rpm
oracle-xe-univ-10.2.0.1-1.0.i386.rpm,
 
6: 创建oracle使用的用户及组
# /usr/sbin/groupadd -r dba
# /usr/sbin/useradd -r -M -g dba -d /usr/lib/oracle/xe -s /bin/bash oracle
 
 
7.确定如下包是否安装,oracle-xe需要
# yum -y install bc libc.so.6 libaio.so.1
 
8. 安装oracle-xe
# yum -y localinstall --nogpgcheck oracle-xe-univ-10.2.0.1-1.0.i386.rpm
 
9. 安装oracle-xez
# yum -y localinstall --nogpgcheck oracle-instantclient11.2-*
 
10.
# yum -y install oracle-lib-compat
 
11.
yum -y install oracle-xe-selinux oracle-instantclient-selinux oracle-instantclient-sqlplus-selinux
 
12.初始化oracle配置,将应用端口由原来的8080改为9055,其他默认:
[root@spacewalk ~]#  /etc/init.d/oracle-xe configure 
 
Oracle Database 10g Express Edition Configuration
-------------------------------------------------
This will configure on-boot properties of Oracle Database 10g Express 
Edition.  The following questions will determine whether the database should 
be starting upon system boot, the ports it will use, and the passwords that 
will be used for database accounts.  Press Enter> to accept the defaults. 
Ctrl-C will abort.
 
Specify the HTTP port that will be used for Oracle Application Express [8080]:9055
 
Specify a port that will be used for the database listener [1521]:
 
Specify a password to be used for database accounts.  Note that the same
password will be used for SYS and SYSTEM.  Oracle recommends the use of 
different passwords for each database account.  This can be done after 
initial configuration:
Confirm the password:
 
Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:
 
Starting Oracle Net Listener...Done
Configuring Database...Done
Starting Oracle Database 10g Express Edition Instance...Done
Installation Completed Successfully.
To access the Database Home Page go to "http://127.0.0.1:9055/apex" 
 
如果要重新初始化oracle-xe,执行如下命令:
#rpm -e racle-xe-univ
# yum -y localinstall --nogpgcheck oracle-xe-univ-10.2.0.1-1.0.i386.rpm  
 
13. vi /etc/tnsnames.ora
XE =
    (DESCRIPTION =
       (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
       )
       (CONNECT_DATA =
          (SERVICE_NAME = xe)
       )
    ) 

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/ppxsx.html