freebsd³£ÓÃÖ¸Áî´óÈ« freebsd³£ÓÃÃüÁî

·¢²¼Ê±¼ä£º2020-04-16±à¼­£º½Å±¾Ñ§ÌÃ
±¾ÎĽéÉÜÁËfreebsdÖÐһЩ³£ÓÃÖ¸Áfreebsd³£ÓÃÃüÁî´óÈ«£¬FreeBSD×÷ΪBSDµÄÖ÷Òª·ÖÖ§Ö®Ò»£¬Êܵ½ºÜ¶àÅóÓѵÄÖÓ°®£¬ÐèÒªµÄÅóÓѲο¼Ï¡£

freebsd³£ÓÃÖ¸Áî´óÈ«

1¡¢²é¿´ CPU£º
 

sysctlhw.modelhw.ncpu
dmesg|grep"CPU:"

2¡¢²é¿´Äڴ棺
 

dmesg|grep "real memory"|linuxjishu/13830.html target=_blank class=infotextkey>awk -F '[()]' '{print$2,$4,$7,$8}'
²é¿´ swap£º
top|grep"Swap:"|awk'{print$1,$2}'

3¡¢²é¿´Ó²ÅÌ£º
 

diskinfo©vt/dev/ad0
disklable/dev/ad0s2#²é¿´·ÖÇøÐÅÏ¢
¿´Ó²ÅÌ´óС£º
dmesg|grep"sector"|awk'{print$1,$2}'
diskinfo©v/dev/da0|grep"inbytes"|awk©F'[()]''{print$2}'

4¡¢²é¿´·þÎñÆ÷Æ·ÅÆ£º
 

dmesg|grep"ACPIAPIC"

5¡¢¹ÒÔØÎļþϵͳ£º
 

fat32£ºmount_msdosfs©Lzh_CN.eucCN/dev/ad0s1/mnt
ntfs£ºmount_ntfs©CeucCn/dev/ad0s1/mnt
cdrom£ºmount_cd9660/dev/acd0/mnt
×¢£ºntfs ÔÚ FreeBSD ÖÐÖ»ÄܶÁÎÞ·¨Ð´Èë

6¡¢¸øÎļþÌí¼Ó»ò½ûÓÃϵͳ½ûɾ±êÖ¾£¨Ä¿Â¼²»ÊÊÓã©£º
 

chflagssunlinkfile1
chflagsnosunlinkfile1

7¡¢³õʼ»¯´ÅÅÌ:
 

fdisk©BIad1

8¡¢½¨Á¢ FreeBSD ·ÖÇø£º
 

disklabel©B©w©rad1s1auto

9¡¢½¨Á¢Âß¼­·ÖÇø£º
 

disklabel©ead1s1

10¡¢¸ñʽ»¯·ÖÇø£¬´´½¨Îļþϵͳ£º
 

newfs/dev/ad1s1e

11¡¢ÏÔʾ PCI Ó²¼þÐÅÏ¢£º
 

pciconf©lv

12¡¢¿ªÆô Linux¶þ½øÖƼæÈÝÖ§³Ö£¨ÆôÓÃÕâÒ»¹¦ÄÜ×î¼òµ¥µÄ·½·¨ÊÇÔØÈëlinuxKLDÄ£¿é£©£º
kldloadlinux
Èà Linux ¼æÈÝÔÚϵͳ³õʼ»¯Ê±×Ô¶¯ÆôÓã¬ÔÚ/etc/rc.conf ÖÐÖÐÈ룺
 

linux_enable="YES"

13¡¢¼ì²é KLD Ä£¿éÊÇ·ñ¼ÓÔØ£º
 

kldstat

14¡¢ÔÚÄÚºËÖо²Ì¬Á´½Ó½ø Linux ¶þ½øÖƼæÈÝģʽ£¬ÔÚÄÚºËÅäÖÃÎļþÀïÃæ¼ÓÈ룺
 

optionsCOMPAT_LINUX

15¡¢ÉèÖÃÍø¿¨ em0 µÄ IP µØÖ·£º
 

ifconfigem0inet192.0.2.10netmask255.255.255.0

16¡¢¸øÍø¿¨ em0 ÉèÖÃÌí¼ÓÒ»¸ö±ðÃû IP µØÖ·£º
 

ifconfigem0inet192.168.51.45/24add

17¡¢É¾³ýÍø¿¨µÄ±ðÃû IP µØÖ·£º
 

ifconfigem0inet192.168.51.45©alias

18¡¢ÉèÖÃÍø¿¨ em0 µÄ¹¤×÷ģʽΪ 100baseTX ȫ˫ʽ£º
 

ifconfigem0media100baseTXmediaoptfull©duplex

19¡¢µ±/usr/local/etc/rc.d ϵĽű¾ÎÞ·¨×Ô¶¯Æô¶¯Ê±£¬¿É³¢ÊÔÔÚ/etc/rc.conf ÖмÓÈëÒ»ÐУº
 

local_startup="/usr/local/etc/rc.d"

20¡¢ÔÚ ports ÖÐÑ°ÕÒÐèÒªµÄÈí¼þ£¬½øÈë/usr/ports Ŀ¼ִÐУº
 

makesearchname=lsof»òecho/usr/ports/*/*lsof*»òwhereislsof
makesearchkey=¹Ø¼ü×Ö#ÔÚÃû×Ö¡¢×¢ÊÍ¡¢ÃèÊöÖÐËÑË÷¹Ø¼ü×Ö

ÉÏһƪ£ºFreebsd8.4 °²×°jdk»·¾³
ÏÂһƪ£º·µ»ØÁбí