摘要: 需要将kernel.yama.ptrace_scope=1改为kernel.yama.ptrace_scope=0文件位于/etc/sysctl.d/目录下修改后需要用sysctl -p /etc/sysctl.d/10-ptrace.conf执行生效用saltstack编写脚本ptrace.sls/etc/sysctl.d/10-ptrace.conf: file.sed: - before: 1 - after: 0 - limit: 'kernel.yama.ptrace_scope'编写后在命令行执行:salt '*' state.highstate然后 阅读全文
posted @ 2013-10-28 18:16 silence.li 阅读(3279) 评论(0) 推荐(0)
摘要: 服务器没有装NTP,要每天向特定的server进行时间同步,写了一个定时任务,放在/etc/cron.daily下,但是不运行。/etc/crontab文件:# /etc/crontab: system-wide crontab# Unlike any other crontab you don't have to run the `crontab'# command to install the new version when you edit this file# and files in /etc/cron.d. These files also have userna 阅读全文
posted @ 2013-10-28 13:56 silence.li 阅读(1415) 评论(0) 推荐(0)