Jboss自动启动

发布于 2024-08-08 07:17:09 字数 186 浏览 2 评论 0原文

我安装/配置了 Jboss 5。我希望能够在虚拟机启动时自动启动 Jboss。我在 Jboss bin 目录中看到我有一个启动脚本 jboss_init_redhat.sh

我假设我必须将该脚本放入我的 /etc/rc.d/init.d/jboss 文件中

然后我陷入困境,下一步是什么?

感谢您对初学者的帮助

I have Jboss 5 installed/configured. I would like the ability to have Jboss auto start when my VM boots up. I see in my Jboss bin directory I have a startup script jboss_init_redhat.sh

I am assuming I have to get that script into my /etc/rc.d/init.d/jboss file

Then I am stuck, what is my next step?

Thank you for helping a beginner

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

泛泛之交 2024-08-15 07:17:09

根据 JBoss 社区 Wiki 上的 How do I Start JBoss on boot with Linux?,您的任务是:

  • 为 JBoss 创建一个用户(推荐),以便 JBoss 可以
    仅限于访问文件
    以及它拥有的系统资源
    通过“jboss”访问的权限
    用户。
  • 创建一个名为 /etc/rc.d/init.d/jboss 的脚本
  • 创建一个名为 /etc/rc3.d/S84jboss 的链接
    • 可选 /etc/rc5.d/S84jboss 和 /etc/rc4.d/S84jboss
  • 创建一个名为 /etc/rc6.d/K15jboss 的链接
    • 创建 K15
      链接在/etc/rc1.d,/etc/rc2.d,
      /etc/rc0.d

对于第二步,您确实可以使用 JBoss 附带的 jboss_init_redhat.sh 文件。有关更多信息,请查看上面给出的链接,它详细介绍了每个步骤。

According to How do I Start JBoss on boot with Linux? on JBoss Community Wiki, your task is to:

  • create a user for JBoss (recommended) so that JBoss can be
    restricted to accessing only the files
    and system resources that it has
    permission to access via the "jboss"
    user.
  • create a script called /etc/rc.d/init.d/jboss
  • create a link called /etc/rc3.d/S84jboss
    • optionally /etc/rc5.d/S84jboss and /etc/rc4.d/S84jboss
  • create a link called /etc/rc6.d/K15jboss
    • create the K15
      link in /etc/rc1.d, /etc/rc2.d,
      /etc/rc0.d

For the 2nd step, you can indeed use the jboss_init_redhat.sh file that ships with JBoss. For more information, check the link given above, it details each step.

离旧人 2024-08-15 07:17:09

stock 初始化脚本非常原始;这是我对更好的一个的看法: https://jira.jboss.org/jira/浏览/JBPAPP-3194

The stock init script is very primitive; here's my take at a better one: https://jira.jboss.org/jira/browse/JBPAPP-3194

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文