Skip to main content Skip to complementary content

Installing Talend Artifact Repository as a service on Linux

Procedure

  1. As root, copy Artifact-Repository-Nexus-VA.B.C.D.E/nexus-A.B.C-D/bin/nexus to /etc/init.d.
  2. Make the nexus script executable by running the following command:
    chmod 755 /etc/init.d/nexus
  3. Change NEXUS_HOME to the absolute folder location.
    • If you are using Nexus 2, open the nexus script then change the NEXUS_HOME variable. For detailed instructions on configuring NEXUS_HOME in Nexus 2, see Running as a Service on Linux.
    • If you are using Nexus 3, change NEXUS_HOME variable in the .bashrc file. For detailed instructions on configuring NEXUS_HOME in Nexus 3, see Run as a Service.
    For example: NEXUS_HOME="/opt/Talend-A.B.C/tac/Artifact-Repository-Nexus-V2.14.3-02/nexus-2.14.3-02"
  4. Set the RUN_AS_USER option to a user with restricted rights that you want to use to run the service. You should not be running Nexus as root.
  5. Change PIDDIR to a directory where the user has read/write permissions, for example ./.
  6. Change the owner and group of your Talend Artifact Repository directories to the user that you want to use to run the service.
  7. From the terminal, browse to /etc/init.d.
  8. Install the service.
    • On Ubuntu, use the following command: # update-rc.d nexus defaults
    • On other Linux distributions, use the following commands:
      $ chkconfig --add nexus
      $ chkconfig --levels 345 nexus on

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!