Install nexus in CentOS and set it to System Service

Source: Internet
Author: User

Install nexus in CentOS and set it to System Service

CentOS 6.x:

1. download the latest source package from the official website. For example, nexus-2.11.4-01-bundle.tar.gz is saved in the/usr/local/directory.

2. decompress the package and create a soft link:

[Python] view plaincopy
  1. Tarzxvfnexus-2.11.4-01-bundle.tar.gz
  2. Ln-s/usr/local/nexus-2.11.4-01/usr/local/nexus

3. The nexus is started with Jetty. The default port is 8081. If a port conflict exists, edit conf/nexus. in the properties file, locate the application-port = 8081 line and change it to application-port = 9037.

4. Because I am operating the system as root, modify the bin/nexus file and find # RUN_AS_USER =. Add RUN_AS_USER = root

5. Modify bin/jsw/conf/wrapper. conf file, change the java command path, and find wrapper. java. command = java line, changed to wrapper. java. command =/usr/local/jdk/bin/java (depending on your jdk location)

6. Create a service. You can directly use the soft link:

[Python] view plaincopy
  1. Ln-s/usr/local/nexus/bin/nexus/etc/init. d/nexus

Now, the nexus service is made and started.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.