NetWorker:如何變更 NetWorker 管理主控台 (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 管理主控台資料庫會將埠 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 系統或 gst 檔案的 /etc/init.d/gst 檔案遺失,或系統未啟用 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.流覽至電腦\HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC。INI\lgto_gst_pgsql。
B。編輯 登錄機碼。
C。在 「Value Data 」欄位中,指定新的埠號碼。
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.