文章列表
 
您正在查看 "Freebsd" 分类下的文章

2010-05-13 10:03

FreeBSD安装很方便

# cd /usr/ports/net/vnstat/ && make install clean

# vnstat
Error: Unable to open database directory "/var/db/vnstat".
Make sure it exists and is at least read enabled for current user.
Exiting...

# mkdir /var/db/vnstat

# vnstat -u -i igb0
Error: Unable to read database "/var/db/vnstat/igb0".
Info: -> A new database has been created.

igb是网卡设备名

# vnstat
Databas

 
2009-11-24 9:37

国内魔兽一直不能正式上线,同事都已经转向台服。但目前国内到台服线路不畅,一到晚上就卡。

手上正好有几台香港服务器,应同事要求,架个socks代理,从香港联过去。

从使用效果来看,引同事一句话:速度不是很快,但胜在稳定。

安装

cd /usr/ports/net/socks5 && make install clean

vi /usr/local/etc/socks5.conf (文件不存在需要手工创建)
auth - - u
permit u - - - - -
set SOCKS5_NOIDENT
set SOCKS5_V4SUPPORT
set SOCKS5_PWDFILE /usr/local/etc/sock

 
2009-11-06 19:14

制作CA证书

OS: Freebsd 6.4-RELEASE-p6
ports install openssl: OpenSSL 0.9.7e-p1 25 Oct 2004

cd /data/ca

# 生成CA key passwd:12345
openssl genrsa -des3 -out rootcakey.pem 2048


# 生成CA证书
openssl req -new -key rootcakey.pem -out rootcareq.pem

Enter pass phrase for rootca.key: (passwd:12345)
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is w

 
2009-05-04 17:18

090504 6:51:05 [ERROR] /usr/local/mysql/libexec/mysqld: Out of memory (Needed 1676960 bytes)
090504 6:51:05 [ERROR] /usr/local/mysql/libexec/mysqld: Out of memory (Needed 1676960 bytes)
090504 6:51:05 [ERROR] /usr/local/mysql/libexec/mysqld: Out of memory (Needed 1676960 bytes)
090504 6:51:05 [ERROR] /usr/local/mysql/libexec/mysqld: Out of memory (Needed 1676960 bytes)
090504 6:51:05 [ERROR] /usr/local/mysql/libexec/mysqld: Out

 
2009-03-23 12:58

安装环境

FreeBSD 6.4-RELEASE-p3 ,
apr-0.9.17
apr-util-0.9.15
mod_perl-2.0.4

# perl Makefile.PL MP_APXS=/var/www/bin/apxs MP_APR_CONFIG=/usr/local/apr/bin/apr-config && make
错误如下:
cp lib/ModPerl/PerlRunPrefork.pm ../blib/lib/ModPerl/PerlRunPrefork.pm
cp lib/ModPerl/Registry.pm ../blib/lib/ModPerl/Registry.pm
cp lib/ModPerl/RegistryCooker.pm ../blib/lib/ModPerl/RegistryCooker.pm
cp lib/ModPerl/PerlRun.pm ../bli

 
2009-03-20 10:41

[ NTPD 服务设置 ]
FreeBSD 自带NTPD服务

1. 配置/etc/ntp.conf,网上很多用的是日本的NTP服务器,其实国内就有。如国内授时中心服务器210.72.145.44,就可以。

# cat /etc/ntp.conf
server   210.72.145.44 prefer
server clepsydra.dec.com prefer
server pool.ntp.org prefer
server 202.106.199.35

driftfile /var/db/ntp.drift

statistics cryptostats loopstats peerstats
statsdir /var/log/ntpdstatus/
filegen peerstats file peerstats type

 
2009-03-09 15:10

tr -d \\r < dosfile > newfile

 
2009-02-06 9:43

cd /usr/src
make buildworld
make buildkernel KERNCONF=MyKernel_2
make installkernel KERNCONF=MyKernel_2
reboot

fsck -p
mount -u /
mount -a -t ufs
swapon -a
cd /usr/src
mergemaster -P
make installworld
make delete-old
mergemaster
reboot

make delete-old-libs

 
2007-11-01 11:34
GPL 是 General Public License 的缩写,而 GPL 的重点在于 OpenSource ,也就是开放原始程序代码。 GPL不适用于复制、发布与修改以外的行为;这些行为不在本授权范围内。执行本程序的行为并不受限制,而本程序的输出只有在其內容构成基于本程序所生的著作(而非只是因为执行本程序所造成)时,始受本授权拘束。至于程序的输出內容是否构成本程序的衍生著作,体用途。 因此使用GPL下的Linux,MySQL并没有任何问题。

BSD License 相较于 GPL 的严格,BSD License 就宽松许多了,一样是需要附上 license 的宣告文件,却不需要提
 
2007-06-29 10:08

strace 命令是一种强大的工具,它能够显示所有由用户空间程序发出的系统调用。
  strace 显示这些调用的参数并返回符号形式的值。strace 从内核接收信息,而且不需要以任何特殊的方式来构建内核。
  下面记录几个常用 option .
  1 -f -F选项告诉strace同时跟踪fork和vfork出来的进程
  2 -o xxx.txt 输出到某个文件。
  3 -e execve 只记录 execve 这类系统调用
  —————————————————
  进程无法启动,软件运行速度突然变慢,程序的"SegmentFault"等等都是让每个U

 
   
 
 
文章分类
 
 
 
 
 
 
 
 
Php(1)
 
 
 
 
 
Ids(0)
 
Bind(2)
 
   
 
文章存档
 
     
 
最新文章评论
  

[表情]
 

正好遇上这个问题 试试先
 

好东西
 

高手:多指点!
 

学习来了 呵呵~~加油啊
   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu