Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1066202
  • 博文数量: 186
  • 博客积分: 4939
  • 博客等级: 上校
  • 技术积分: 2075
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-08 17:15
文章分类

全部博文(186)

文章存档

2018年(1)

2017年(3)

2016年(11)

2015年(42)

2014年(21)

2013年(9)

2012年(18)

2011年(46)

2010年(35)

发布时间:2015-09-07 14:17:18

    某些BT的情况下,需要多个agent端1小时内多次执行某个cron(还得随机时刻), 此时puppet的cron这个resource type满足不了我们的需求了。此时解决办法呢?

   写个class, 里面用define, 大致如下:

class cron(arg1,arg2) {
define random_cron( $command) {.........【阅读全文】

阅读(1213) | 评论(0) | 转发(0)

发布时间:2015-09-02 19:06:05

     不太清楚这个目的是什么,可能用在某些场景,比如不想大费周章的写个def。如下所示:
>>> s = [('a', 3), ('b', 2), ('c', 1)]
>>> sorted(s, key=lambda x:x[1])
[('c', 1), ('b', 2), ('a', 3)]

>>> max(s, key=lambda x:x[1])
('a.........【阅读全文】

阅读(1009) | 评论(0) | 转发(0)

发布时间:2015-09-01 16:56:47

1. 某个旧的dell power connect 交换机下连的mac book pro 没办法DHCP获取IP地址,手动分配可行,尝试升级firmware解决了,思路比较简单。<br /><br />copy tftp://x.x.x.x/YY.ZZ image 然后根据官方网站下载firmware的release note/procedure来操作。记得事先备份配置,方法相反<br /><br />copy start-config tftp://x.........【阅读全文】

阅读(850) | 评论(0) | 转发(0)

发布时间:2015-08-26 11:38:58

    日志出现了 too many open files

cat /etc/security/limits.d/90-nproc.conf   # 优先级超过  /etc/security/limits.conf

# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasonin.........【阅读全文】

阅读(1868) | 评论(0) | 转发(0)

发布时间:2015-08-25 11:56:14

SYN Flood Protection

These settings added to sysctl.conf will make a server more resistant to SYN flood attacks. Applying configures the kernel to use the SYN cookies mechanism, with a backlog queue of 1024 connections, also setting the SYN and SYN/ACK retries to an effective ceiling of.........【阅读全文】

阅读(1244) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册