FreeBSD

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(Storage)
第1行: 第1行:
 
[[Image:Freebsd.png|right]]
 
[[Image:Freebsd.png|right]]
 
+
FreeBSD 是一种先进的操作系统,它支持 x86 兼容(包括 Pentium® 和 Athlon™)、amd64 兼容(包括 Opteron™、Athlon™64 和 EM64T)、 ARM、IA-64、PC-98以及 UltraSPARC® 架构的计算机。FreeBSD 源于 BSD ──美国加州大学伯克利分校开发 UNIX® 版本它由来自世界各地的 志愿者 开发和维护。 FreeBSD 为不同架构的计算机系统提供了不同程度的支持,
 +
==FreeBSD 8==
 +
==FreeBSD 7==
 
==常用命令==
 
==常用命令==
 
  /usr/sbin/sysinstall
 
  /usr/sbin/sysinstall

2010年8月5日 (四) 05:41的版本

Freebsd.png

FreeBSD 是一种先进的操作系统,它支持 x86 兼容(包括 Pentium® 和 Athlon™)、amd64 兼容(包括 Opteron™、Athlon™64 和 EM64T)、 ARM、IA-64、PC-98以及 UltraSPARC® 架构的计算机。FreeBSD 源于 BSD ──美国加州大学伯克利分校开发 UNIX® 版本它由来自世界各地的 志愿者 开发和维护。 FreeBSD 为不同架构的计算机系统提供了不同程度的支持,

目录

FreeBSD 8

FreeBSD 7

常用命令

/usr/sbin/sysinstall

install rsync

fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/rsync.tbz
#pkg_add rsync.tbz
#pkg_add -r rsync
#pkg_info rsync-2.6.6
#pkg_delete rsync-2.6.6
or
cd /usr/ports/net/rsync
#make
#make install
Freebsd-server.png

Network Interface

  • dc0: The first Ethernet interface
  • dc1: The second Ethernet interface
  • lp0: The parallel port interface
  • lo0: The loopback device
  • tun0: The tunnel device used by ppp

清理系统垃圾

# cd /usr/src && make clean && make delete-old

IP FireWall

Step1:准备工作

#cd /sys/i386/conf
#cp GENERIC ./kernel_IPFW

Step2:内核规则

vim kernel_IPFW 在该文件的末尾加入以下四行内容:
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=10
options IPFIREWALL_DEFAULT_TO_ACCEPT

Step3:编译系统内核

#/usr/sbin/config kernel_IPFW
#cd ../compile/kernel_IPFW
#make
#make install

Step4:加载启动项

编辑/etc/rc.conf, 加入
firewall_enable=`YES`
firewall_script=`/etc/rc.firewall`
firewall_type=`/etc/ipfw.conf`
firewall_quiet=`NO`
firewall_logging_enable=`YES`
编辑/etc/syslog.conf文件, 加入
!ipfw*.* /var/log/ipfw.log

以上步骤完成后重启电脑

#ipfw show
#ipfw add 10001 deny all from 218.249.20.135 to any 或保存再/etc/rc.firewall文件里
sh /etc/rc.firewall

参考: 小规模DDoS(拒绝服务)用Freebsd+IPFW搞定 http://bbs.51cto.com/archiver/tid-5376.html

sftp-server

/usr/libexec/sftp-server

Java

cd /usr/ports/java/jdk15

make install clean

or get Java JDK and JRE 6.0 binaries for FreeBSD 6.x and FreeBSD 7.x on the i386 and amd64 architectures from

http://www.freebsdfoundation.org/downloads/java.shtml
vi .cshrc
JAVA_HOME=/usr/local/diablo-jdk1.6.0
ANT_HOME=/usr/local/apache-ant-1.7.1
PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH
export JAVA_HOME ANT_HOME PATH

GlassFish

./asadmin start-domain domain1
/libexec/ld-elf.so.1: /usr/local/diablo-jdk1.6.0/jre/lib/i386/libnet.so: Undefined symbol "gethostbyname_r"

BSD发行版

安装指南

Storage

FreeBSD based Hosting

相关链接

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱