Debian install Nexus

Source: Internet
Author: User
Tags ftp transfer

Introduction

Debian has two ways to install nexus: war package and bundle)
Prerequisites
Install jdk (jdk 7 is required if nexus-2.6 or later is used)
1 apt-get install openjdk-6-jre/apt-get install openjdk-6-jdk test: run the java command in the command line is valid Note: install jdk method apt-get install openjdk-6-jre apt-get autoremove openjdk-6-jre
Installation steps:
1. download nexus-2.5.1-bundle.tar.gz2 ftp transfer to root directory 3 unzip tar-zvxf nexus-2.5.1-bundle.tar.gz4. cp-r/root/nexus-2.5.1-01/usr/local5 ln-s nexus-2.5.1-01 nexus (for soft connection, similar to defining one) 6. Execute the command in the directory of nexus/bin/jws/operating system. /nexus start test: Access address: http: // 192.168.1.106: 8081/nexus
Note: 1. you can use aptitude search "package name" to perform fuzzy search. 2. if the jdk (or other components) address cannot be accessed, update/etc/apt/sources. list file 1. edit file 2. run apt-get update after update common address: deb http://debian.ustc.edu.cn/debian stable main contrib non-free deb-src http://debian.ustc.edu.cn/debian stable main contrib non-free Problem:
1 cp: omitting directory. The prompt message "cp: omitting directory" appears during execution. Use the cp-r parameter to recursively copy these files.
2. ls-n nexus-2.5.1-01 nexus error, saying nexus solution: this is an error in installing Maven and nexus agent repository in Linux. in fact, ln-s nexus-2.5.1-01 nexus is used for 3 If you insist running as root, then set the environment variable RUN_AS_USER = root before running this script. solution: Modify RUN_AS_USER = root of vi nexus.
References:
1 install Maven and nexus agent repository in Linux 2 install Maven and nexus agent repository in Linux 3 install and configure maven3.0 in Linux and build a nexus private server

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.