本文介绍了无法使用Linux服务启动Archiva 2.1.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在Linux上启动最近发布的Apache Archiva v2.1.0(独立版).
出于测试目的,已在/opt/archiva-2.0 中解压缩了zip.
文档说: http://archiva.apache.org/docs/2.1.0/adminguide/standalone.html
因此,我已将/opt/archiva-2.0/bin/archiva Shell脚本复制到/opt/init.d .
我都尝试过:
#RUN_AS_USER=root
和
RUN_AS_USER=root
但是在启动时我总是会遇到相同的错误:
>service archiva console
/etc
Unable to locate any of the following operational binaries:
/etc/rc.d/init.d/./wrapper-linux-x86-64
/etc/rc.d/init.d/./wrapper-linux-x86-32
/etc/rc.d/init.d/./wrapper
有关信息:
>uname -a
Linux ****** 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
有什么主意吗?
解决方案
使bin/archiva脚本与/etc/init.d/archiva的符号链接工作得更好,这样脚本就可以放在一个地方.
$ ln -s /opt/archiva-2.0/bin/archiva /etc/init.d/archiva
I'm trying to start the recently published Apache Archiva v2.1.0 (Standalone) on Linux.
For testing purpose, the zip has been uncompressed in /opt/archiva-2.0.
The docs says:http://archiva.apache.org/docs/2.1.0/adminguide/standalone.html
So I've copied the /opt/archiva-2.0/bin/archiva Shell script in /opt/init.d.
I tried with both:
#RUN_AS_USER=root
and
RUN_AS_USER=root
but I always get the same error at startup:
>service archiva console
/etc
Unable to locate any of the following operational binaries:
/etc/rc.d/init.d/./wrapper-linux-x86-64
/etc/rc.d/init.d/./wrapper-linux-x86-32
/etc/rc.d/init.d/./wrapper
For information:
>uname -a
Linux ****** 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
Any idea?
解决方案
Making symbolic link of the bin/archiva script to /etc/init.d/archiva works better and that way the script is just in one place.
$ ln -s /opt/archiva-2.0/bin/archiva /etc/init.d/archiva
这篇关于无法使用Linux服务启动Archiva 2.1.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!