Linux Build Nexus Warehouse

Source: Internet
Author: User
Tags sonatype

Linux Nexus Warehouse 1. Install jdk1.1 get the installation package, unzip to the specified directory:
1 tar XF jdk. tar. Gz-c/opt/export
1.2 Configuring Environment variables:
1 # vim/etc/profile2 export java_home=/opt/export/jdk3 export path=$ java_home/Bin: $PATH4 export classpath=.: $JAVA _home/lib: $JAVA _home/jre/lib: $JAVA _home/lib/  Tools.jar5 export run_as_user=root  # Back start Nexus requires 67 # source/etc/ Profile
1.3 The following results appear, indicating a successful deployment
1 # java-version2"1.7.0_80"31.7. 0_80- B15) 4  - 24.80-b11, Mixed mode)
2. Install nexus2.1 Download Installation

Https://www.sonatype.com/download-oss-sonatype
Https://help.sonatype.com/repomanager2/download/download-archives---Repository-manager-oss

1 cd/opt2tar XF nexus-2.4. 0--bundle. tar. gz

After decompression there are two directories:

1 ls /opt/2 nexus-2.4. 0-  sonatype-work

Change Directory Name:

1 MV nexus-2.4. 0- the Nexus
2.2 Changing the Nexus configuration file

The default port is 8081 and can be modified as needed:

1$ vim/opt/nexus/conf/nexus.properties2 # Jetty section3application-port=8081# Modified to 108904application-host=0.0.0.05nexus-webapp=${bundlebasedir}/Nexus6nexus-webapp-context-path=/Nexus7 8 # Nexus section9nexus-work=${bundlebasedir}/. /sonatype-work/NexusTenRuntime=${bundlebasedir}/nexus/web-inf
2.3 Turn off the firewall or open the 10890 port
1 /etc/init.d/iptables stop2 chkconfig iptables off
2.4 Start Nexus
1 $/opt/nexus/bin/jsw/linux-x86-/Nexus start2 ***************************** 3 WARNING-not RECOMMENDED to RUN as ROOT4 ************************************* 5starting Nexus OSS ... 6 Started Nexus OSS.

If you do not configure the environment variable run_as_user=root, you will get an error:

1 #/opt/nexus/bin/jsw/linux-x86-/Nexus start2 ***************************** 3 WARNING-not RECOMMENDED to RUN as ROOT4 ************************************* 5 Then set the environment variable run_as_user=root before running this script.
2.5 Checking processes and ports

3. Browser access to Nexus
1 http://IP address: 8081/nexus2 login, Default user name admin default password admin123

Access Login:

4. Migrating Nexus

If you want to migrate a Nexus warehouse, just package this directory and migrate to the new Nexus Host:

1 du -sh /opt/sonatype-work/nexus/storage2 47G    /opt/sonatype-work/nexus/ storage/

Because the file is too large, you can use the Rsync method.

This article references: 68926610

Linux Build Nexus Warehouse

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.