一、系统环境实验拓扑:实验环境:Vmware 9.01 + Windows 8 x64 企业版+8G内存虚拟机步骤:1、安装一台CentOS 6.3 x64主机,内存为1GB,网络为NAT模式,注意检查Vmware中EDIT菜单下Virtual Network Editor中VMnet82、加电,安...
分类:
其他好文 时间:
2014-07-10 13:26:08
阅读次数:
542
1. microtime() 当前 Unix 时间戳以及微秒数。 connect("127.0.0.1", 11211);$time_start = microtime_float();//保存数据for($i = 0; $i set("key$i",$i,0,3);}$time_end = mi....
分类:
Web程序 时间:
2014-07-10 10:28:36
阅读次数:
245
WordPress发送邮件的功能,一直以来都是靠插件解决的换了一个主机商后,发现不能发送邮件了,使用wp-mail-smtp发送测试邮件给出的错误提示为: SMTP -> ERROR: Failed to connect to server:()折腾一天后发现,原来是fsockopen函数被禁用了找...
分类:
其他好文 时间:
2014-07-10 00:44:34
阅读次数:
180
Administrating Virtual Machines with QEMU Monitor When QEMU is running, a monitor console is provided for performing interaction with the user. Using ...
分类:
其他好文 时间:
2014-07-08 00:06:50
阅读次数:
464
----------------------------------------------------------------------------------------------------比如以下一段登录的代码:if($l = @mysql_connect('localhost', 'r...
分类:
数据库 时间:
2014-07-07 22:08:00
阅读次数:
232
1. 赋予scott用户连接权限:Grant connect to scott;
2. 在Myeclipse中新建java项目导入jdbc包(classes12.jar):右键项目 bulid path -〉add external archives 选择classes12.jar
3. 新建java文件, lianxi01.java
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLExceptio...
分类:
数据库 时间:
2014-06-28 08:02:18
阅读次数:
272
参考模版/usr/share/doc/vsftpd-2.0.5/EXAMPLE/VIRTUAL_USERS)1.创建虚拟账户[root@localhost~]#yuminstalldb4-utils[root@localhost~]#vim/etc/vsftpd/vlogintomcat #账户名称123456 #密码jerry #账户名称654321 #密码[root@localhost~]#db_load-T-thash-f/etc/vsftpd/vl..
分类:
系统相关 时间:
2014-06-28 06:03:14
阅读次数:
531
安装KVM虚拟化条件:首先CPU要支持虚拟化(Intel是vmx,AMD是svm)[root@localhost~]#egrep‘(vmx|svm)‘--color/proc/cpuinfo确保BIOS里开启VTIntel(R)VirtualizationTech[Enabled]安装虚拟化套件[root@localhost~]#LANG=en_US-utf8[root@localhost~]#yum-ygroupinstall"Virtual..
分类:
其他好文 时间:
2014-06-28 00:30:19
阅读次数:
346
??
http://catpad.net/michael/jvm/是一个开源的简易的JVM实现。它实现了大多数的JVM功能,实现简单,适合广大技术爱好者了解JVM的内部工作原理。可以参考《Inside the Java Virtual Machine》by
Bill Venners,本书对jvm结构,Java class的定义有详细的讲解。
本文介绍下其中的一些关键实现点:
类加...
分类:
其他好文 时间:
2014-06-27 08:27:48
阅读次数:
514
背景:由于在KVM虚机上做glusterfs测试,发现KVM虚拟存储空间不够。思路:创建一个kvmimg文件指定大小200G,然后通过VirtualMachineManager导入到对应的虚拟机步骤:这里以虚拟机vm2为例创建kvmimg[root@agent-cloudstack342]cd/d1/virtual_machine/vm/2#进入虚机文件目录[root..
分类:
其他好文 时间:
2014-06-27 06:38:28
阅读次数:
288