摘要: 今天用python实现分布式,基于python2.7,注意:在linux下执行测试通过,在windows测试失败。# -*- coding: utf-8 -*-__author__ = 'dell'import random, time, Queuefrom multiprocessing.mana... 阅读全文
posted @ 2015-11-03 17:23 thinker1017 阅读(1209) 评论(0) 推荐(0)
摘要: from sgmllib import SGMLParserimport sys,urllib2,urllib,cookielibclass spider(SGMLParser):def __init__(self,email,password):SGMLParser.__init__(self)s... 阅读全文
posted @ 2015-11-03 12:48 thinker1017 阅读(295) 评论(0) 推荐(0)
摘要: 转载一篇Ricky的系统优化脚本,这个脚本只能针对centos6x其他还没有测试,但centos7肯定不行的#!/bin/bash# ID 201510192126# Author Ricky# E-mail 564001002@qq.com# CentOS 6 系统初始优化脚本 IT运维管理技术交... 阅读全文
posted @ 2015-11-03 12:44 thinker1017 阅读(564) 评论(0) 推荐(0)
摘要: 这是一个Shell脚本,用于管理Redis进程(启动,停止,重启),如果你在使用Redis,这个脚本可供参考。 #!/bin/sh # # redis - this script starts and stops the redis-server daemon # # chkconfig: - 85 阅读全文
posted @ 2015-11-03 12:33 thinker1017 阅读(388) 评论(0) 推荐(0)
摘要: 很多服务都需要设置为开机自启动。将下面代码复制到 /etc/rc.d/init.d/tomcat ,然后执行chkconfig –add tomcatchkconfig tomcat on就可以service tomcat start附上代码:#!/bin/bash## Startup script... 阅读全文
posted @ 2015-11-03 12:31 thinker1017 阅读(281) 评论(0) 推荐(0)
摘要: PS:Linux用户操作记录一般通过命令history来查看历史记录,但是如果因为某人误操作了删除了重要的数据,这种情况下history命令就不会有什么作用了。以下方法可以实现通过记录登陆IP地址和所有用户登录所操作的日志记录!在/etc/profile配置文件的末尾加入以下脚本代码就可以实现,下面... 阅读全文
posted @ 2015-11-03 10:01 thinker1017 阅读(759) 评论(0) 推荐(0)