2012年6月8日金曜日

Rails Apatche環境で使うコマンドなど


■サービス再起動
/etc/init.d/httpd restart
/etc/init.d/mysqld restart

■サービス停止、起動
/etc/init.d/httpd stop
/etc/init.d/httpd start

■httpd ログ
ll /var/log/httpd/
access_log
error_log

■tail 行指定
tail -n 100 /var/log/httpd/error_log