db2檢視其埠號
阿新 • • 發佈:2019-02-16
1,db2安裝完成後,tcp/ip連線埠預設為50000.
2,aix:
/etc/services下檢視DB2埠:
如下:
DB2_db2inst1 60000/tcp
DB2_db2inst1_1 60001/tcp
DB2_db2inst1_2 60002/tcp
DB2_db2inst1_END 60003/tcp
db2c_db2inst1 51000/tcp
db2j_db2inst1 55000/tcp
3,netstat -an命令看以上對應埠是否有開放的,類似字樣:
tcp 0 0 *.657 *.* LISTEN
tcp4 0 0 *.1334 *.* LISTEN
tcp4 0 0 *.1527 *.* LISTEN
tcp4 0 0 *.51000 *.* LISTEN
tcp 0 0 *.2049 *.* LISTEN
----------------------
4,通過命令列來獲取其在用埠號
db2 get dbm cfg | grep SVCENAME