好記性不如爛筆頭
systat基本上是FreeBSD中最功能最多的系統(tǒng)監(jiān)視命令,顯示CPU、I/O、內(nèi)存、虛擬內(nèi)存、mbufs、磁盤IO、網(wǎng)絡(luò)狀態(tài)等信息等。
命令:
systat [-display] [refresh-interval]
其中 display 為我們所要顯示的信息項(xiàng)目,我們也可以在進(jìn)入 systat 后通過輸入“:display”變更顯示項(xiàng)目,refresh-interval 參數(shù)是需要多長(zhǎng)時(shí)間采樣一次系統(tǒng)數(shù)據(jù)輸出到屏幕,單位是秒。
實(shí)例:# systat -vmstat 1
命令解釋:顯示CPU、I/O、內(nèi)存、虛擬內(nèi)存、mbufs、磁盤IO、網(wǎng)絡(luò)狀態(tài)等信息。信息采樣刷新時(shí)間為1秒。
以下為可用的 display 參數(shù):
pigs 顯示目前系統(tǒng)中使用 CPU 最多的行程名稱。如果所有行程的 CPU 使用量未滿 100%,則多出來的部份顯示為 IDLE。
icmp 統(tǒng)計(jì)目前 ICMP 封包的進(jìn)出情形。
icmp6 顯示 IPv6 的 ICMP 封包進(jìn)出情形。
ip 顯示 IP 層的封包統(tǒng)計(jì)及 UDP 封包信息。
ip6 和 IP 一樣,但只顯示 IPv6 的封包。
tcp 顯示 TCP 的封包統(tǒng)計(jì)。
iostat 顯示 I/O 狀況統(tǒng)計(jì),并分類為各種模式顯示。
swap 顯示目前各個(gè)儲(chǔ)存空間上的虛擬內(nèi)存的使用情形。
mbufs 顯示 mbufs 被使用的狀態(tài)。
vmstat 這是我們最常用的顯示模式,它顯示了最多的信息,包含 I/O、虛擬內(nèi)存、mbufs、網(wǎng)絡(luò)等信息。
netstat 顯示網(wǎng)絡(luò)的使用情形。
ifstat 顯示各個(gè)網(wǎng)絡(luò)適配卡的使用情形。
==================================================
最快的FreeBSD升級(jí)辦法:
The freebsd-update(8) utility supports binary upgrades of i386 and amd64 systems running earlier FreeBSD releases. Systems running 7.0-RELEASE, 7.1-RELEASE, 7.2-BETA, 7.2-RC1, or 7.2-RC2 can upgrade as follows:
# freebsd-update upgrade -r 7.2-RELEASE
During this process, FreeBSD Update may ask the user to help by merging some configuration files or by confirming that the automatically performed merging was done correctly.
# freebsd-update install
The system must be rebooted with the newly installed kernel before continuing.
# shutdown -r now
After rebooting, freebsd-update needs to be run again to install the new userland components, and the system needs to be rebooted again:
# freebsd-update install
# shutdown -r now
Users of earlier FreeBSD releases (FreeBSD 6.x) can also use freebsd-update to upgrade to FreeBSD 7.2, but will be prompted to rebuild all third-party applications (e.g., anything installed from the ports tree) after the second invocation of "freebsd-update install", in order to handle differences in the system libraries between FreeBSD 6.x and FreeBSD 7.x.
==================================================
添加用戶組:
pw group add coder
添加新用戶:
adduser
posted on 2009-10-12 13:01
大日如來 閱讀(312)
評(píng)論(0) 編輯 收藏 引用 所屬分類:
雜記