Installation of sona type nexus on Linux server.
Sonatype Nexus System Requirements
- Minimum 1 VCPU & 2 GB Memory
- Server firewall opened for port 22 & 8081
- Java latest version
- All Nexus processes should run as a non-root nexus user.
After login to the server
step1:
sudo yum update -y
sudo yum install wget -y
Step2:
sudo yum install java-version-openjdk.x86_64 -y
Step3:
sudo wget -O nexus.tar.gz https://download.sonatype.com/nexus/3/latest-unix.tar.gz
Step4:
sudo tar -xvf nexus.tar.gz
sudo mv nexus-3* nexus
Step5:
sudo adduser nexus
Step6:
sudo chown -R nexus:nexus /opt/nexus
sudo chown -R nexus:nexus /opt/sonatype-work
Step7:
sudo vi /app/nexus/bin/nexus.rc
run_as_user="nexus"
Step8:
sudo chkconfig nexus on
sudo systemctl start nexus
Step9:
Open the ports 22 and 8081
Step10:
http://ipaddress:8081
Nice article. Thanks for the post.
ReplyDeleteLinux course in Pune