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