sockstat [-46clu] [-p ports]
-4 Show AF_INET (IPv4) sockets.
-6 Show AF_INET6 (IPv6) sockets.
-c Show connected sockets.
-l Show listening sockets.
-p ports Only show Internet sockets if either the local or foreign
port number is on the specified list. The ports argument is
a comma-separated list of port numbers and ranges specified
as first and last port separated by a dash.
-u Show AF_LOCAL (UNIX) sockets.
“My unqualified host name unkown….”
ee /etc/rc.conf
将hostname修改如下:
hostname=”bsd.my.com”
reboot重启下系统
vncserver -geometry 800x600/etc/rc.d/sshd start|stop|restart
rc.conf /etc/netstart restart
安装软件之前先更新ports
1、修改镜像站点: #ee /etc/portsnap.conf 内容如下: SERVERNAME=portsnap.tw.FreeBSD.org 2、运行 Portsnap # portsnap fetch update 3、更新 Ports # portsnap fetch # portsnap extract
/etc/make.conf
FETCH_CMD=axel FETCH_BEFORE_ARGS= -n 10 -a FETCH_AFTER_ARGS= DISABLE_SIZE=yes MASTER_SITE_OVERRIDE?= http://ports.hshh.org/${DIST_SUBDIR}/ http://ports.cn.freebsd.org/${DIST_SUBDIR}/ ftp://ftp.freeBSDchina.org/pub/FreeBSD/ports/distfiles/${DIST_SUBDIR}/ MASTER_SITE_OVERRIDE?=${MASTER_SITE_BACKUP}