当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 您是否遇到过网络地址和端口号被占用的情况?如果能找到占用该
 

 

    摘要: #!/bin/ksh #----------------------------------------------------------------------- # program: checkalertlog.ksh # usage: checkalertlog.ksh # function: checks oracle alert logs and pages in case of......
 ·unix--教程--7    »显示摘要«
    摘要: ○ 第八节 管道(pipe)及输出入重导(redirection) ○ □ unix 把输出入设备亦视为档案,这些设备可能是键盘,萤幕,印表机,也可以 是磁盘档,以下是 unix 的标准输出入设备∶ ⊙ 标准输入(stdin) 平时为键盘,可用 < 转向。 例∶mail b82000 < myfile 可将 myfile 档案寄给 b82000 ⊙ 标准输......


解决网络地址和端口被占用的解决方法

您是否遇到过网络地址与端口号被占用的情况?如果能找到占用该地址与端口号的进程并终止它,从而释放该网络地址与端口号,问题岂不就得到解决了吗? 有关具体的操作,请参阅以下 【程序编程相关:实战总结:向ServiceGuard O

【推荐阅读:哪位高手能提供HPUX核心参数的说明?

q: how do i find out what process is associated with a socket connection (a network address and port number)? 【扩展信息:【推荐/转】top监控命令在HP-UX上

------------------------------------------------------------------

there are several ways to accomplish this (lsof, pfiles, crash): 

a1. use lsof  which is available on the net from several locations:

  ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/lsof.tar.z

  http://www.sunfreeware.com/programlistsparc7.html#lsof64

  http://www.sunfreeware.com/programlistsparc8.html#lsof

  http://sunsite.doc.ic.ac.uk/sun/solaris/freeware

lsof examples:

ex: netstat -a shows a connection between hodware port 36169 to ravin port 23

lsof shows the pid owner of the telnet connection.

example1# netstat -a

 ...

 hodware.36169     ravin.telnet  8760      0  8760      0 established


...   下一页
 ·unix--教程--4    »显示摘要«
    摘要: ○ 第五节 处理程序(process)的控制 ○ □ 指令简介 ⊙ ps 显示 process 的状态(process status) pid 栏∶即 processid,一个正在执行的程式在系统中的唯一编号 owner栏∶该 process 的拥有者 ⊙ kill 停止处理程序,通常先用 ps 命令查得 process id,再杀之 kill -9 立即停止一个 p......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE