Centos7 to build the Nexus

Source: Internet
Author: User
Tags centos server

1: Download Nexus

Download path: http://www.sonatype.org/nexus/archived/

I downloaded: nexus2.12.0-01

2: Upload to the CentOS server via FTP.

Unzip the file

Tar zxvf nexus-2.12.0-01-bundle.tar.gz

Extract one more folder after decompression



3:nexus start

Nexus boot is in the bin directory, first look at the startup/shutdown/restart command, Input command:

Cd/usr/local/nexus-2.12.0-01/bin

./nexus

Enter the command after the following image:



Start Nexus

./nexus Start

An error message will appear

"If you insist running as root, then set thee nvironment variable run_as_user=root before running this script." Warning message. Presumably: If you want to use the root user, you should set the environment variable "Run_as_user=root" before running the start script.

modifying environment variables

Vi/etc/profile to join Exportrun_as_user=root



When you start the Nexus

./nexus

The following figure appears, indicating a successful start.



Close Nexus:

#./nexus stop

4:nexus Verification

Input Address: http://192.168.43.136:8081/nexus/

IP address Write your own just fine, I here is directly to put the firewall off, you can add 8081 port accessible.








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.