随笔分类 -  Linux

摘要:1) 重启后永久性生效:开启:chkconfig iptables on关闭:chkconfig iptables off2) 即时生效,重启后失效service iptables stopservice iptables save 阅读全文
posted @ 2012-04-12 00:02 ppKevin 阅读(107) 评论(0) 推荐(0)
摘要:crontab命令的功能是在一定的时间间隔调度一些命令的执行。在/etc目录下有一个crontab文件,这里存放有系统运行的一些调度程序。每个用户可以建立自己的调度crontab。服务设置service crond restart //重启cron服务/etc/init.d/crond restartservice crond status //查看 cron服务状态下面是crontab的格式:分 时 日 月 星期 要运行的命令这里有crontab文件条目的一些例子:30 21 * * * /usr/local/apache/bin/apachectl restart上面的例子表示... 阅读全文
posted @ 2012-04-11 23:55 ppKevin 阅读(198) 评论(0) 推荐(0)