dat*_*kid 3 jetty ubuntu-12.04
我有一些非常不寻常的行为.
我按照这些说明安装了jetty但是使用了最新版本(9.1.1v20140108)
我有理由重启Jetty并发现我收到了这些错误(以root用户身份登录)
开始码头:失败于2月5日星期三12:35:59 2014年
所以我花了30分钟寻找答案,然后由于我无法回忆的原因,我做了服务码头检查并且它正在运行(有一个pid).
所以我再次尝试使用服务Jetty停止:
root@erp:/var/log# service jetty stop
/etc/init.d/jetty: line 13: chkconfig:: command not found
/etc/init.d/jetty: line 14: description:: command not found
/etc/init.d/jetty: line 15: processname:: command not found
Stopping Jetty: start-stop-daemon: warning: failed to kill 7817: No such process
1 pids were not killed
No process in pidfile '/var/run/jetty.pid' found running; none killed.
OK
Run Code Online (Sandbox Code Playgroud)
没有人死?好.我们来看看:
root@erp:/var/log# service jetty check
/etc/init.d/jetty: line 13: chkconfig:: command not found
/etc/init.d/jetty: line 14: description:: command not found
/etc/init.d/jetty: line 15: processname:: command not found
Checking arguments to Jetty:
START_INI = /srv/jetty/start.ini
JETTY_HOME = /srv/jetty
JETTY_BASE = /srv/jetty
JETTY_CONF = /srv/jetty/etc/jetty.conf
JETTY_PID = /var/run/jetty.pid
JETTY_START = /srv/jetty/start.jar
JETTY_LOGS = /srv/jetty/logs
CLASSPATH =
JAVA = /usr/bin/java
JAVA_OPTIONS = -Dsolr.solr.home=/srv/solr -Djetty.state=/srv/jetty/jetty.state -Djetty.logs=/srv/jetty/logs -Djetty.home=/srv/jetty -Djetty.base=/srv/jetty -Djava.io.tmpdir=/tmp
JETTY_ARGS = jetty.port=8085 jetty-logging.xml jetty-started.xml
RUN_CMD = /usr/bin/java -Dsolr.solr.home=/srv/solr -Djetty.state=/srv/jetty/jetty.state -Djetty.logs=/srv/jetty/logs -Djetty.home=/srv/jetty -Djetty.base=/srv/jetty -Djava.io.tmpdir=/tmp -jar /srv/jetty/start.jar jetty.port=8085 jetty-logging.xml jetty-started.xml
Run Code Online (Sandbox Code Playgroud)
没有PID?我们来看看:
root@erp:/var/log# service jetty start
/etc/init.d/jetty: line 13: chkconfig:: command not found
/etc/init.d/jetty: line 14: description:: command not found
/etc/init.d/jetty: line 15: processname:: command not found
Starting Jetty: FAILED Wed Feb 5 12:39:43 EST 2014
Run Code Online (Sandbox Code Playgroud)
好的,有PID吗?
root@erp:/var/log# service jetty check
/etc/init.d/jetty: line 13: chkconfig:: command not found
/etc/init.d/jetty: line 14: description:: command not found
/etc/init.d/jetty: line 15: processname:: command not found
Checking arguments to Jetty:
[edit]
Jetty running pid=7993
Run Code Online (Sandbox Code Playgroud)
奇怪的.果然,停止和检查会得到相同的结果.
jetty启动脚本发生了什么?为什么我在启动时出现错误的FAILED错误,并且无法删除停止时的pid错误,这也是错误的?
小智 7
我已经修复了所有使用该教程安装jetty的人
nano /etc/init.d/jetty
Run Code Online (Sandbox Code Playgroud)
并更改此语法:
start-log-file="$JETTY_LOGS/start.log"
Run Code Online (Sandbox Code Playgroud)
至
start-log-file="start.log"
Run Code Online (Sandbox Code Playgroud)
它将修复最新码头版本中的所有内容,使其像魅力一样运行.
希望我能提供帮助
| 归档时间: |
|
| 查看次数: |
10190 次 |
| 最近记录: |