CentOS 運用要領

維持更新・yum

  • yum check-update - 更新の確認 
  • yum update - 更新する
  • yum update name - nameを更新する
  • yum list - 利用可能なパッケージ一覧
  • yum list installed - 導入済みのパッケージ一覧
  • yum install name - nameを導入
  • yum remove name - nameを削除
  • yum search keyword - keywordを検索する
  • yum clean - キャッシュのクリア

Web Server/httpd

  • 再起動: /etc/rc.d/init.d/httpd restart 
  • 設定ファイル: /etc/httpd/conf/httpd.conf

Mail Server

postfix(mta)

  • 再起動: /etc/rc.d/init.d/postfix restart
  • 設定ファイル: /etc/postfix/main.cf
    • message_size_limit = 10485760 (10MBまでのメールに制限)
  • 設定ファイル: /etc/postfix/master.cf
  • 設定ファイル: /etc/postfix/virtual
    • 反映: /sbin/postmap /etc/postfix/virtual
  • 設定ファイル: /etc/aliases
    • 反映: newaliases
    • 反映: /usr/sbin/postalias /etc/aliases
  • 未使用参考
    • MTA切り替え /usr/sbin/alternatives --config mta
    • sendmail停止 /etc/rc.d/init.d/sendmail stop

saslauthd(smtp-auth)

  • 再起動: /etc/rc.d/init.d/saslauthd restart
  • 設定ファイル: /usr/lib/sasl2/smtpd.conf

dovecot(pop/imap)

  • 再起動: /etc/rc.d/init.d/dovecot restart 
  • 設定ファイル: /etc/dovecot.conf

httpd,php,perl

  • /usr/bin/php
  • /usr/bin/perl

利用者管理・user

追加手順

  • adduser - コマンドで各種値を指定のこと
  • passwd username - パスワードを変更

自動起動・定時作業

  • /sbin/chkconfig --list

設定済み

  • /sbin/chkconfig yum-updatesd on
  • /sbin/chkconfig mysqld on
  • /sbin/chkconfig postgresql on
  • /sbin/chkconfig httpd on
  • /sbin/chkconfig saslauthd on

主な機能

  • -

関連事項

注意

  • -