Sudo mkdir /etc/local/sonatype-work/nexus # create a directory for Nexus to use for working files Sudo mkdir /etc/local/sonatype-work # create a directory for Sonatype products to use for working files Sudo chown -RH nexus:nexus NEXUS_HOME # recursively change the owner of the nexus home directory to be the nexus user we created above Sudo chown –h nexus:nexus NEXUS_HOME # change the owner of the nexus home directory including symbolic links to be the nexus user we created above Sudo chown root /etc/init.d/nexus # change the owner of startup script to be root Sudo chmod 755 /etc/init.d/nexus # allow everyone to read and execute this file but only the owner can write to the file. Sudo cp NEXUS_HOME/bin/nexus /etc/init.d/nexus Sudo sh –c ‘echo “export NEXUS_HOME=/usr/local/nexus” > /etc/profile.d/nexus.sh’ Sudo adduser nexus # Create a user that will be used to run Nexus Sudo ln -s nexus-2.11.2.-06 nexus # create a symbolic link “nexus” to the versioned directory Sudo tar xvzf nexus-2.11.2. # extract the tarball Sudo cp nexus-2.11.2. /usr/local # copy the tarball to the /usr/local directoryĬd /usr/local # change directory to the location of the tarball Everything after the # is a comment for your better understanding, and does not need to be entered with the command, I have colored the comments green for clarity. Type the following commands into the terminal. Anywhere you see this name, you will need to change it to match your hostname. The server which I am using for this tutorial is named “quartz”. No prior knowledge is expected, and instead of giving instructions such as “create a user”, I will list exactly how to type each command. This tutorial shows you how to install Nexus on your computer.
0 Comments
Leave a Reply. |