浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年7月2日

摘要: python的线程锁机制_dominic_80-ChinaUnix博客python的线程锁机制 (2011-03-23 15:17)标签: python 线程 锁 分类: PYTHON 线程与锁 请求锁定 -- 进入锁定池等待 -- 获取锁 --- 已锁定 --- 释放锁锁Lock()Lock(指令锁)是可用的最低级的同步指令。Lock处于锁定状态时,不被特定的线程拥有。Lock包含两种状态——锁... 阅读全文
posted @ 2012-07-02 21:06 lexus 阅读(575) 评论(0) 推荐(0)

摘要: curl -s http://www.123cha.com/|grep "cha.com\/ip"|awk '{print $3}'|awk -F"q=" '{print $2}' 阅读全文
posted @ 2012-07-02 19:05 lexus 阅读(242) 评论(0) 推荐(0)

摘要: How to capture stdout in real-time with Python « SaltyCrane BlogHow to capture stdout in real-time with PythonDate: 2009-10-12|Tags:notestoself,processes,python| 1CommentThis solution is thanks to th... 阅读全文
posted @ 2012-07-02 17:39 lexus 阅读(398) 评论(0) 推荐(0)

摘要: 使用Python连接redis(redis作MQ使用)_Tister的空间_百度空间使用Python连接redis(redis作MQ使用)1、安装redis Python客户端easy_install.exe redis2、启动redissudo redis-server3、编写接收端import redisrc = redis.Redis(host='mt.ematchina.com')ps =... 阅读全文
posted @ 2012-07-02 17:38 lexus 阅读(433) 评论(0) 推荐(0)

摘要: HowTo: Restart SSH Service under Linux / UNIXHow do I restart SSH service under Linux or UNIX operating systems? The command to restart ssh are as follows (you must login as root user):CentOS / RHEL ... 阅读全文
posted @ 2012-07-02 17:37 lexus 阅读(333) 评论(0) 推荐(0)

摘要: scp id_rsa.pub root@10.10.224.96:/root/.ssh/ssh root@10.10.224.96cat id_rsa.pub >> authorized_keys 阅读全文
posted @ 2012-07-02 15:20 lexus 阅读(229) 评论(0) 推荐(0)

摘要: <html><script type="text/javascript" src="./moment.min.js"></script><body><script type="text/javascript">var b=moment("2012-07-02T03:47:28+0000").format('YYYY-MM-DD hh:mm');alert(b);</script></body></... 阅读全文
posted @ 2012-07-02 11:41 lexus 阅读(371) 评论(0) 推荐(0)

摘要: PRTG Network Monitor - intuitive network monitoring software“PRTG monitors your network and alerts you to issues before they become emergencies.”Installed In Seconds. Configured In Minutes. Protects ... 阅读全文
posted @ 2012-07-02 11:08 lexus 阅读(359) 评论(0) 推荐(0)