简体   繁体   English

无法使用Linux服务启动Archiva 2.1.0

[英]Unable to use the Linux service to start Archiva 2.1.0

I'm trying to start the recently published Apache Archiva v2.1.0 (Standalone) on Linux. 我正在尝试在Linux上启动最近发布的Apache Archiva v2.1.0(Standalone)。

For testing purpose, the zip has been uncompressed in /opt/archiva-2.0 . 出于测试目的,zip已在/opt/archiva-2.0中解压缩。

The docs says: http://archiva.apache.org/docs/2.1.0/adminguide/standalone.html 文档说: http//archiva.apache.org/docs/2.1.0/adminguide/standalone.html

On Linux, the bin/archiva script is suitable for linking or copying to /etc/init.d/archiva and running as root, as long as the RUN_AS_USER environment variable is set within the script. 在Linux上,只要在脚本中设置了RUN_AS_USER环境变量,bin / archiva脚本就适合链接或复制到/etc/init.d/archiva并以root身份运行。

So I've copied the /opt/archiva-2.0/bin/archiva Shell script in /opt/init.d . 所以我复制在/opt/init.d/opt/archiva-2.0/bin/archiva shell脚本。

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? 任何的想法?

将bin / archiva脚本的符号链接设置为/etc/init.d/archiva可以更好地工作,这样脚本就在一个地方。

$ ln -s /opt/archiva-2.0/bin/archiva /etc/init.d/archiva

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM