このチュートリアルでは、CentOS 6にSpacewalkをインストールする方法を紹介します。知らなかった方のために、SpacewalkはRedhatから派生したLinuxオペレーティング用のパッケージおよびシステム管理ソリューションです。スペースウォークコミュニティによるCentOS、Scientific Linux、Fedoraなどのシステム。GPLv2ライセンスの下でリリースされています。より柔軟な方法を提供します。スペースウォークを使用すると、システムのインベントリ、構成の管理、中央リポジトリとしての機能を利用できます。システムの場合、システムの監視など。
この記事は、少なくともLinuxの基本的な知識があり、シェルの使用方法を知っていること、そして最も重要なこととして、独自のVPSでサイトをホストしていることを前提としています。インストールは非常に簡単です。 CentOS6にSpacewalkを段階的にインストールする方法を紹介します。
CentOS6にSpacewalkをインストールする
手順1.まず、システムでリポジトリを有効にする必要があります。
rpm -Uvh http://yum.spacewalkproject.org/2.0/RHEL/6/x86_64/spacewalk-repo-2.0-3.el6.noarch.rpm rpm -Uvh http://mirror.muntinternet.net/pub/epel/6/i386/epel-release-6-8.noarch.rpm wget http://www.jpackage.org/jpackage50.repo mv jpackage50.repo /etc/yum.repos.d/
ステップ2.PostgreSQLデータベースをインストールします。
Spacewalkは、データベースを使用してプライマリデータを保存し、PostgreSQLまたはOracle RDBMSのいずれかをサポートします。この場合、PostgreSQLを使用しています:
yum install spacewalk-setup-postgresql -y
ステップ3.Spacewalkをインストールします。
yum install spacewalk-postgresql -y
ステップ4.船外活動を構成します。
組み込みデータベースをインストールしている場合は、それを使用します。管理者メールと組織の詳細を入力して、セキュリティで保護されたアクセス用の自己署名証明書を生成するように求められます。 :
[[email protected] ~]# spacewalk-setup --disconnected ** Database: Setting up database connection for PostgreSQL backend. ** Database: Installing the database: ** Database: This is a long process that is logged in: ** Database: /var/log/rhn/install_db.log *** Progress: # ** Database: Installation complete. ** 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? [email protected] * 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]? ** /etc/httpd/conf.d/ssl.conf has been backed up to ssl.conf-swsave * Configuring tomcat. ** /etc/sysconfig//tomcat6 has been backed up to tomcat6-swsave ** /etc/tomcat6//server.xml has been backed up to server.xml-swsave ** /etc/tomcat6//web.xml has been backed up to web.xml-swsave * Configuring jabberd. * Creating SSL certificates. CA certificate password? Re-enter CA certificate password? Organization? idroot.us Organization Unit [server.idroot.us]? Email Address [[email protected]]? City? jogja State? indonesia Country code (Examples: "US", "JP", "IN", or type "?" to see a list)? SI ** 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.. Processing /etc/cobbler/modules.conf `/etc/cobbler/modules.conf' -> `/etc/cobbler/modules.conf-swsave' Processing /etc/cobbler/settings `/etc/cobbler/settings' -> `/etc/cobbler/settings-swsave' Cobbler requires tftp and xinetd services be turned on for PXE provisioning functionality. Enable these services [Y]? * Restarting services. Installation complete. Visit https://server.idroot.us to create the Spacewalk administrator account.
完了したら、SpaceWalkサービスを開始します:
/usr/sbin/spacewalk-service start chkconfig spacewalk on
ステップ5.船外活動へのアクセス。
船外活動はデフォルトでHTTPSポート443で利用できます。お気に入りのブラウザを開き、 https://hostname.yourdomain.com
> インストールを完了するために必要な手順を完了します。ファイアウォールを使用している場合は、ポート80と443を開いて、コントロールパネルにアクセスできるようにしてください。
おめでとうございます!Spacewalkが正常にインストールされました。CentOS6システムにSpacewalkサーバーをインストールするためにこのチュートリアルを使用していただきありがとうございます。追加のヘルプや役立つ情報については、Spacewalkの公式Webサイトを確認することをお勧めします。