| | 1. Solaris 10及一些系统补丁的安装日志一般可以在/var/sadm/install_data目录和/var/sadm/install目录中找到。
2. 用户登录日志可以使用last命令列出
3. a) netstat -na | grep -i listen通常可以看到目前系统侦听的端口号
b) netstat -f inet 和 netstat -f inet6可以看到目前所建立的连接
c) 要想知道某个端口被那个进程所使用,可以使用下面的方面得知:
|
-bash-3.00# cd /proc
-bash-3.00# for i in *
> do
> echo ------ process $i ---------
> pfiles $i | grep -i "port: 32805"
> done
------ process 0 ---------
------ process 1 ---------
------ process 1025 ---------
------ process 1035 ---------
------ process 1037 ---------
------ process 1038 ---------
------ process 1039 ---------
------ process 1040 ---------
------ process 1041 ---------
------ process 1166 ---------
------ process 123 ---------
------ process 12535 ---------
------ process 12536 ---------
------ process 134 ---------
------ process 141 ---------
------ process 142 ---------
------ process 148 ---------
------ process 164 ---------
------ process 1679 ---------
------ process 1807 ---------
------ process 1817 ---------
------ process 18459 ---------
------ process 18462 ---------
------ process 18464 ---------
------ process 18612 ---------
------ process 18613 ---------
------ process 18615 ---------
------ process 18639 ---------
------ process 18653 ---------
------ process 18680 ---------
------ process 2 ---------
------ process 226 ---------
------ process 290 ---------
------ process 3 ---------
------ process 302 ---------
------ process 303 ---------
------ process 311 ---------
------ process 334 ---------
------ process 372 ---------
------ process 376 ---------
------ process 397 ---------
------ process 398 ---------
------ process 400 ---------
------ process 416 ---------
------ process 418 ---------
------ process 432 ---------
------ process 434 ---------
------ process 435 ---------
------ process 436 ---------
------ process 442 ---------
------ process 443 ---------
------ process 458 ---------
------ process 463 ---------
------ process 464 ---------
------ process 465 ---------
------ process 564 ---------
------ process 565 ---------
------ process 566 ---------
------ process 598 ---------
------ process 599 ---------
------ process 613 ---------
------ process 619 ---------
------ process 631 ---------
------ process 633 ---------
------ process 634 ---------
------ process 637 ---------
------ process 651 ---------
------ process 653 ---------
------ process 666 ---------
------ process 686 ---------
------ process 689 ---------
------ process 6929 ---------
------ process 6932 ---------
------ process 6934 ---------
------ process 6958 ---------
------ process 6959 ---------
------ process 6960 ---------
------ process 7 ---------
------ process 763 ---------
------ process 834 ---------
------ process 836 ---------
------ process 837 ---------
------ process 838 ---------
------ process 839 ---------
------ process 840 ---------
------ process 9 ---------
------ process 990 ---------
------ process 991 ---------
------ process 992 ---------
peername: AF_INET 127.0.0.1 port: 32805
------ process 993 ---------
------ process 994 ---------
sockname: AF_INET 127.0.0.1 port: 32805
从以上的结果可以得知,端口32805被进程992和994所使用。可以进一步使用pfiles
来确认。
找不到需要的信息?Google搜索,精确定位你的需求: |
【需要更多资料?欢迎访问Google为您精心推荐的网站~】