Home > 備忘録(Fedora) > OS インストール後 > 初期設定( 100 )
Feodra16以降で初期設定する場合です
[root@server]# yum -y install yum-fastestmirror ←パッケージダウンロードサイト(ミラーサイト)より最速サイトを自動検知するプラグイン
[root@server]# yum -y update fedora-release ←fedora-releaseのアップデート
[root@server]# yum -y update ←インストール済パッケージの一括アップデート
[root@server]# yum -y install yum-cron ←パッケージ自動更新をインストール
[root@server]# systemctl start yum-cron.service ←yum-cronを起動
[root@server]# systemctl enable yum-cron.service ←yum-cronを自動起動設定[root@server]# systemctl stop iptables.service ←ルーターでブロックするため、パケットフィルタリングは停止
[root@server]# systemctl disable iptables.service ←パケットフィルタリング自動起動解除[root@server]# systemctl stop firewalld.service ←ファイアウォールは停止
[root@server]# systemctl disable firewalld.service ←ファイアウォール自動起動解除[root@server]# getenforce ←SELinuxの状態確認
Enforcing ←SELinux有効
[root@server]# setenforce 0 ←SELinuxの無効化
[root@server]# getenforce ←SELinuxの状態確認
Permissive ←SELinux無効
[root@server]# vi /etc/sysconfig/selinux ←SELinux設定ファイル編集
SELINUX=disabled ← enforcing を disabled に変更