日期:2014-05-16  浏览次数:20580 次

linux 常见配置

vi /etc/rc.d/rc.local

touch /var/lock/subsys/local
ulimit -SHn 51200
/usr/local/php/sbin/php-fpm start
/usr/local/nginx/sbin/nginx
/usr/local/bin/memcached -d -m 10 -u root -l 222.177.225.55 -p 11211 -c 256 -P /tmp/memcached.pid
/usr/bin/svnserve -d --listen-port 10009 -r /sinykkdata/svndata

?

crotab -e

?

# time website
0 0 * * * /usr/bin/rdate -s rdate.darkorb.net

0 4 * * *???? /bin/sh /sinykk/dbback/autobackupdb.sh
*/5 * * * * /usr/local/php/bin/php /sinykk/www/cron/cron_5_sec.php > /dev/null 2>&1

# server restart
29 4 * * 1 reboot

# php restart
4 11,17,21,5 * * * /usr/local/php/sbin/php-fpm restart > /dev/null 2>&1

?

?

=======================

清空一个文件

cat /dev/null >maillog

?

查看文件内容实时变化

Linux命令:tail -f catalina.out

?