RedHatEnterprise6.5环境下使用eAccelerator优化网站性能第一步:在做优化之前,首先对网站服务器的硬件做一下检测1,内存信息:2G内存,swap容量为4G[root@linuxcast~]#free-mtotalusedfreesharedbufferscachedMem:18701228642047435-/+buffers/cache:7441125Swap:4095040952..
分类:
Web程序 时间:
2014-08-08 18:31:27
阅读次数:
413
关于malloc和free这两个函数,malloc的用法示例:int *p=(int *)malloc(2*sizeof(int)); 它表示在堆中开辟一块大小为2*sizeof(int)的一块内存空间,p指向这块内存空间的起始地址,malloc前面的(int*)表示这块空间用来存储int型数组。开辟了这块空间后,可以修改这个空间中的值,例如为*p,*(p+1)做赋值操作,如果再次使用malloc...
分类:
其他好文 时间:
2014-08-08 18:08:36
阅读次数:
200
Permission is hereby granted, free of charge, to any person obtaininga copy of this software and associated documentation files (the"Software"), to de...
分类:
Web程序 时间:
2014-08-08 17:28:26
阅读次数:
393
1.当前内存使用情况[user@host ~]$ free -m 2.当前CPU使用情况[user@host ~]$ top
分类:
系统相关 时间:
2014-08-08 15:43:06
阅读次数:
271
Get-WmiObject -Class Win32_LogicalDisk -Filter "DriveType=3" | Format-Table deviceid, @{Label="free(GB)"; Expression={($_.freespace/1GB).tostring("f1....
分类:
其他好文 时间:
2014-08-08 12:07:55
阅读次数:
238
程序将第一个创建的窗体作为主窗体。如果创建了一个后,在其他窗体尚未创建的时候便释放调,此时又创建了一个窗体,那么第二次创建的窗体就会变成主窗体了。关闭主窗体,程序就认为是终止运行,并且调用 Free 释放掉主窗体资源,进而程序结束退出。而关闭其他非主窗体,程序只是将其隐藏起来了。 子窗体会将主窗体....
0){ echo "操作成功!"; }else{ echo "没有受影响的行数"; }//5.接受返回的结果,并进行处理返回值是bool,并且不需要处理//6.关闭连接,释放资源由于$res是个布尔值,所以也不需要释放资源。 mysql_free_result($res); 下面...
分类:
数据库 时间:
2014-08-07 22:47:45
阅读次数:
347
Download AnacondaAnaconda is a completely free Python distribution (including for commercial use and redistribution). It includes over 195 of the most...
分类:
编程语言 时间:
2014-08-07 12:54:29
阅读次数:
241
一台老的PHP后台服务器,今天用 free -m 查看,发现内存跑满了。再 top,然后按下shift+m,也就是按内存占用百分比排序,发现排在第一的进程,才占用0.9%,那是什么占用的呢?谷歌了一下,据说是centos 为了提高效率,把部分使用过的文件缓存到了内存里。如果是这样的话,我又不需要这样...
分类:
其他好文 时间:
2014-08-07 12:43:39
阅读次数:
331
Exponential smoothingFrom Wikipedia, the free encyclopedia Exponential smoothingis a technique that can be applied totime seriesdata, either to produ....
分类:
其他好文 时间:
2014-08-07 12:14:00
阅读次数:
249