1 $uid, "PWD"=>$pwd,
"Database"=>"LocationAnalysisDatabase");10 11 $conn = sqlsrv_connect(
$serverName, $connectionInfo);12 13 if( $conn == false){14....
分类:
数据库 时间:
2014-05-16 04:39:58
阅读次数:
360
Using UnityEngine;public class
TimeDela:MonoBehavior{ float myScencons=0; public long time=100; void Updata(){
myScencons+=Time.deltaTime; if(myScenco...
分类:
其他好文 时间:
2014-05-16 04:38:42
阅读次数:
235
java多线程例子编写具有多线程能力的程序经常会用到的方法有: run(), start(),
wait(), notify(), notifyAll(), sleep(), yield(), join() 还有一个重要的关键字:synchronized
本文将对以上内容进行讲解。 一:ru...
分类:
编程语言 时间:
2014-05-16 04:28:51
阅读次数:
494
/** * Schedule a countdown until a time in the
future, with regular notifications on intervals along the way. * * Example of
showing a 30 second count...
分类:
其他好文 时间:
2014-05-16 04:21:02
阅读次数:
311
1.消耗CPUSELECT a.CPU_TIME, --CPU时间 百万分之一(微秒)
a.OPTIMIZER_MODE,--优化方式 a.EXECUTIONS,--执行次数 a.DISK_READS,--读盘次数
a.SHARABLE_MEM,--占用shared pool...
分类:
数据库 时间:
2014-05-16 04:07:52
阅读次数:
419
1.慢查询日志:slow_launch_time=2
查询大于某个时间的值(单位:s)slow_query_log=on/off
开启关闭慢查询日志slow_query_log_file=/opt/data/host-slow.log
慢查询日志位置2.连接数:max_connections MyS...
分类:
数据库 时间:
2014-05-15 21:44:08
阅读次数:
447
经过几天的学习,pexpect模块对于linux下运维脚本编写属实有用,下面写个脚本检验下学习效果。#!/usr/bin/envpython
#coding=utf-8
#远程执行服务器上的脚本
importsys,time,os,multiprocessing
try:
importpexpect
exceptImportError:
print"""
Youmustinstallpexpectmodule
"..
分类:
其他好文 时间:
2014-05-15 12:55:28
阅读次数:
260
1.慢查询日志:slow_launch_time=2查询大于某个时间的值(单位:s)slow_query_log=on/off开启关闭慢查询日志slow_query_log_file=/opt/data/host-slow.log慢查询日志位置2.连接数:max_connectionsMySQL最大连接数back_log当连接数满了后,设置一个值,允许多少个连接进入等待堆..
分类:
数据库 时间:
2014-05-15 12:44:41
阅读次数:
385
教材:《简明Python教程》Python面向对象:如shell这种面向过程的程序都是通过“操作数据的函数”或者“语句块”来设计函数。python的程序(面向对象):类是一个“class”类型,对象是类中的一个实例。类的属性包括了:域和方法。(即变量和函数)属于一个对象或类的变量被称为..
分类:
编程语言 时间:
2014-05-15 12:39:21
阅读次数:
351
第一步vim/etc/sysctl.conf
net.ipv4.tcp_keepalive_time=1800
net.ipv4.tcp_keepalive_probes=5
net.ipv4.tcp_keepalive_intvl=15
net.core.rmem_max=167772160
net.core.wmem_max=167772160
net.ipv4.tcp_rmem=409687380167772160
net.ipv4.tcp_wmem=409665536167772160
net...
分类:
其他好文 时间:
2014-05-15 12:32:43
阅读次数:
248