zoukankan      html  css  js  c++  java
  • DB2端口(转自百度文库http://wenku.baidu.com/view/47809b26aaea998fcc220e65.html)

    我们今天主要向大家讲述的是在aix、linux、windows系统下知道DB2端口号的实际操作方案,相信如果你掌握了在aix、linux、windows系统下知道DB2端口号的实际操作方案这项技术,会在以后的学习或是工作中带来很大的帮助。

    DB2安装完成后,tcp/ip连接端口默认为50000,可通过下面的方法确认:

    1、使用命令 DB2 get dbm cfg |find "SVCENAME" 查找到TCP/IP 服务名

    2、到系统配置文件里找到service name 对应的 port number

    windows:查看 c:windowssystem32driversetcservices aix: 查看 /etc/services

    如下:DB2_DB2 60000/tcp DB2_DB2_1 60001/tcp DB2_DB2_2 60002/tcp DB2_DB2_END 60003/tcp DB2c_DB2 50000/tcp 3、使用 netstat -an 命令查找tcp/ip 服务的端口

    4、另外附上一个关于linux系统下的查找方法(摘抄帖子):

    In JDBC configurations for WPA, you have to specify the port that DB2 is listening on. I usually look for /etc/services or try one of 50000/50001 and it usually works. In SUSE Linux, both the solutions did not work and there was another process (Multithreaded routing toolkit aka mrt) was listening on port 50000. So how do we find out the DB2 port in a reliable way? Read on... Step 1: Set the DB2 environment. $ .~DB2inst1/sqllib/DB2profile

    Step 2: Find the service name for DB2 instance. It basically involves running "DB2 get dbm cfg" command and finding a line containing SVCENAME. $ svc=`DB2 get dbm cfg | grep SVCENAME | cut -d= -f2 | awk '{print $1}'`

    Step 3: Find the service name that you got from Step 2 in /etc/services or %SYSTEMROOT %system32driversetcservices. That is the port DB2 is listening on. $ grep $svc /etc/services Hope you find this useful.

    以上的相关内容就是对aix、linux、windows系统下如何知道DB2端口号的介绍,望你能有所收获。

  • 相关阅读:
    C# 实现将 PDF 转文本的功能
    推荐大家使用的CSS书写规范、顺序
    Android 应用开发者必看的 9 个 Tips
    网站统计中的数据收集原理及实现
    JSON劫持漏洞攻防原理及演练
    巧妙使用 CSS3 的褪色和动画效果制作消息提醒框
    20条常见的编码陷阱
    11 个最佳 jQuery 滚动条插件
    JavaScript客户端MVC 框架综述
    20个初学者实用的CSS技巧
  • 原文地址:https://www.cnblogs.com/phpspring/p/3272185.html
Copyright © 2011-2022 走看看