ocean

匿名

12 月 242013
 

有时候,运行 Nginx、PHP-CGI(php-fpm) Web服务的 Linux 服务器,突然系统负载上升,使用 top 命令查看,很多 php-cgi 进程 CPU 使用率接近100%。后来,我通过跟踪发现,这类情况的出现,跟 PHP 的 file_get_contents() 函数有着密切的关系。

们知道,在 php.ini 中,有一个参数 max_execution_time 可以设置 PHP 脚本的最大执行时间,但是,在 php-cgi(php-fpm) 中,该参数不会起效。真正能够控制 PHP 脚本最大执行时间的是 php-fpm.conf 配置文件中的以下参数: Continue reading »

12 月 242013
 

http://blog.csdn.net/chen3888015/article/details/7432868

在 Linux 下 top 工具可以显示 cpu 的平均利用率(user,nice,system,idle,iowait,irq,softirq,etc.),可以显示每个 cpu 的利用率。但是无法显示每个线程的 cpu 利用率情况,
这时就可能出现这种情况,总的 cpu 利用率中 user 或 system 很高,但是用进程的 cpu 占用率进行排序时,没有进程的 user 或 system 与之对应。

可以用下面的命令将 cpu 占用率高的线程找出来:
 ps H -eo user,pid,ppid,tid,time,%cpu,cmd –sort=%cpu

这个命令首先指定参数’H’,显示线程相关的信息,格式输出中包含:user,pid,ppid,tid,time,%cpu,cmd,然后再用%cpu字段进行排序。这样就可以找到占用处理器的线程了。 Continue reading »

12 月 112013
 

At Open WhisperSystems, we’re working to both advance the state of the art for secure communication and also reduce the friction required for ordinary people to make use of it. We want everyone to have access to advanced secure communication methods that are as easy and reliable to use as making a normal phone call or sending a normal text message.
在 Open WhisperSystem,我们正在为加密技术的优化提升和普通用户使用时的便捷性而努力。我们希望每个人都能获得先进的加密通讯方式,就像我们平时打电话或发短信那样,既简单又可靠。

With these goals in mind, we’ve been working with CyanogenMod over the past few months. CyanogenMod is an open source aftermarket Android firmware distribution with ten million users and ~20k installs a day. Their rapid growth is beginning to rival Microsoft for the third largest smartphone OS distribution.

带着这些目标,我们在过去几个月里与CyanogenMod团队一起合作。CM是一家开源的Android系统固件开发商,目前已有千万级的用户,且每天都有约2万新增安装用户。CM的快速成长,都已经快赶上微软这个第3大智能系统开发商了。

As of today, the TextSecure protocol will begin shipping as part of the CyanogenMod OS-level SMS provider, in an effort to provide completely transparent end-to-end text message encryption between all of their users.

今天,TextSecure协议将作为CM系统级SMS应用的一部分,向所有CM用户提供完全透明的,端到端的SMS信息加密。

 

Integration

We’ve modified the Cyanogen SMS/MMS provider to speak the TextSecure protocol. If an outgoing SMS message is addressed to another CyanogenMod or TextSecure user, it will be transparently encrypted and sent over the data channel as a push message to the receiving device. That device will then decrypt the message and deliver it to the system as a normal incoming SMS. Continue reading »

12 月 102013
 

过去几个月里,Open WhisperSystems团队一直与CyanogenMod合作开发TextSecure短信加密协议实现WhisperPush,现在WhisperPush正式整合到了CyanogenMod 10.2 nightly版中,CyanogenMod用户之间将能通过端对端加密发送短消息。

Open Whisper Systems团队在其博客上解释了WhisperPush的工作原理:如果一条准备发送的短信的收信方是另一位CyanogenMod或TextSecure用户,那么短信将会被透明的加密,通过数据通道作为推送信息发送到接收方的设备上,接收方的设备然后自动解密信息,作为正常的传入短信呈现在系统中。

CyanogenMod用户可以任意选择他们喜欢的短信应用,而他们与其他 CyanogenMod 或TextSecure 用户的通讯将会自动通过数据通道端对端加密,整个过程不需要用户干预。用户不会看到任何视觉上的变化,整个过程是完全透明的。WhisperPush的加密层是TextSecure V2协议,使用的加密算法是 Curve25519、AES-256和HmacSHA256;传输协议是TextSecure Push API(图片来自WhisperSystems)。

Vladimir Putin:
Hey man, I’m going to tag some polar bears tonigh. You in?

Edward Snowden:
Uhh,I think I’m good.

Vladimir Putin:
Suit yourself. I’m going to lead a bird migration this weekend if you’re interested.

Edward Snowden:
OK, I’ll think about that.
Dialogue of Snowden and Putin

12 月 082013
 

中国移动通信集团广东有限公司就IPv6升级改造及规模商用项目IDC网络改造工程所需的服务委托中捷通信有限公司进行公开招标,具有提供标的物能力的潜在投标人均可前来投标。

1、项目概况与招标范围:
1.1招标代理编号:ZJZB-2013-4152
1.2招标范围:广东公司IPv6升级改造及规模商用项目IDC网络改造工程。
1.3项目预算:约237万元人民币,项目资金已落实,由招标人自筹。
1.4项目需求:对全省已投产IDC机房进行IPV6的改造,详见技术规范书。
1.5项目完成时间:合同生效之日起60天内。 Continue reading »

12 月 072013
 

准备:一张visa或master的信用卡,在创建vps之前,要先设置好支付方式的。
创建教程:https://developers.google.com/compute/docs/quickstart

第一感觉:由于目前GCE只在美国中部和欧洲有机房,所以对大陆用户来说,速度那是一个慢啊。
还有,目前只支持ipv4,还没有ipv6的支持。

线路—-最快节点—-最慢节点—-平均响应
所有线路—-北京[联通] 217 毫秒—-江西[电信] 637 毫秒—-345 毫秒
电信—-安徽淮北[电信] 280 毫秒—-江西[电信] 637 毫秒—-424 毫秒
联通—-北京[联通] 217 毫秒—-黑龙江[联通] 341 毫秒—-266 毫秒

试了一下,删除了instance。希望以后能推出香港机房的哦,这样中国大陆地区的站长/网友们就有福了。

12 月 072013
 

The IPv6 Link-local address is derived form the MAC- or Ethernet hardware address in the following way;

 

Mac address: XX:XX:XX:XX:XX:XX
IPv6 Link local address: fe80::xyxx:xxff:fexx:xxxx

Where y = X XOR 2. Furthermore ‘ff:fe’ is inserted and ‘fe80::’ prepended.

‘y = X XOR 2’ means inverting the 2nd bit from the right; Continue reading »

12 月 042013
 

Google云平台官方博客宣布云计算平台Compute Engine正 式发布,移除了beta预览状态。在预览阶段,Compute Engine主要支持两大流行Linux发行版:Debian和Centos。

正式版扩大了操作系统支持范围,将支持所有开箱即用的Linux发行版,任 何用户想使用的内核或软件如Docker、FOG、xfs和aufs,加入了SUSE和Red Hat Enterprise Linux的初步支持,支持FreeBSD。

价格嘛,也比较亲民。 IP不收费,I/O不收费。

关键是google的服务安全可靠,让人用了放心。

最最关键的是:在Google上创建VPS,发布网站,不用备案!不用备案!

对中小站长来说,强制ICP备案,是国内云服务的硬伤,是很多人选择出走的原因。

Pricing

 

All machine types are charged a minimum of 10 minutes. For example, if you run your instance for 2 minutes, you will be billed for 10 minutes of usage. After 10 minutes, instances are charged in 1 minute increments, rounded up to the nearest minute. For example, an instance that lives for 11.25 minutes will be charged for 12 minutes of usage.

If you would like to discuss pricing for long-term commitments, please contact sales

Machine Type Pricing

Continue reading »