在启动时自动运行Jetty

6 jetty

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

 cp /opt/jetty/bin/jetty.sh /etc/init.d
 update-rc.d jetty.sh defaults
Run Code Online (Sandbox Code Playgroud)

但是当我跑它时,我得到了一个"不开始码头 - 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
# ========================
Run Code Online (Sandbox Code Playgroud)

他们指的是什么"3行"?我没有注释

chkconfig: 3 99 99
description: Jetty 7 webserver
processname: jetty
Run Code Online (Sandbox Code Playgroud)

但也有错误.

Bla*_*man 7

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

你必须修改 /etc/default/jetty6(或者你的配置文件是)并设置:

no_start = 0
Run Code Online (Sandbox Code Playgroud)