摘要: Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [/usr/local/squid] --exec-prefix=EPREFIX install architect... 阅读全文
posted @ 2010-04-09 11:03 刘光明 阅读(1557) 评论(0) 推荐(0) 编辑
摘要: Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [/usr/local] --exec-prefix=EPREFIX install architecture-depen... 阅读全文
posted @ 2010-04-09 09:38 刘光明 阅读(1655) 评论(0) 推荐(0) 编辑
摘要: 昨天,我的放肆地带顺利迁到IX,庆祝一下!为什么迁出呢,一是公司网络恐怖,二是国内网络恐怖。以后有时间也把域名迁到国外来,呵呵。 阅读全文
posted @ 2010-03-27 10:32 刘光明 阅读(82) 评论(0) 推荐(0) 编辑
摘要: spawn-fcgi启动脚本 阅读全文
posted @ 2010-03-23 11:45 刘光明 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 因公司网络实名制,而无Linux客户端,只能采用代理方式上网和更新了。 yum: edit /etc/yum.conf add follow: # The proxy server - proxy server:port number proxy=http://mycache.mydomain.com:3128 # The account details for... 阅读全文
posted @ 2010-02-21 12:32 刘光明 阅读(5715) 评论(0) 推荐(0) 编辑
摘要: FreeBSD在安装ports时缩短下载时间 方法A: 使用代理。 在/etc/make.conf中设置: FETCH_ENV= "HTTP_PROXY=IP[:端口]" 如果需要,在FETCH_ENV值后面加入空格, HTTP_PROXY_AUTH=basic:*:user:password 方法B: 在其它机器上fetch make fetch... 阅读全文
posted @ 2010-02-07 12:38 刘光明 阅读(228) 评论(0) 推荐(0) 编辑
摘要: FreeBSD对网卡的支持是在系统内核中实现的,要使一个网卡工作正常,就需要系统内核拥有这个网卡的驱动,并配置好它占用的硬件资源。为了保证网卡被正确的检测到,应该使用dmesg来查看系统的检测信息。 使用sysinstall可以完成最基本的网络配置,可以配置主机名、域名、IP地址、缺省网关、DNS服务器等。配置的这些内容被写入系统的 配置文件rc.conf中保留下来。当系统安装完成之后,在s... 阅读全文
posted @ 2010-02-07 12:34 刘光明 阅读(677) 评论(0) 推荐(0) 编辑
摘要: 同步方法对比 更新Ports Tree的方法有很多,例如匿名CVS、CVSup和CTM。 CVSup 是采用pull的方式来更新源码的。以CVSup为例,当用户(或cron)运行CVSup程序时,它会和远程的CVSupd服务器取得联系,然后更新文件。用户取回的更新文件是最新的,而且随时可以拿到这些文件。用户还可以限制更新动作,只更新自己感兴趣的某个文件或目录。更新动作由服务端根据用户的设定完成... 阅读全文
posted @ 2010-02-07 12:32 刘光明 阅读(160) 评论(0) 推荐(0) 编辑
摘要: rpm -ivh gcc-4.3.2-7.x86_64.rpm binutils-2.18.50.0.9-7.fc10.x86_64.rpm glibc-devel-2.9-2.x86_64.rpm libgomp-4.3.2-7.x86_64.rpm glibc-headers-2.9-2.x86_64.rpm kernel-headers-2.6.27.5-117.fc10.x86_64.rp... 阅读全文
posted @ 2010-02-07 12:00 刘光明 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 检查net.ipv4.tcp_tw当前值,将当前的值更改为1分钟: vi /etc/sysctl.conf # 控制开启LINUX的IP转发(0,1) net.ipv4.ip_forward = 0 # 控制开启来源理由验证(0,1) net.ipv4.conf.default... 阅读全文
posted @ 2010-02-07 11:53 刘光明 阅读(1269) 评论(0) 推荐(0) 编辑