如何使用 localhost 连接 rundeck CLI 工具?
How to make rundeck CLI tools connect using localhost?
我 read rundeck CLI 工具(rd-project 等)使用 framework.properties
找到 URL 连接到 rundeck 或环境变量。我什么都做不了。
我需要通过 127.0.0.1:4440
连接。我可以远程登录到这个端口,我知道它没问题。但是,我无法从实例远程登录到 1.2.3.4:4440
(其中 1.2.3.4
是 public IP)。我找不到如何正确配置 AWS 安全组。
我已将 framework.properties
更改如下:
...
framework.server.url = http://127.0.0.1:4440
我重新加载了 rundeck,但这没有任何区别。 rd-project
仍然无法连接。即使我将 framework.server.name
和 framework.server.hostname
更改为我的 public IP 并重新启动,它也会失败。
使用环境变量RUNDECK_URL
没有区别。我正在使用 v2.6.2。
我做错了什么?
这是我的命令:
RUNDECK_URL=http://127.0.0.1:4440 /usr/bin/rd-project -a create -p newProj
您需要设置以下属性来为本地主机配置 rundeck:
在framework.properties中:
framework.server.hostname=本地主机
在 rundeck-config.properties:
grails.serverURL=http://localhost:[port]
希望对您有所帮助。
我 read rundeck CLI 工具(rd-project 等)使用 framework.properties
找到 URL 连接到 rundeck 或环境变量。我什么都做不了。
我需要通过 127.0.0.1:4440
连接。我可以远程登录到这个端口,我知道它没问题。但是,我无法从实例远程登录到 1.2.3.4:4440
(其中 1.2.3.4
是 public IP)。我找不到如何正确配置 AWS 安全组。
我已将 framework.properties
更改如下:
...
framework.server.url = http://127.0.0.1:4440
我重新加载了 rundeck,但这没有任何区别。 rd-project
仍然无法连接。即使我将 framework.server.name
和 framework.server.hostname
更改为我的 public IP 并重新启动,它也会失败。
使用环境变量RUNDECK_URL
没有区别。我正在使用 v2.6.2。
我做错了什么?
这是我的命令:
RUNDECK_URL=http://127.0.0.1:4440 /usr/bin/rd-project -a create -p newProj
您需要设置以下属性来为本地主机配置 rundeck:
在framework.properties中:
framework.server.hostname=本地主机
在 rundeck-config.properties:
grails.serverURL=http://localhost:[port]
希望对您有所帮助。