Last active
February 19, 2020 09:53
-
-
Save Tahooralisyed/8a9841d2d642a6766911bd88a4b0d4ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#dowload the latest version | |
sudo wget https://download.sonatype.com/nexus/3/latest-unix.tar.gz | |
#untar the download file | |
sudo tar -xf latest-unix.tar.gz | |
# change to ownership | |
sudo chown -R ec2-user:ec2-user sonatype-work/ nexus3/ | |
#list java packages | |
sudo yum list | grep java-1.8.0 | |
#install java | |
sudo yum install java-1.8.0-openjdk -y | |
#move to nexus.rc file and add run_as_user="ec2-user" | |
vim /nexus3/bin/nexus.rc | |
#create soft link | |
sudo ln -s /opt/nexus3/bin/nexus /etc/init.d/nexus | |
#change dirctore | |
cd /etc/init.d | |
# add nexus to chkconfig | |
sudo chkconfig --add nexus | |
#enble nexus on reboot | |
sudo chkconfig nexus on | |
# start nexus | |
sudo service nexus start | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment