セットアップ

DHCPで固定IPアドレス配信設定しているので、特にネットワーク関連の設定はなし。

まずyumで管理するのでyumのミラー設定とアップデート

$ yum install yum-fastestmirror

$ yum update

次にntp設定。ntpは日本だとnictがやっぱり使いやすいので"ntp.nict.jp"を使います。

ntpdはインストール済みなので特に設定せず

$ vi /etc/ntp.conf

で、serverの記述のところを

$server 0.centos.pool.ntp.org

$server 1.centos.pool.ntp.org

$server 2.centos.pool.ntp.org

server ntp.nict.jp

に設定。その後ntpd起動させる

$ chkconfig ntpd on

$ /sbin/service ntpd start

$ ntpq -p

で問い合わせしてて、サーバーの行先頭に*がつけばOK

$ chkconfig

でサービスリストを表示して、不要なサービスを終了させる

$ /sbin/service ip6tables stop

$ chkconfig ip6tables off

ftpサーバーをセットアップするので、

$ yum install ftpd

$ chkconfig vsftpd on

$ /sbin/service vsftpd start

とりあえずsambaもインストールだけしておく

$ yum install samba

gccとmakeも入っていないので入れておく

$ yum install gcc

$ yum install make

comments powered by Disqus