好記性不如爛筆頭
systat基本上是FreeBSD中最功能最多的系統監視命令,顯示CPU、I/O、內存、虛擬內存、mbufs、磁盤IO、網絡狀態等信息等。
命令:
systat [-display] [refresh-interval]
其中 display 為我們所要顯示的信息項目,我們也可以在進入 systat 后通過輸入“:display”變更顯示項目,refresh-interval 參數是需要多長時間采樣一次系統數據輸出到屏幕,單位是秒。
實例:# systat -vmstat 1
命令解釋:顯示CPU、I/O、內存、虛擬內存、mbufs、磁盤IO、網絡狀態等信息。信息采樣刷新時間為1秒。
以下為可用的 display 參數:
pigs 顯示目前系統中使用 CPU 最多的行程名稱。如果所有行程的 CPU 使用量未滿 100%,則多出來的部份顯示為 IDLE。
icmp 統計目前 ICMP 封包的進出情形。
icmp6 顯示 IPv6 的 ICMP 封包進出情形。
ip 顯示 IP 層的封包統計及 UDP 封包信息。
ip6 和 IP 一樣,但只顯示 IPv6 的封包。
tcp 顯示 TCP 的封包統計。
iostat 顯示 I/O 狀況統計,并分類為各種模式顯示。
swap 顯示目前各個儲存空間上的虛擬內存的使用情形。
mbufs 顯示 mbufs 被使用的狀態。
vmstat 這是我們最常用的顯示模式,它顯示了最多的信息,包含 I/O、虛擬內存、mbufs、網絡等信息。
netstat 顯示網絡的使用情形。
ifstat 顯示各個網絡適配卡的使用情形。
==================================================
最快的FreeBSD升級辦法:
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)
評論(0) 編輯 收藏 引用 所屬分類:
雜記