NetWorker:如何更改 NetWorker Management Console (NMC) 使用的数据库服务端口

Summary: 本知识库介绍如何更改 Linux 和 Windows 上 NMC 数据库使用的 TCP 服务端口的过程

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

默认情况下,NetWorker Management Console 数据库使用端口 5432 进行 TCP/IP 通信。建议使用默认端口以避免潜在的连接问题。您必须跟踪对 NetWorker 使用的端口所做的任何非默认更改。

NetWorker 进程和端口

执行以下步骤以更改 NMC 使用的服务端口。

Linux NMC 服务器

1.停止 NMC 服务:

# /etc/init.d/gst stop
OR
# systemctl stop gst         

2.编辑 /opt/lgtonmc/etc/gstd.conf 文件以添加或更改以下行: 

int db_svc_port=5432

例如:
int db_svc_port=2639

3.运行 /opt/lgtonmc/bin/gstconfig 命令以更新 NetWorker NMC 服务器配置文件中的端口值。
 
4.编辑 /nsr/nmc/nmcdb/pgdata/postgresql.conf 文件以添加或更改以下行: 

端口 = 5432

例如,

端口 = 2639

 
5.启动 NMC 服务:
Linux:

# /etc/init.d/gst start
OR
# systemctl start gst

  • 如果 sysvinit 系统缺少 /etc/init.d/gst 文件,或者未为 systemd 系统启用 gst 文件,请运行脚本:

/opt/lgtonmc/bin/nmc_config

  • 监视 /opt/lgtonmc/logs/gstd.raw 以进行服务启动。
  • 出现多个 Postgres 进程。出现两个或更多 httpd 进程。默认情况下,这些 httpd 进程以 nsrnmc 身份运行。
  • 通过键入以下命令,确认守护程序已启动:

    ps -ef |grep -i lgtonmc

    当守护程序启动时,将显示类似于以下内容的输出:

    root 3064 1 0 10:03?        00:00:01 /opt/lgtonmc/bin/gstd
    dbuser 3329 1 0 10:04?        00:00:00 /opt/lgtonmc/postgres/bin/postgres -D /opt/lgtonmc/nmcdb/pgdata
    nsrnmc 3969 1 0 10:04?        00:00:00 /opt/lgtonmc/apache/bin/httpd -f /opt/lgtonmc/apache/conf/httpd.conf
    nsrnmc 3970 3969 0 10:04?        00:00:00 /opt/lgtonmc/apache/bin/httpd -f /opt/lgtonmc/apache/conf/httpd.conf

 

Windows NMC 服务器

1.停止 GSTD 服务服务。

net stop gstd

2.编辑 C:\Program Files\EMC NetWorker\Management\GST\etc\gstd.conf 文件以更改以下行:

int db_svc_port=5432

例如:
int db_svc_port=2639
3.编辑 C:\Program Files\EMC NetWorker\Management\nmcdb\pgdata\postgresql.conf 文件以更改以下行:

端口 = 5432

例如:

port=2639

4.使用 regedit 更新注册表中的端口号。

a.浏览至 Computer\HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC 。INI\lgto_gst_pgsql。
B。编辑 端口 注册表项。
C。在 “值数据” 字段中,指定新端口号。
D。单击确定

image.png

5.启动 NMC 服务。

# net start gstd

Article Properties
Article Number: 000158473
Article Type: How To
Last Modified: 02 Sep 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.