日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
windows系統(tǒng)下知道DB2端口號的“妙招”

我們今天主要向大家講述的是在aix、linux、windows系統(tǒng)下知道DB2端口號的實際操作方案,相信如果你掌握了在aix、linux、windows系統(tǒng)下知道DB2端口號的實際操作方案這項技術(shù),會在以后的學(xué)習(xí)或是工作中帶來很大的幫助。

目前創(chuàng)新互聯(lián)已為上千的企業(yè)提供了網(wǎng)站建設(shè)、域名、虛擬空間、網(wǎng)站托管、企業(yè)網(wǎng)站設(shè)計、岳普湖網(wǎng)站維護等服務(wù),公司將堅持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長,共同發(fā)展。

DB2安裝完成后,tcp/ip連接端口默認為50000,可通過下面的方法確認:

1、使用命令 DB2 get dbm cfg |find "SVCENAME" 查找到TCP/IP 服務(wù)名

2、到系統(tǒng)配置文件里找到service name 對應(yīng)的 port number

windows:查看 c:\windows\system32\drivers\etc\services aix: 查看 /etc/services

如下:

 
 
 
 
  1. DB2_DB2 60000/tcp  
  2. DB2_DB2_1 60001/tcp  
  3. DB2_DB2_2 60002/tcp  
  4. DB2_DB2_END 60003/tcp DB2c_DB2 50000/tcp 

3、使用 netstat -an 命令查找tcp/ip 服務(wù)的端口

4、另外附上一個關(guān)于linux系統(tǒng)下的查找方法(摘抄帖子):

 
 
 
 
  1. In JDBC configurations for WPA, you have to specify the port that DB2 is listening on. I usually look for  
  2. /etc/services or try one of 50000/50001 and it usually works. In SUSE Linux, both the solutions did   
  3. not work and there was another process (Multithreaded routing toolkit aka mrt) was listening on port 50000.  
  4. So how do we find out the DB2 port in a reliable way? Read on...  
  5. Step 1: Set the DB2 environment.  
  6. $ . ~DB2inst1/sqllib/DB2profile  
  7. Step 2: Find the service name for DB2 instance. It basically involves running  
  8. "DB2 get dbm cfg" command and finding a line containing SVCENAME.   
  9. $ svc=`DB2 get dbm cfg | grep SVCENAME | cut -d= -f2 | awk '{print $1}'`  
  10. Step 3: Find the service name that you got from Step 2 in /etc/services or %SYSTEMROOT  
  11. %\system32\drivers\etc\services. That is the port DB2 is listening on.  
  12. $ grep $svc /etc/services  
  13. Hope you find this useful.  

以上的相關(guān)內(nèi)容就是對aix、linux、windows系統(tǒng)下如何知道DB2端口號的介紹,望你能有所收獲。

上述的相關(guān)內(nèi)容就是對aix、linux、windows系統(tǒng)下如何知道DB2端口號的描述,希望會給你帶來一些幫助在此方面。


網(wǎng)頁名稱:windows系統(tǒng)下知道DB2端口號的“妙招”
網(wǎng)站URL:http://www.dlmjj.cn/article/djdopeh.html