INSTALLING NEXUS ON CENTOS
1. PRE-REQUISITES:-
=============
A. Min 4GB ram
B. Java must be installed
2. make sure the port 8081 is not occupied by other application
# netstat -tupln |grep 8081
3. navigate to opt directory
# cd /opt
4. download the tar file to opt directory
# wget https://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-3.0.2-02-unix.tar.gz
5. untar the downloaded file
# tar -zxvf nexus-3.0.2-02-unix.tar.gz
6. rename the untared file with nexus/nexus3
# mv nexus-3.0.2-02 nexus
7. create a nexus user and passowrd
# useradd nexus && passwd nexus
8. change the ownership from root to nexus of /opt/nexus directory
# chown -R nexus:nexus /opt/nexus
9. open the following file, add following
# vi /opt/nexus/bin/nexus.rc
———————————————–
run_as_user=”nexus”
———————————————–
10. create a symlink
# ln -s /opt/nexus/bin/nexus /etc/init.d/nexus
11. now switch to nexus user
# su – nexus
12. run the following commands
# sudo chkconfig –add nexus
# sudo chkconfig –levels 345 nexus on
# sudo service nexus start
# sudo service nexus status
13. open the browser andhit http://ip:8081
Recent Comments