文章归档

Cherokee 真的比 Nginx 要牛?答案是一半一半!!

Cherokee  号称是世界上处理速度最快的httpd server 甚至比 要牛!
很多人都抱有怀疑的态度,网上也纷纷展开了不通类型的测试,而我也是其中一个。

但撇开速度性能江湖中谁是老大这一论,就 Cherokee  本身,是有它自己相当的亮点。

最令我欣赏的,是它自带的管理工具,也可以说是管理后台了,以网页方式做配置。在里头除了可以调配系统中各项数值,还能配置虚拟主机,缓存,系统状态…..

现在 Cherokee 连 1.0 版本都还没到,截止本文发表,最新版本是  Cherokee 0.99.14
可以说各方面的Bug都有相当的存在。所以在这个时候比性能,稳定…退一步说,给点面子吧…毕竟人家还没成熟。

我这么说,可并不是否认了 Cherokee 所号称的性能第一。的确,在用 apache 自带的 ab 压力测试成绩中看来。Cherokee 在并发量 100 的时候,确确实实是比 nginx 还要快!!!

再加上全功能相当讨人喜欢的管理后台,相比起 Nginx 单单只有一个 NginxStatus 我觉得 Cherokee 在这个点子的想法将会不同凡响。因为图形化的配置相当明了,省去了好多记忆配置语法的功夫。尤其对于新手来说,入门槛很低。

源码包解tar,编译,安装完成后。使用指定配置,端口等参数启用单独的管理后台进程,打开浏览器,输入账号自动生成的管理密码就能进入管理界面。如上图所示,可以直接启动以及关闭 Cherokee 的httpd 服务。
阅读更多 »

Share

十多年的黑莓

The year is 1999. Bill Clinton is the President of the United States, gas is 94 cents a gallon, Bondi Blue iMacs are a staple in dorm rooms across the country, and Microsoft is trying to bring the desktop Windows experience to the pocket, pushing its Palm-size PC concept (after Palm had quashed the original “Palm PC” branding) on a world still feeling jilted by the failures of the Apple Newton. 3Com subsidiary Palm and its heavyweight licensee Handspring have figured out something interesting about the still-nascent PDA market, though: people like simplicity. If an electronic organizer does what it says it’s going to do, keeps your information in sync with your PC, runs for forever and a day on a single set of batteries, and does it all with a minimum of fuss, people will buy. It’s an exciting, challenging, and rapidly-changing era in the mobile business.

阅读更多 »

Share

Linux 基本用户管理

下面这段介绍的比较简单也是一些常用的用户管理.如果你还不清楚的话那就接着下面看吧.因为都是英文的.我也就不想去译了.因为不用看提示你也知道这些命令是干吗用的.只是有时候自己给忘记了.所以在这里给自己做一个笔记.下面命令用绿色标

A comprehensive guide for basic user management of a box:

Create Users

Creating a user is rather simple. While logged in as root, type:

useradd username
 阅读更多 »
Share

VPS 架设VPN for pptp

看到Riku的blog上购买一台VPS.我也受不了那种激情的刺激.相关的购买都有介绍.可以去看看.我下面的配置是基于debian5.0的服务器上进行.

注:红色是输入代码.黄色是文档内容.

1.安装VPN服务端.

ptubuntu:/etc/#apt-get install
ptubuntu:/etc/ppp# cat /etc/pptpd.conf

2.编辑/etc/pptpd.conf

阅读更多 »

Share

contains a file system with errors, check forced

Log of fsck -C -R -A -a
Wed Nov 11 02:10:15 2009

fsck 1.41.3 (12-Oct-2008)
//hda1 contains a file system with errors, check forced.
/dev/hdb1: clean, 67705/15007744 files, 21606250/30015208 blocks
/dev/hdc5: clean, 44284/4874240 files, 972381/19482820 blocks
/dev/hdd1: clean, 161179/19546112 files, 33009612/39072080 blocks
Error reading block 1759566 (Attempt to read block from filesystem resulted in short read) while reading indirect blocks of inode 3866986.

/dev/hda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
/dev/hda2: clean, 182/4653056 files, 6559909/9301635 blocks
fsck died with exit status 4

Wed Nov 11 02:13:06 2009

在开机出现硬盘问题看来得去修复一下.不过先不急着修先把资料move出来才是硬道理.哈…..

相关的修复命令如下:

阅读更多 »

Share

如何快速搭建一个VPN(pptp)

这是一个简短的教程,目的是为了快速搭建一个可用的VPN,本文并不涉及有关VPN的正常使用内容。本简短教程基于以下硬件条件:

  1. 一台安装了Debian GNU/ 5.0的VPS。
    • 当然理论上所有可以安装pptpd包的*nix系统都可以作为主机,教程中安装方式是基于Debian的apt-get命令,其他发行版请自行对照使用。
  2. 这台VPS的物理位置是Fremont, CA。
    • 物理位置作为VPN这个应用本身并不重要,在这里提出只是多此一举。

安装服务器端软件

# apt-get install 

Debian的包管理是所有发行版里最好的,所以这条命令打完就安装完毕了我们的pptp服务器端程序。

配置IP地址范围
编辑/etc/pptpd.conf,在最后添加如下地址:

阅读更多 »

Share