我正在尝试让 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/