[英]Can we have more than one installation of Rundeck in a Linux server?
I have one installation of Rundeck in a Linux server and it is up & running on port 4440. But I want to have one more installation of it and expecting it to run on other port.我在 Linux 服务器上安装了一个 Rundeck,它在端口 4440 上启动并运行。但我想再安装一个,并希望它在其他端口上运行。 Is it possible?
是否可以? This question may look weird but I want to have additional setup of Rundeck due to personal reasons.
这个问题可能看起来很奇怪,但由于个人原因,我想对 Rundeck 进行额外设置。
Eagerly looking for help.急切地寻求帮助。 Thanks in advance.
提前致谢。
You can test your "Personal instance" with a docker container without touch the "real instance" (or use two docker containers if you want), in both cases, you need to specify different ports (for example 4440 for "real" instance/container and 5550 to "test" container).您可以使用 docker 容器测试您的“个人实例”,而无需接触“真实实例”(或者,如果需要,可以使用两个 docker 容器),在这两种情况下,您都需要指定不同的端口(例如 4440 用于“真实”实例/容器和 5550 来“测试”容器)。
Here you have the official docker image, here about how to run, check the "Environment variables" section to specify the TCP port of each container (also, you have a lot of params to test).这里你有官方的docker镜像, 这里是关于如何运行的,检查“环境变量”部分以指定每个容器的TCP端口(另外,你有很多参数要测试)。 And here you have a lot of configurations to test (LDAP, DB backends, etc..).
在这里,您有很多配置要测试(LDAP、DB 后端等)。
If you use Rundeck with Docker you must change the init.sh.如果将 Rundeck 与 Docker 一起使用,则必须更改 init.sh。
He is responsible of configuration overwrite at each container creation, so all your configuration updates are lost.他负责在每个容器创建时覆盖配置,因此您的所有配置更新都会丢失。
Doing this also avoid to have clear configuration params i' your docker-compose file...这样做还可以避免在您的 docker-compose 文件中拥有明确的配置参数...
The steps are :步骤是:
create docker-compose file as mentioned on Rundeck Docker hub创建 docker-compose 文件,如 Rundeck Docker hub 上所述
map volumes on your host so you can save rundeck's files and directory在您的主机上映射卷,以便您可以保存 rundeck 的文件和目录
stop your container停止你的容器
comment config overwrite in init.sh init.sh 中的注释配置覆盖
restart your container重启你的容器
You can then update rundeck's config on the fly and just restart rundeck container to see the changes...然后,您可以动态更新 rundeck 的配置,只需重新启动 rundeck 容器即可查看更改...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.