简体   繁体   中英

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.

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

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.

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?

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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