A maven nexus for the Centos infrastructure development environment

Source: Internet
Author: User
Tags sonatype

1, software a) Download Nexus address: HTTP://WWW.SONATYPE.ORG/DOWNLOADS/NEXUS-2.1.2-BUNDLE.TAR.GZB) If no special instructions, this document operation user is NEXUSC) Nexus Default admin username password is: admin/admin1232, install a) Extract 1 $ tar zxvf nexus-2.1.2-bundle.tar.gzb) move to other directory 1 $ MV nexus-2.1.2/home/nexus/ NEXUSC) set to system self-boot service (using root user) 1 # cd/etc/init.d/2 # Cp/home/nexus/nexus/bin/jsw/linux-x86-64/nexus Nexus Edit/etc/init.d/ NEXUS file, add the following variable definitions: 1 nexus_home=/home/nexus/nexus2 platform=linux-x86-643 platform_dir= "${nexus_home}/bin/jsw/${ PLATFORM} "Modify the following variables: 1 wrapper_cmd=" ${platform_dir}/wrapper "2 wrapper_conf=" ${platform_dir}/. /conf/wrapper.conf "3 piddir=" ${nexus_home} "modify the following variable to set the start user to nexus:1 Run_as_user=nexus execute command add NEXUS self-start service 1 # chkconfig– Add Nexus2 # Chkconfig–levels 345 Nexus on perform the following command to start, stop Nexus Services 1 # service Nexus Start2 # service Nexus Stop official Nexus-maven private Service installation package: HTTP://WWW.SONATYPE.ORG/DOWNLOADS/NEXUS-LATEST-BUNDLE.TAR.GZ2 MAVEN Server Setup and configuration 2.1 maven Nexus OS operating environment   centos6.3 ip:192.168.0.249jdk1.6 apache-maven-3.1.0-bin.tar.gz nexus-2.6.0-05-bundle.tar.gz2.2jdk1.6 Installation and Configuration 2.2.1 Installation jdk1.6 to set up a maven, you first need to make sure that there is a JDK or JRE available in the system, and the following are the simple steps to install the JDK environment: 1) Download jdk1.6 GZ package 2) Unzip and install to the specified directory 2.2.2 Configure jdk1.6 environment variable 1) vi/etc/profile2) Add the following variables and then source under 3) to perform the Java and Javac command checks, 2.3 The installation configuration of the Maven 2.3.1 download the official Nexus-maven install software compression Pack http://www.sonatype.org/downloads/ nexus-latest-bundle.tar.gz download the corresponding Server installation package: nexus-2.6.0-05-bundle.tar.gz2.3.2 install maven 1) to upload the installation package to the and unzip 2) move to the specified installation path under Mv–r nexus-2.5.1-01/usr/maven2.3.3 boot server 1) into the Nexus installation directory 2) Use the Nexus executable script for service startup 3) to view Nexus Service status execution. Nexus stat View Nexus status 2.3.4 Configure Nexus Firewall will nexus default port in firewall open execute Vi/etc/sysconfig/iptables Insert the following two lines-a input-m state--state NE W-m tcp-p TCP--dport 8081-j accept-a input-m State--state new-m tcp-p TCP--dport 18080-j ACCEPT last reboot firewall here, nexus-m Aven The server has been installed, the next can be configured through the Web interface provided by the configuration Management 2.4 management configuration Nexus-maven 1) through the browser to open this Url:http://192.168.0.249:8081/nexus, The admin Main page appears 2) Click Log in at the top right of the page to login to the default user password is admin/admin123, after login to display the Management menu: 3) for repositories warehouse configuration point open repositories management items, You can see that the Nexus currently managed warehouse list management configuration can be implemented through this web interface, for example, to open the central repository on the local agent, just click on the warehouse, there are management options: on this pageThe face is set according to the requirements, simply put, as long as the "Download Remote Indexes" option to True, and then update the warehouse, the Agent warehouse can be enabled, the client can be configured to use the warehouse's jar package widget ; The management of other warehouses is also very convenient;

Maven Nexus for the Centos infrastructure development environment

Related Article

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.