www.sanotes.net
2010年03月10日

现在位置: 首页 > 所有 2007年09月 文章

FreeBSD 系统帐号添加

2007年09月18日 添加评论 1118次浏览

1.添加用户
1)使用工具编辑密码文件
一个帐号必须添加到/etc/master.passwd文件,添加时该文件需要锁定。因此直接编辑该文件添加帐号时,应该使用chpass或者vipw
2)直接编辑密码...

分类:FreeBSD | 阅读全文

Net::Ping

2007年09月18日 添加评论 1117次浏览

use Net::Ping;
$warn = 30;
$check_ip = 'www.163.com';
&check_ping($check_ip);
sub check_ping{
        $host           = shift;
        $ex_addr        = "192.168.1.2";           ...

分类:Perl | 阅读全文

A quick explanation of FreeBSD release versions

2007年09月18日 添加评论 1117次浏览

A quick explanation of FreeBSD release versions
With the exception of this introduction, this page is not my own.
The question frequently comes up on both mailing lists and forums asking for clarification about the differences between CURR...

分类:FreeBSD | 阅读全文

New to FreeBSD 6.x

2007年09月17日 添加评论 1116次浏览

portsnap
csup
freebsd-update

收藏、分享这篇文章!

...
分类:FreeBSD | 阅读全文

portsnap

2007年09月17日 添加评论 1109次浏览

Portsnap 說明 目前的 Ports System 有幾種方式更新:

CTM:將每次的 diff 檔壓縮後提供下載 (FTP/HTTP),透過 ctm 這隻程式 patch。
CVSup:透過 cvsup 掃瞄整個 Ports System,以 LastModifiedTime 及其他...

分类:FreeBSD | 阅读全文

CPU Types

2007年09月17日 添加评论 1100次浏览

http://gentoo-wiki.com/Safe_Cflags
/usr/share/mk/bsd.cpu.mk
/usr/share/examples/etc/make.conf
%dmesg | grep -m 1 CPU
CPU: Intel(R) Core(TM)2 CPU         T5500  @ 1.66GHz (1664.37-MHz 686-class CPU)

收藏、分...

分类:FreeBSD | 阅读全文

Windows 2003中打开DirectX加速

2007年09月16日 添加评论 1124次浏览

  刚刚安装了Windows 2003,但是现在发现很多3D游戏都不能运行,只有一些传统2D平面游戏还能勉强运行,而且速度很慢。感觉上Windows 2003在运行PhotoShop时很快,但是为何不能运行3D游戏? ...

分类:Windows | 阅读全文

Web Server Comparasion

2007年09月15日 添加评论 1112次浏览

作为开源的web server apache2可谓占尽天时地利人和:不仅开源社区的人对他顶礼膜拜,乃至
其他平台的的web server也敬他三分。
但是到底在开源阵营中还有些什么出色的web server呢?

... serverperf.gif

实线部分是处理处理1000个1kB大小的文件,Java实现的Acme.Serve和Jigsaw连测试都没有承受住,

就挂了。  :P

虚线部分是使用很简单的CGI hello world" C program.作为CGI测试的。

在这份benchmark中,出现了另外一个BSD license的web server:Mathopd 优秀的CGI性能简直让人大跌眼镜

但是不知道真实的生产环境性能如何!

说道静态文件服务,不得不提一下TUX

虽然没有具体的数据说明TUX的性能个到底如何,但是业界广泛认为:作为运行于内核空间的TUX,由于少了

content切换的开销,相比其他用户空间的web server比如apache反应快速的多,另外Red Hat给他的学名儿

叫:Red Hat Content Accelerator 。所以提供image之类的服务是在适合不过的了,但是也正是因为这个最大

的优势限制了他在其他平台的使用,是一个linux dependent的web server。同时,运行于内核空间的他,

一旦crash,后果可想而知。

更多的web server list可以参考这儿:http://en.wikipedia.org/wiki/Comparison_of_web_servers

如要在首页显示图片可以用此替换上句-->

Nginx on FreeBSD

2007年09月15日 添加评论 1139次浏览

QuickStart:
cd /usr/ports/www/nginx;make install clean
Notes: Will install nginx and prce automatically.
$nginx
equative to /usr/local/sbin/nginx -c /usr/local/etc/nginx/nginx.conf
Notes:Default DocumentRoot:/usr/local/ww...

分类:Nginx | 阅读全文

Proftpd MySQL [Step by Step]

2007年09月14日 添加评论 150次浏览

Link from : http://www.5ilinux.com/blog/archives/000091.html
1.首先我们建立相应的用户和用户组
groupadd -g 5500 ftpgroup
adduser -u 5500 -s /bin/false -d /bin/null -c "proftpd user" -g ftpgroup ftpuser
2.操作数...

分类:FreeBSD | 阅读全文