rhel5.5 安装spacewalk1.6
2011-10-25 16:15
316 查看
经过一周努力,终于安装完成了spacewalk,并成功部署并注册了系统。下面就把整个的部署过程记录一下,欢迎大家批评指正。
下面的话摘自Spacewalk的官方网站:
“Spacewalk是一个开源(GPLv2)Linux系统管理解决方案,它是Red Hat网络卫星(Network Satellite)项目衍生出来的上游社区项目,Spacewalk管理Red Hat衍生发行版的软件内容更新,如Fedora、CentOS和Scientific Linux,你可以通过不同的环境准备软件内容,管理系统更新内容的部署。它提供了一个清爽了Web控制界面,可查看系统和软件更新状态,以及启动更新操作。”
Spacewalk的重要特性:
1、系统硬件和软件信息清单
2、在你的系统上安装和更新软件
3、收集和发布你的自定义软件包到管理组
4、准备(通过kickstart)你的系统
5、管理和部署配置文件到你的系统
6、监控你的系统
7、准备和启动/停止/配置虚拟客户机
8、跨多个地理位置高效地分发内容
下面的话摘自Spacewalk的官方网站:
“Spacewalk是一个开源(GPLv2)Linux系统管理解决方案,它是Red Hat网络卫星(Network Satellite)项目衍生出来的上游社区项目,Spacewalk管理Red Hat衍生发行版的软件内容更新,如Fedora、CentOS和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 http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm 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) ) ) 14. 测试是否可以连通 sqlplus system@xe 15.创建spacewalk用户 # sqlplus 'sys/<password>@//localhost/XE as sysdba' SQL> create user spacewalk identified by spacewalk default tablespace users; SQL> grant dba to spacewalk; SQL> quit 16.优化oracle-xe 数据库 # 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 #可选,增强oracle-xe功能 yum install rlwrap 17. 开始安装 yum install -y spacewalk-oracle 这块可能要安装好久,因为软件包很多有200多个包。 yum update reboot 18.spacewalk 配置 [root@spacewalk ~]# spacewalk-setup * Setting up Oracle environment. * Setting up database. ** Database: Setting up database connection for Oracle backend. Database service name (SID)? XE Username? spacewalk Password? ** Database: Testing database connection. ** Database: Populating database. *** Progress: #### * Setting up users and groups. ** GPG: Initializing GPG and importing key. ** GPG: Creating /root/.gnupg directory You must enter an email address. Admin Email Address? cjhp1314@gmail.com * Performing initial configuration. * Activating Spacewalk. ** Loading Spacewalk Certificate. ** Verifying certificate locally. ** Activating Spacewalk. * Enabling Monitoring. * Configuring apache SSL virtual host. Should setup configure apache's default ssl server for you (saves original ssl.conf) [Y]? y ** /etc/httpd/conf.d/ssl.conf has been backed up to ssl.conf-swsave * Configuring tomcat. ** /etc/tomcat5/tomcat5.conf has been backed up to tomcat5.conf-swsave ** /etc/tomcat5/server.xml has been backed up to server.xml-swsave ** /etc/tomcat5/web.xml has been backed up to web.xml-swsave * Configuring jabberd. * Creating SSL certificates. CA certificate password? Re-enter CA certificate password? Organization? Test, Inc. Organization Unit [spacewalk.test.com]? Email Address [cjhp1314@gmail.com]? City? Beijing State? China Country code (Examples: "US", "JP", "IN", or type "?" to see a list)? CN ** SSL: Generating CA certificate. ** SSL: Deploying CA certificate. ** SSL: Generating server certificate. ** SSL: Storing SSL certificates. * Deploying configuration files. * Update configuration in database. * Setting up Cobbler.. Cobbler requires tftp and xinetd services be turned on for PXE provisioning functionality. Enable these services [Y/n]?Y cobblerd does not appear to be running/accessible * Restarting services. Installation complete. Visit https://spacewalk.test.com to create the Spacewalk administrator account. mkdir -p /var/iso-images mkdir -p /var/distro-trees/ cp rhel-5.5-x86_64.iso /var/iso-images mkdir /var/distro-trees/rhel5.5-x86_64 mount -o loop /var/iso-images/rhel5.5-x86_64.iso /var/distro-trees/rhel5.5-x86_64 rhnpush -v --server localhost -u rhnadmin -p hell0123 --channel rhel5.5-base-x86_64 /var/distro-trees/rhel5.5-x86_64/Server/*.rpm Connecting to http://localhost/APP Package /var/distro-trees/rhel5.5-x86_64/Server/a2ps-4.13b-57.2.el5.x86_64.rpm already exists on the RHN Server-- Skipping Upload.... Package /var/distro-trees/rhel5.5-x86_64/Server/acl-2.2.39-6.el5.x86_64.rpm already exists on the RHN Server-- Skipping Upload.... Package /var/distro-trees/rhel5.5-x86_64/Server/acpid-1.0.4-9.el5_4.2.x86_64.rpm already exists on the RHN Server-- Skipping Upload.... Package /var/distro-trees/rhel5.5-x86_64/Server/adaptx-0.9.13-3jpp.1.x86_64.rpm already exists on the RHN Server-- Skipping Upload.... cp RPM-GPG-KEY-redhat-release /var/www/html/pub/RPM-GPG-KEY-redhat-release-rhel5.5-x86_64
相关文章推荐
- RHEL5.5 安装 oracle 11g
- Rhel-Server 5.5 安装ORACLE10
- RHEL5.5 32位上编译安装keepalived-1.2.2.tar.gz报错
- 在RHEL5.5上安装Oracle11gR2(11.2.0)的简易步骤
- 在CentOS/RHEL 6.5上使用YUM安装PHP5.4或PHP5.5
- 在64位RHEL5.5上安装Oracle10gR2的简易步骤
- rhel5.5 安装yum 并使用中国科技大学yum源
- RHEL5.5学习--安装PHP
- 生产环境Centos LNMP编译安装nginx-1.6 MySQL-5.6 php-5.5
- 基于Linux (RHEL 5.5) 安装Oracle 10g RAC
- VirtualBox下安装rhel5.5 linux系统
- 基于Linux (RHEL 5.5) 安装Oracle 10g RAC
- 在 RHEL 5.5 下安装 Oracle RAC
- 安装 JDK 1.6 在 RHEL x64
- 在64位RHEL5.5上安装Oracle10gR2的简易步骤
- rhel5.5 安装 oracle11g asm(1)
- RHEL5.5安装中文支持
- RHEL5.5学习--LAMP环境的安装顺序及主要软件
- 【VirtualBox】下安装rhel5.5【Linux】系统
- (一)配置hadoop-------vm虚拟机中安装CentOS5.5,并且安装和配置jdk1.6