791 views


■概要

Scientific Linux 6.2インストール直後に初期設定を行った際の備忘録です。GNOME端末を使って設定をするので、GNOME端末の使い方がわからない場合は、GNOME端末でviコマンドを使う方法を参照のこと。

■Scientific Linux 6.2初期設定

(1)RPMパッケージのインストール・アンインストールを行うyumの初期設定を行う

[root@ufuso ~]# vi /etc/sysconfig/yum-autoupdate ← yum-autoupdate設定ファイル編集
# EXCLUDE
#   This is a space deliminated list
#   Example:  EXCLUDE="kernel* openafs* *-kmdl-* kmod-* *firmware*"
#EXCLUDE="kernel* openafs* *-kmdl-* kmod-* *firmware*" ← 行頭に#を追加して無効にし、
kernelを自動アップデート対象にする

[root@ufuso ~]# yum -y update ← インストール済パッケージの一括アップデート
Loaded plugins: refresh-packagekit, security
・・・
・・・
Complete!

(2)インターネットプロバイダから支給されたルーターにファイアウォールが設定されているので、サーバーのファイアウォールは停止

[root@ufuso ~]# /etc/rc.d/init.d/iptables stop ← サーバーのファイアウォールを停止
iptables: ファイアウォールルールを消去中:                  [  OK  ]
iptables: チェインをポリシー ACCEPT へ設定中filter         [  OK  ]
iptables: モジュールを取り外し中:                          [  OK  ]

[root@ufuso ~]# chkconfig iptables off ← 自動起動の停止

(3)管理が困難なので、SELinux (Security-Enhanced Linux)を無効にする

[root@ufuso ~]# setenforce 0 ← SELinux無効化

[root@ufuso ~]# getenforce ← SELinux状態確認
Permissive ← SELinux無効

[root@ufuso ~]# vi /etc/sysconfig/selinux ← SELinuxの編集
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled ← サーバー起動時から停止にする
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA


このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください