How can I check the port used by DB2 in Linux or Unix?

Source: Internet
Author: User
Tags db2 port

This article describes how to correctly check the port number occupied by DB2 in Linux or Unix, if you are interested in the actual operation steps for correctly checking the DB2 port number in Linux or Unix, you can click to view the following articles.

Linux, Unix, port Linux, Unix, Port

Assume that you have started the database manager with db2start and configured the communication mode as TCP/IP.

First switch to the db2inst1 user su-db2inst1

Find TCP/IP Service name db2 get dbm cfg | grep-I service

Use the output of the previous command, such as db2c_db2inst1) to find the corresponding port number in the/etc/services file grep db2c_db2inst1/etc/services

This is what you will see from the output of the previous line db2c_db2inst1 50000/tcp

50000 indicates the port number occupied by db2.

The above content describes how to view the port number occupied by DB2 in Linux or Unix, hoping to help you in this regard.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.