自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

windows系統(tǒng)下知道DB2端口號(hào)的“妙招”

數(shù)據(jù)庫(kù)
以下的文章主要向大家講述的是在aix、linux、windows系統(tǒng)下知道DB2端口號(hào)的實(shí)際操作方案,以下就是文章的主要內(nèi)容的詳細(xì)解析。

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

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

 

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

2、到系統(tǒng)配置文件里找到service name 對(duì)應(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、另外附上一個(gè)關(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)容就是對(duì)aix、linux、windows系統(tǒng)下如何知道DB2端口號(hào)的介紹,望你能有所收獲。

 

aix、linux、windows系統(tǒng)下如何知道DB2的端口號(hào)

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

【編輯推薦】

  1. DB2 CMO安裝7.1.2.6補(bǔ)丁之后會(huì)出現(xiàn)的錯(cuò)誤
  2. IBM DB2數(shù)據(jù)庫(kù)新手必看的基礎(chǔ)知識(shí)有哪些?
  3. 如何正確管理DB2 For z/OS or OS/390的操作性能
  4. 安裝DB2 Content Manager8.3出現(xiàn)144錯(cuò)誤代碼
  5. 安裝IBM DB2 Content Manager V83時(shí)與122錯(cuò)誤代碼
責(zé)任編輯:佚名 來(lái)源: 驅(qū)動(dòng)之家
相關(guān)推薦

2010-08-18 15:56:28

DB2占用端口號(hào)

2010-11-03 13:55:39

創(chuàng)建DB2實(shí)例

2023-10-11 12:59:55

Ping端口

2010-11-01 16:19:18

2010-09-30 09:53:05

DB2創(chuàng)建表空間

2010-07-19 16:21:58

Telnet端口號(hào)

2011-03-16 15:36:43

DB2控制中心字體

2022-11-15 21:21:06

Linux中國(guó)

2010-11-02 14:16:02

linux下安裝DB2

2010-04-12 17:58:38

Oracle更改

2010-08-16 17:07:43

DB2 trc

2010-09-08 14:22:19

sql server端口配置

2012-11-30 10:40:00

IBMdW

2011-03-28 12:42:35

ibmdwDB2

2010-08-11 11:13:27

DB2 pe

2010-08-16 14:16:28

DB2實(shí)例

2010-08-27 09:30:58

DB2eclipse連接

2010-06-18 08:55:46

SQL Server數(shù)

2010-09-30 10:04:06

DB2創(chuàng)建表空間

2022-02-16 10:59:54

Spring端口郵件
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)