* Linux設定(Red Hat) [#b6a81365]

#setlinebreak(on);

・[[カーネルのアップデート>#update_kernel]]
・ネットワーク設定
 ├ [[/etc/hosts の記述>#edit_hosts]]
 ├ [[/etc/resolv.conf の記述>#edit_resolv_conf]]
 └ [[/etc/sysconfig/network-scripts/ifcfg-eth0 の記述>#edit_ifcfg_eth0]]

&aname(update_kernel);
◆カーネルのアップデート(とりあえず yum によりRPMパッケージからカーネルをアップデートする。)
 yum check-update  ・・・  アップデート可能なパッケージをチェック
 yum update kernel  ・・・  カーネルをアップデート

&aname(edit_hosts);
◆[/etc/hosts] の編集
  ・IPアドレス:192.168.0.10、ホスト名:www、ドメイン:example.com の場合。
 127.0.0.1  localhost.localdomain  localhost
 192.168.0.10  www.example.com  www

&aname(edit_resolv_conf);
◆[/etc/resolv.conf] の記述
  ・利用するDNSサーバの情報をnameserverという項目で指定する。
  ・domain、serchに自ドメインを記述しておくと同ドメインの他ホストを探すときにドメインを省略できる。
 nameserver xxx.xxx.xxx.xxx
 nameserver xxx.xxx.xxx.xxx
 domain example.com
 search example.com

&aname(edit_ifcfg_eth0);
◆[/etc/sysconfig/network-scripts/ifcfg-eth0] の記述
 BOOTPROTO=none
 GATEWAY=192.168.0.1
 DEVICE=eth0
 MTU=""
 NETMASK=255.255.255.0
 BROADCAST=192.168.0.255
 IPADDR=192.168.0.10
 NETWORK=192.168.0.0
 ONBOOT=yes


トップ   差分 バックアップ リロード   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS