Sign up

This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.

Một số options cần thiết cho kernel

options         TCP_DROP_SYNFIN  # Ngăn chặn Host identification dùng nmap

options         TCP_RESTRICT_RST        #restrict emission of TCP RST

options         ACCEPT_FILTER_DATA # Tăng tốc cho Apache
options         ACCEPT_FILTER_HTTP # Tăng tốc cho Apache

options         NMBCLUSTERS=16384 # Số lượng mbuf clusters tối đa, cái này 6.x không hỗ trợ
options         MAXFILES=16384 # Xem thử giới hạn hiện tại bằng lệnh #sysctl -a|grep maxfiles
options         QUOTA           # Kích hoạt Quota

maxusers      256 # Số lượng users cùng lúc tối đa

ident           MYSERVER # Định tên cho kernel

options ICMP_BANDLIM # Chống DoS, 6.x không hỗ trợ

# Kích hoạt IPFW. Thêm các dòng này vào /etc/rc.conf. Các options này chỉ cần cho 4.x. 5.x trở lên thì không cần.
# firewall_enable="YES"
# firewall_script="/etc/rc.firewall"
# firewall_type="simple" # there is also none, open and some others read the /etc/rc.firewall # file more information
# firewall_quiet="NO" This will enable more verbose logging
options IPDIVERT # This diverts the packets
options IPFIREWALL # Added for natd support
options IPFIREWALL_VERBOSE # Added for logging
options IPFIREWALL_VERBOSE_LIMIT=100 # Used to stop log flooding


Ngoài ra có thể bỏ bớt những driver, device không cần thiết để kernel thiệt là gọn nhẹ.

Viết bởi freebsd, 02 July 2007 10:45 | Kernel | Góp ý (1) | Đường dẫn cố định | Trackbacks (0) | Bản inBản in

góp ý
| freebsd | 29/04/2008 05:19 | Trả lời

options SMP #Dùng cho các server nhiều CPU

Thêm góp ý
Thêm góp ý
(http://tenban.vnweblogs.com)
 authimage (Hãy nhập dãy số này vào ô bên cạnh)
Powered by vnWeblogs
Valid XHTML 1.0 Strict - Valid CSS