服務若停止執行或無法啟動,則可能會導致問題。請務必確認所有服務均正常執行。

檢查 NSX Manager 服務的狀態:

nsxmgr> get services
Service name:       cm-inventory
Service state:      stopped

Service name:       http
Service state:      stopped
Session timeout:    1800
Connection timeout: 30
Redirect host:      (not configured)

Service name:       install-upgrade
Service state:      stopped
Enabled:            True

Service name:       liagent
Service state:      stopped

Service name:       manager
Service state:      stopped
Logging level:      info

Service name:       mgmt-plane-bus
Service state:      running

Service name:       node-mgmt
Service state:      running

Service name:       nsx-message-bus
Service state:      running

Service name:       nsx-upgrade-agent
Service state:      running

Service name:       ntp
Service state:      running

Service name:       search
Service state:      stopped

Service name:       snmp
Service state:      stopped

Start on boot:      False
Service name:       ssh

Service state:      running
Start on boot:      True

Service name:       syslog
Service state:      running

在上述範例中,http 服務已停止。您可以使用下列命令啟動 http 服務:

nsxmgr> start service http

SSH 服務

如果在部署應用裝置時未啟用 SSH 服務,您可以管理員身分登入應用裝置,並使用下列命令啟用該服務:

start service ssh

您可以使用下列命令將 SSH 設定為在主機啟動時啟動:

set service ssh start-on-boot

若要啟用 SSH 根登入,可以根使用者身分登入應用裝置,然後編輯檔案 /etc/ssh/sshd_config 並取代以下行

PermitRootLogin prohibit-password

或者,也可以啟用 SSH 服務,並透過關閉應用裝置的電源和修改其 vApp 內容來啟用 SSH 根存取。

取代為

PermitRootLogin yes

然後,使用下列命令重新啟動 sshd 伺服器:

/etc/init.d/ssh restart