How to Install and Manage Sonatype Nexus 2.11.3 on Ubuntu Desktop 15.04, 14.04 - Cloud Network

Networking | Support | Tricks | Troubleshoot | Tips

Buymecoffe

Buy Me A Coffee

Sunday, June 21, 2015

How to Install and Manage Sonatype Nexus 2.11.3 on Ubuntu Desktop 15.04, 14.04



Hello Everyone,

In this tutorial,

Let us Install and Manage Sonatype  Nexus 3 on Ubuntu Desktop 15.04 – 64Bit 

You can also install in Debain 8, Linux Mint 17.2


Website :- http://www.sonatype.com/

Requirment :- http://www.sonatype.com/nexus/try-compare-buy/nexus-requirements


Install Oracle JDK Java (JRE/JDK)

Download Java from Website :- http://www.oracle.com/technetwork/java/javase/downloads/index.html

Watch Video How to Install JDK Java :- https://goo.gl/CYnMQj

Type 'su' and then type "sudo apt-get update" then follow below steps :-

Step1 :- sudo apt-get install openjdk-8-jre
Step2 :- sudo apt-get install -y openjdk-8-jdk
Step3 :- java  -version 

Repository Management with Nexus

Downloading Nexus OSS Website :- http://www.sonatype.org/nexus/go

Step4 :- cd /usr/local

Step5 :- sudo mkdir nexus

Step6 :- sudo wget https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-2.11.3-01-bundle.tar.gz

Step7 :- sudo tar  -xvzf  nexus-2.11.3-01-bundle.tar.gz


For Nexus Pro the equivalent commands would be
Step8 :- unzip nexus-professional-2.11.3-01-bundle.zip 
Step9 :- tar xvzf nexus-professional-2.11.3-01-bundle.tar.gz

Note :- If you are installing Nexus on a server, you might want to use a directory other than your home directory. 
On a Unix machine, this book assumes that Nexus is installed in/usr/local/nexus-2.11.3-01 with a symbolic link/usr/local/nexus to the nexus directory.

Step10 :- sudo cp nexus-2.11.3-01-bundle.tar.gz  /usr/local
Step11 :- cd /usr/local
Step12 :- sudo tar xvzf nexus-2.11.3-01-bundle.tar.gz
Step13 :- sudo ln -s nexus-2.11.3-01/  nexus


Set up some variable (using the global profile).
Step14 :- sudo gedit /etc/profile

And add these lines
export NEXUS_PLATFORM=linux-x86-64
export NEXUS_HOME=/usr/local/nexus-2.11.3-01
export NEXUS_EXEC=$NEXUS_HOME/usr/local/nexus-2.11.3-01/bin/$NEXUS_PLATFORM
export PATH=$NEXUS_EXEC:$PATH

Modify the file that launches Nexus
Step15 :- sudo gedit $NEXUS_EXEC/nexus
       
And modify these lines
# Application
APP_NAME="nexus"
APP_LONG_NAME="Sonatype Nexus OSS“
# Location of the pid file.
PIDDIR="/var/run”

Step16 :- sudo cp $NEXUS_EXEC/nexus /etc/init.d/nexus
Step17 :- sudo chmod 755 /etc/init.d/nexus
Step18 :- sudo update-rc.d nexus defaults

Step19 :- sudo gedit /etc/init.d/nexus
Add the lines COMMAND_LINE="/usr/local/nexus-2.11.3-01/bin/jsw/linux-x86-64/nexus start"
eval $COMMAND_LINE

Step20 :- sudo chmod 755  /etc/init.d/nexus
Step21 :- sudo update-rc.d  nexus defaults


Upgrading Nexus
To upgrade Nexus, unpack the Nexus archive in the directory that contains the existing Nexus installation. Once the archive is unpacked, the new Nexus application directory should be a sibling to your existing sonatype-work/ directory.

Running Nexus
When you start Nexus, you are starting a web server on the default port 0.0.0.0:8081. Nexus runs within a servlet container called Eclipse Jetty, and it is started with a native service wrapper called the Tanuki Java Service Wrapper. 

To start Nexus on a Unix-like platform like Linux, Mac OS X or Solaris use
cd /usr/local/nexus-2.11.3-01/bin
./bin/nexus console
./bin/nexus start
tail -f logs/wrapper.log

To use Nexus, fire up a web browser and type in the URL 
http://localhost:8081/nexus.

The default administrator username and password combination is admin and admin123.


*********************************************************************************
Please Bye Web Hosting from any site HostGator, GoDaddy and Bluehost, I will get Small %. Just Click Below Link to Redirect to Website.

PLEASE Click Below Link to Redirect to HostGator Web Hosting….
http://goo.gl/znPKM8

PLEASE Click Below Link to Redirect to Bluehost Web Hosting…
http://goo.gl/tGawjL

--------------------------------------------------------------------------------------------------------------
For Your Information Only

I am Willing to Make a FREE or CHARGE Website, if YOU WANT ME TO MAKE A VIDEOS ON Different Technologies/field I WILL DO IT..

Watch Others Videos and Have any Quries Email to me on (itcloudnet@gmail.com)
----------------------------------------------------------------------------------------------------------------

NOTE :- For Any Clarification Please Comment Below

Comment, 
Like and 
Share us and help us to spread.

####--------------------------­------------------------------­------------------------------­####

Subscribe to Cloud Network :- http://goo.gl/LjKGzc

Website :- http://www.cloudnetwork.in

Like us on Facebook :- http://facebook.com/itcloudnetwork

Follow us on Twitter :- http://twitter.com/itcloudnet

Circle us on Google+ :- https://goo.gl/StVdHb

Pin us on Pinterset :- http://pinterset.com/itcloudnet

Add us on LinkedIn :- http://in.linkedin.com/pub/itcloudnet

Skype Id :- cloud.network1

E-Mail Id :- itcloudnet@gmail.com

####--------------------------­------------------------------­------------------------------­--####

Thanking You
Hope U Like it........