简体   繁体   English

我们可以在 Linux 服务器中安装多个 Rundeck 吗?

[英]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.

相关问题 我们可以在同一台服务器上安装两个 Rundeck 实例吗? - Can we have two instances of Rundeck installed on same server? 如何在 Linux 上安装多个不同版本的 nginx? - How can I install more than one different version of nginx on Linux? 我可以使用与安装用户不同的用户运行 odoo 吗? - Can I run odoo with a different user than the installation one? 使用比我安装的版本更小的 Angular 版本我必须卸载项目安装吗? - Using a version of Angular smaller than the one I installed do I have to uninstall the project installation? Mac OS X的安装故事是否比Windows好? - Does Mac OS X have a better installation story than Windows? 软件包的安装退出状态为非零-Linux服务器 - installation of package had non-zero exit status - Linux Server 在离线linux服务器上安装joomla 3尚未完成 - Installation of joomla 3 on offline linux server doesn't get completed 是否可以在OpenCart中安装多个主题? - Is it possible to install more than one themes in OpenCart? PrestaShop : 我们无法开始安装 :( PrestaShop 安装需要启用 zip 扩展 - PrestaShop : We can't start installation :( PrestaShop installation requires the zip extension to be enabled Manjaro / Linux 安装 - Manjaro / Linux installation
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM