zoukankan      html  css  js  c++  java
  • 根据端口找配置文件、关服务

    [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 ~]# 

  • 相关阅读:
    Visual Studio 2013各个版本密钥(亲测可用)
    Duilib bkimage 属性
    VC++ 文件夹的打开
    孙鑫- VC++在对话框程序中让对话框捕获WM_KEYDOWN消息
    OpenCV窗口置顶的方法
    OpenCV设置感兴趣区域(roi)
    Ubuntu 12,04安装ROS Hydro
    VC获取任务栏窗口及其子窗口句柄
    关于调用静态链接库LIB,提示重定义或库冲突的错误
    DuiLib如何禁用双击标题栏窗口最大化
  • 原文地址:https://www.cnblogs.com/jonathanyue/p/9301301.html
Copyright © 2011-2022 走看看