Centos7 Installing Nexus

Source: Internet
Author: User

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

2, Nexus name nexus-2.12.0-01-bundle.tar.gz, upload to/usr/local/java/nexus.

3. Unzip the tar zxvf nexus-2.12.0-01-bundle.tar.gz

4, enter the/usr/local/java/nexus/nexus-2.12.0-01/bin, start the Nexus;

[Root@localhost bin]#./nexus
Usage:./nexus {Console | start | stop | restart | status | dump}
[root@localhost bin]#./nexus start
****************************************
warning-not RECOMMENDED to RUN as ROOT
* * * * * *
If you insist running as root and then set the environment variable Run_as_user=root Before running this script.

A warning appears and the start fails;

This is the requirement to configure the environment variables, in the following steps:

4.1 Editing Environment variables

Vi/etc/profile

4.2 Added at the end

########################################################
################### #nexus ######################### ######
Export Run_as_user=root

4.3 Configuring environment variables to take effect


4.4 Re-run

[Root@localhost bin]# source/etc/profile  
[root@localhost bin]#./nexus start
******************************
Warning-not RECOMMENDED to RUN as ROOT
****************************************
starting Nexus OSS
... Started Nexus OSS.


5. Start Port 8081

Firewall-cmd   --add-port=8081/tcp

6. Visit http://192.168.1.250:8081/nexus/


7 First login nexus, default username and password for admin and admin123





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.