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

[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 bug-jwhois@gnu.org
[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 ~]# 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值