jetty - 开机时自动运行 Jetty

标签 jetty

我正在尝试让 Jetty 在我的 Ubuntu 上自动启动。
我已经完成了这些命令:

 cp /opt/jetty/bin/jetty.sh /etc/init.d
 update-rc.d jetty.sh defaults

但是当我运行它时,我得到了一个“未启动 jetty - NO_START=1”。

有谁知道为什么?

其次,jetty.sh里面有以下内容。
# To get the service to restart correctly on reboot, uncomment below (3 lines):
# ========================
# chkconfig: 3 99 99
# description: Jetty 7 webserver
# processname: jetty
# ========================

他们指的是什么“3行”?我取消注释
chkconfig: 3 99 99
description: Jetty 7 webserver
processname: jetty

但也有错误。

最佳答案

默认情况下,Jetty 不会自行启动。

你要修改/etc/default/jetty6 (或无论您的配置文件在哪里)并设置:

no_start = 0

关于jetty - 开机时自动运行 Jetty,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7660314/

相关文章:

jetty - JMeter、Jetty 性能测试和 Keep-Alive 问题

java - 在嵌入式 Jetty 实例上运行的 JSP 页面中未解析 JSTL

java - 从 web.xml 中的库导入 servlet

tomcat - resteasy 未在 tomcat 响应错误代码 400 错误请求上运行

java - 在 OSGi 包之间共享对象

jakarta-ee - AsyncContext 和 I/O 错误处理(当对等断开连接时)

java - 集成测试 DropWizard 应用程序

java - 网络套接字( jetty ): How to handle the binary data on server side which is coming in chunks

java:没有网络服务器的基本网络服务接口(interface)

java - 如果从 jar 运行,带有嵌入式 jetty 的 Spring 应用程序找不到 webdefault.xml