发布时间:2012-12-20 16:14:35
server:192.168.26.130 rpm -qa |grep rsync #检查系统是否安装了rsync软件包rsync-2.6.8-3.1 rpm -ivh rsync-2.6.8-3.1.i386.rpm # 如果没有安装则手动安装 vim /etc/xinetd.d/rsync 1 配置rsync server将disable=yes改为no service rsync{disable = nosocket_type = streamwait = nouser = rootserver = /usr/bin/rsyncserver_args = -......【阅读全文】
发布时间:2012-12-12 14:23:21
原文:http://hi.baidu.com/litertiger/blog/item/506cb5debaa3d55bccbf1aed.html import MySQLdb db_user = "tiger" db_pw = "tiger" db = MySQLdb.connect(host="localhost", user=db_user, passwd=db_pw ,db="finaltldw",charset="gb2312") c = db.cursor() c.execute("""select id, name from NODES""") i=0; fo......【阅读全文】
发布时间:2012-12-12 14:22:44
向au_online_info插入一条记录,如果au_online_total表中存在相同userid的记录,则total_online,total_score累加online_time,如果不存在就向表au_online_total中一条记录(total_online,total_score为相同值)。 点击(此处)折叠或打开 Create Table: CREATE TABLE `au_online_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userid` bigi......【阅读全文】