根据端口找配置文件、关服务

[root@www ~]# netstat -tnlp | grep 111
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
990/rpcbind
tcp 0 0 :::111 :::* LISTEN
990/rpcbind
# 原来用的是 rpcbind 这个服务程序!
[root@www ~]# which rpcbind
/sbin/rpcbind
# 找到档案后,再以 rpm 处理处理
[root@www ~]# rpm -qf /sbin/rpcbind
rpcbind-0.2.0-8.el6.x86_64
# 找到了!就是这个软件!所以将他关闭的方法可能就是:
[root@www ~]# rpm -qc rpcbind | grep init
/etc/rc.d/init.d/rpcbind
[root@www ~]# /etc/init.d/rpcbind stop




[root@VM_210_145_centos ~]# whois
jwhois version 4.0, Copyright (C) 1999-2007  Free Software Foundation, Inc.
This program is free software with ABSOLUTELY NO WARRANTY; you may
redistribute it under the terms of the GNU General Public License.


Usage: jwhois [OPTIONS] [QUERY]
  --version                  display version number and patch level
  --help                     display this help
  -v, --verbose              verbose debug output
  -c FILE, --config=FILE     use FILE as configuration file
  -h HOST, --host=HOST       explicitly query HOST
  -n, --no-redirect          disable content redirection
  -s, --no-whoisservers      disable whois-servers.net service support
  -a, --raw                  disable reformatting of the query
  -i, --display-redirections display all redirects instead of hiding them
  -p PORT, --port=PORT       use port number PORT (in conjunction with HOST)
  -r, --rwhois               force an rwhois query to be made
  --rwhois-display=DISPLAY   sets the display option in rwhois queries
  --rwhois-limit=LIMIT       sets the maximum number of matches to return




Report bugs to [email protected]
[root@VM_210_145_centos ~]# which whois
/usr/bin/whois
[root@VM_210_145_centos ~]# rpm -qf /usr/bin/whois
jwhois-4.0-19.el6.x86_64
[root@VM_210_145_centos ~]# rpm -qc jwhois
/etc/jwhois.conf
[root@VM_210_145_centos ~]# 

你可能感兴趣的:(根据端口找配置文件、关服务)