Posted on 2010-08-26
Connectify是一款非常实用的免费软件,它可以把安装了Windows7的笔记本电脑模拟成一台无线路由器、无线接入点(无线AP,Access Point)。
Posted on 2010-08-20 作者: 七夜
php有两个memcache扩展,默认都是使用php自带的序列化函数serialize来存储数组或对象。但是serialize最为人诟病的就是速度慢,序列化之后占用空间大。由于facebook已经在memcached里保存了200T字节的数据,因此序列化函数即便作出的百分之一的优化对它来说都是个不小的收益。但是Facebook没有开源这个module,我使用msgpack代替了PHP自身的序列化。 msgpack是一种新的基于二进制的对象序列化类库。它可以像JSON那样,在许多种语言之间交换结构对象;但是它比JSON更快速也更轻巧。
我测试过一个二维数组,php自带的序列化,字符长为225, 使用msgpack序列字符长 仅为91 节省百分之七八十空间

第二个改进 是 使用 QuickLZ 代替 zlib
QuickLZ 是一个号称世界压缩速度最快的压缩库。quickLZ的压缩率比zlib 略低,而压缩的速度确实比zlib 的快了很多。让你使用字符串解压缩的时候,尽可能减少CPU的占用。
http://www.cellphp.com/memcache-3.0.tar.bz2
作者: 七夜
QQ : 531020471
MSN : lijinxing20@hotmail.com
mail: lijinxing@gmail.com
PHP高级群
62116204
PHP开源、负载、高级研究群。新手的就不要进来了
Posted on 2010-08-13 作者: luohuazju →阅读全文
注册了几个服务后发现又冒出来一个新的需求
几个服务之间有依赖关系,mule在启动的时候需要activeMQ和james都已经启动了
以后也会遇到这样的需求,一个WEB应用启动肯定也是需要先启动DB,然后才启动容器的
所以就需要给应用添加几个依赖关系,
最先想用sc config mule depend="James/ActiveMQ"来做,结果来时提示语法错误。正确的语法
查找了很久也没有结果。
最后只好直接修改注册表了,冒个险
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\mule
中,mule是我注册的ESB的服务,在其中添加一个
DependOnService的多字符串键值,值就是James和ActiveMQ,折行书写
保存,重启,一切OK了。也就是说,肯定是先启动James和ActiveMQ,然后再启动mule
Posted on 2010-08-06
如果你购买的主机是使用的whmcs的销售系统,你可以通过下面链接来检测,是不是用正版的。
http://www.whmcs.com/members/verifydomain.php
如果连销售系统都是盗版的,你就要考虑是不是放心购买了。
Posted on 2010-07-09 作者: www.netroby.com →阅读全文
网站备份是一个广大站长每天必做的事情。godaddy为每个域名提供了10G免费空间,我们不妨利用这个空 间,做为一个我们自己网站的备份服务器。
godaddy免费空间提供了ftp上传的功能,在linux下面,我们可以利用lftp和cron把备份工作变成自动化运行的后台脚本。
ubuntu下面安装lftp只需要执行apt-get install lftp
lftp可以调用配置文件,我们先来写一个:vim /vhosts/lftp.txt
1 |
open ftp://xxx:xxxxxxxxxxxx@xxx.xxxxx.xxx |
2 |
mirror -R -v --only-newer /vhosts /.vhosts |
Posted on 2010-06-26
需要安装这个:
http://smartmontools.sourceforge.net/
如果是centos直接运行yum install smartmontools -y就可以了
然后输入这个:
smartctl -A /dev/sda
如果不行用df看看硬盘名称,把sda换了即可
=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 083 063 044 Pre-fail Always - 204269687
3 Spin_Up_Time 0x0003 099 099 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 18
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 069 060 030 Pre-fail Always - 7825289
9 Power_On_Hours 0x0032 099 099 000 Old_age Always - 1626
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 037 020 Old_age Always - 18
184 Unknown_Attribute 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Unknown_Attribute 0x0032 100 099 000 Old_age Always - 12
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 072 069 045 Old_age Always - 28 (Lifetime Min/Max 25/31)
194 Temperature_Celsius 0x0022 028 040 000 Old_age Always - 28 (0 22 0 0)
195 Hardware_ECC_Recovered 0x001a 050 047 000 Old_age Always - 204269687
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
其中Power_On_Hours就是硬盘使用小时了,如果是Power_On_Minutes就是硬盘使用分钟,例如:
9 Power_On_Minutes 0x0032 201 201 000 Old_age Always - 649h+23m
另外,不支持vps的,用vps的就别试了……
Posted on 2010-06-25 →阅读全文
Founded in 2003 and based in Troy, NY, Ubersmith was the first to offer automated billing and monitoring of server usage to the IT infrastructure industry. The company offers the leading single-platform workflow solution that supports real-time billing of bandwidth and overage usage, alongside mission-critical features to automate device lifecycle management, customer relationship management (CRM), support and trouble ticket resolution, real-time performance monitoring, and advanced profitability evaluation and business reporting. The latest release of its flagship product, Ubersmith DE, extends all of the platform's workflow and operational benefits, which Ubersmith has been bringing to physical servers over the past seven years, to the world of virtualization, and enables a similar framework for cloud computing providers.About Ubersmith
Posted on 2010-06-16 作者: amao →阅读全文
安装了 java 6 ( jre6 - netbeans php 只需要 jre 就可以了,不需要 jdk) .运行 免安装的netbeans php。还是提示 Cannot find Java 1.5 or higher。
解决方法:打开NetBeans下的目录〈etc〉的netbeans.conf文件。找到下面这一行。
#netbeans_jdkhome="/path/to/jdk"
将它改为把#去掉,改为:netbeans_jdkhome="C:\Program Files\Java\jre6"
Posted on 2010-06-16 作者: lazyhack.net →阅读全文
刚才在配置WP-DB-Backup时随手google了一下wordpress使用的是何种方式发的邮件,因为之前对这个不是很了解,大致看了下,也就是两种方法,一种是使用PHP的mail函数,透过本地SMTP发信,说这种办法怎么怎么麻烦,怎么怎么不适用个人的服务器。
Posted on 2010-06-11 →阅读全文
如果你购买了66.96.198.48/28,那么你就有13个可以用的IP,是66.96.198.50-62。其中66.96.198.48作为网络,66.96.198.49作为网关,66.96.198.63作为广播,均不可用。
也就是说,你购买了一段IP,那么认66.96.198.48/28,最后一个IP是作为广播的,第一个是作为网络,第二个作为网关,总共3个IP不能使用。
子网掩码上面也给出示例了,如果你无法确认你的资料,可以到https://www.burst.net/SubnetCalc.php输入巴斯给你的类似于66.96.198.48/28这样的代码,巴斯就会给你自动计算出相关IP资料。
共40页: [1] 2 3 4 5 6 » ... 最后页