다음 순서로 진행하면 된다.
nexus 를 다운 받고
다음을 따라함
http://www.sonatype.com/Products/Nexus-Professional
I decided to install Nexus.
This was quite exiting for me, because it was the first time I actually was about to setup an app all by myself on our local Dev server. But this exercise just proved that it was really simple.
This is what i did:
# While logged in to our dev server
cd /tmp
# Get nexus
wget http://nexus.sonatype.org/downloads/nexus-webapp-1.4.1-bundle.tar.gz
# Unpack
tar xvzf nexus-webapp-1.4.1-bundle.tar.gz
# Move it to wanted install dir
mv nexus-webapp-1.4.1 /usr/local/
cd /usr/local
# Create symb link to nexus
ln -s nexus-webapp-1.4.1 nexus
# Add path to nexus in global profile
emacs /etc/profile
# Make nexus executable
cd /usr/local/nexus/
chmod -R a+x bin |
First step done, nexus is downloaded an in a wanted directory on your server. Now a few steps more is needed to get it running:
# Make nexus run as service
cd /usr/local/nexus/bin/jsw
# Copy wanted linux version to the init dir to create a restartable instance of Nexus
cp linux-x86-32/nexus /etc/init.d/nexus
chmod 755 /etc/init.d/nexus
update-rc.d nexus defaults
emacs /etc/init.d/nexus
#Change nexus parameters:
APP_NAME="nexus"
APP_LONG_NAME="Sonatype Nexus Repository Manager"
NEXUS_HOME=/usr/local/nexus
PLATFORM=linux-x86-32
# Set local path to Java
JAVA_HOME=/usr/local/java
PATH=$PATH:$JAVA_HOME/bin
# Wrapper
WRAPPER_CMD=$NEXUS_HOME/bin/jsw/$PLATFORM/wrapper
WRAPPER_CONF=$NEXUS_HOME/conf/wrapper.conf
# Priority at which to run the wrapper. See "man nice" for valid priorities.
# nice is only used if a priority is specified.
PRIORITY=
# Location of the pid file.
PIDDIR="/var/run"
# Start service
service nexus start |