这可以通过编辑来实现 settings.js Node-RED用户目录中的文件(通常为〜/ .node-red)
settings.js
取消注释 httpAdmnRoot 键
httpAdmnRoot
// By default, the Node-RED UI is available at http://localhost:1880/ // The following property can be used to specifiy a different root path. // If set to false, this is disabled. httpAdminRoot: '/admin',
并取消注释和编辑 ui 条目:
ui
// If you installed the optional node-red-dashboard you can set it's path // relative to httpRoot ui: { path: "/" },
重新启动Node-RED后,编辑器将打开 http://example.com:1880/admin 并且仪表板UI将打开 http://example.com:1880/