现在位置: 首页 > 所有 2007年09月 文章
FreeBSD 系统帐号添加
1.添加用户
1)使用工具编辑密码文件
一个帐号必须添加到/etc/master.passwd文件,添加时该文件需要锁定。因此直接编辑该文件添加帐号时,应该使用chpass或者vipw
2)直接编辑密码...
Net::Ping
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"; ...
A quick explanation of FreeBSD release versions
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...
portsnap
Portsnap 說明 目前的 Ports System 有幾種方式更新:
CTM:將每次的 diff 檔壓縮後提供下載 (FTP/HTTP),透過 ctm 這隻程式 patch。
CVSup:透過 cvsup 掃瞄整個 Ports System,以 LastModifiedTime 及其他...
CPU Types
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)
收藏、分...
Windows 2003中打开DirectX加速
刚刚安装了Windows 2003,但是现在发现很多3D游戏都不能运行,只有一些传统2D平面游戏还能勉强运行,而且速度很慢。感觉上Windows 2003在运行PhotoShop时很快,但是为何不能运行3D游戏? ...
Web Server Comparasion
作为开源的web server apache2可谓占尽天时地利人和:不仅开源社区的人对他顶礼膜拜,乃至
其他平台的的web server也敬他三分。
但是到底在开源阵营中还有些什么出色的web server呢?
实线部分是处理处理1000个1kB大小的文件,Java实现的Acme.Serve和Jigsaw连测试都没有承受住,
就挂了。
虚线部分是使用很简单的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
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...
Proftpd MySQL [Step by Step]
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.操作数...

最新评论
测试
恭喜.不过这个blog不是很
设置成功了,很好用
听说谷歌准备开路了,谷歌开路
003和005是重复的,00
5 和2 一样的
第四篇看不到
谢谢finalbsd 第5