[plain]viewplaincopyNginxMaster:192.168.128.134NginxBackup:192.168.128.138VIP:192.168.128.177Nginx安装见nginx安装配置文档Master与Backup的Nginx配置一致.在MASTER跟BACKUP上安装Keepalived:[plain]viewplaincopy#tarzxvfkeepalived-1.1.15.tar.gz-C../software#
系统 2019-08-12 09:26:59 2140
今天在做dram的模拟时候,需要用rand()函数模拟dram的cell的retentiontime,所以查看了一个rand()函数,该函数能产生0到RAND_MAX之间的数。不同平台下RAND_MAX值不同,我在32bit的windowsVC6.0下测试,得出RAND_MAX的值为32767(即2^15-1)。我在64bit的ubuntu下,测试,得到RAND_MAX的值为2147483647(即2^31-1)。rand()函数的最大值问题
系统 2019-08-12 01:54:24 2140
对300万一张表数据,用游标进行循环,不同写法的效率比较1、显示游标declarecursorcur_2isselecta.cust_namefromea_cust.cust_infoa;cust_idvarchar2(100);beginopencur_2;loopfetchcur_2intocust_id;exitwhencur_2%notfound;NULL;endloop;closecur_2;end;--耗时48秒2、隐式游标declarebeg
系统 2019-08-12 01:54:18 2140
Part1:TheARMProcessorBrainPickardexplainshowanyonecanprograminARMcode.IntroductionInthesearticlesIhopetounravelthemysteryofmachinecodeprogrammingonARMRISCComputerswhichrunRISCOS.TheexamplesIwillgivewillrunonallversionsofRISCOSando
系统 2019-08-12 01:53:33 2140
Mysql触发器DROPTRIGGERIFEXISTSt_afterinsert_on_user;DELIMITER//CREATETRIGGERt_afterinsert_on_userAFTERINSERTONuam_userFOREACHROWBEGININSERTINTOuam_user_markedVALUES(UUID(),new.user_id,1,'35c6e621-d123-4af8-877d-dcd0b751dac9',CURRENT_
系统 2019-08-12 01:53:23 2140
函数库调用是语言或应用程序的一部分,而系统调用是操作系统的一部分,不管是java还是python的I/O最后都是通过read和write这样的系统调用来完成的系统调用是用户程序和内核交互的接口|函数库调用|系统调用||---------------------------------------------+----------------------------------------------||在所有的ansic编译器版本中,c库函数是相同的|各个
系统 2019-08-12 01:53:11 2140
selectmobileNo,sendTimefrom(selectsubstring(convert(char(50),mobileNo),1,7)asmobileNo,sendTimefromdbo.SmsSendRecord)awherea.mobileNoin(selectconvert(char(50),mobileNo)fromTable_3wherecode=832)anda.sendTimebetween'2009-6-8'and'2009
系统 2019-08-12 01:52:48 2140
内建函数描述issubclass(sub,sup)如果类sub是类sup的子类,则返回True,反之,为False。isinstance(obj1,obj2)如果实例obj1是类obj2或者obj2子类的一个实例;或者如果obj1是obj2的类型,则返回True;反之,为False。hasattr(obj,attr)如果obj有属性attr(用字符串给出),返回True,反之,返回False。getattr(obj,attr[,default])获取obj
系统 2019-08-12 01:52:44 2140
SELECT*FROM(SELECT*FROMT_Life_MessagezWHEREz.message_idNOTIN(SELECTu.message_idFROMT_Life_UMessageuWHEREu.account='18922234293'ANDu.isdelete=1)ANDmessage_status=1)ASMLEFTJOIN(SELECTu.message_id,u.isreadFROMT_Life_UMessageu)ASNONM.
系统 2019-08-12 01:52:33 2140
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=465&page=show_problem&problem=2399最长的很简单,将串翻转过来后求两个串的lcs就是答案。。主要是字典序那里。。。还是开string来比较吧。。注意最后输出方案时用前半段推出后半段。(因为可能lcs时会重合。。。)#include#include
系统 2019-08-12 01:52:32 2140