阳海艳(基础架构管理部) wrote:
> Yeah.
> 
> We doubt there was another process was using port 25. But we didn't know how 
> to check it.
> And there is another clue. We find hundreds of exim are running, but failed 
> to kill them.
> 
> So, if we find out the very process used port25, kill it directly?

Use
* fuser program
or
* nestat if it supports --program option.

fuser has an option to kill all selected processes.

# list all processes using port 25
fuser -uv 25/tcp
# list and kill all processes using port 25
fuser -kuv 25/tcp
# list and kill all processes using port 25 with signal 9 (non "ignorable")
fuser -kuv -9 25/tcp

-- 
[pl>en: Andrew] Andrzej Adam Filip : [EMAIL PROTECTED] : [EMAIL PROTECTED]
Home site: http://anfi.homeunix.net/

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to