

XX:LogFile=./sonatype-work/nexus3/log/jvm.log sudo vi /app/nexus/bin/nexus.vmoptionsĪn example configuration is shown below. So that backup and restore can be done easily. Tip: For production setup, it is is always better to mount the nexus data directory to a separate data disk attached to the server. If you don’t specify anything, by default nexus data directory will be set to /app/sonatype-work/nexus3 Step 7: If you want to change the default nexus data directory, open the nexus properties file and change the data directory -Dkaraf.data parameter to a preferred location as shown below. Uncomment run_as_user parameter and set it as following.

Step 6: Open /app/nexus/bin/nexus.rc file sudo vi /app/nexus/bin/nexus.rc Sudo chown -R nexus:nexus /app/sonatype-work sudo adduser nexusĬhange the ownership of nexus files and nexus data directory to nexus user. So create a new user named nexus to run the nexus service. Step 5: As a good security practice, it is not advised to run nexus service with root privileges. You can get the latest download links fo for nexus from here. Step 3: Create a directory named app and cd into the directory. Step 2: Install OpenJDK 1.8 sudo yum install java-1.8.0-openjdk.x86_64 -y Step 1: Login to your Linux server and update the yum packages. Note: This was tested on a Redhat machine and it will work on Centos or related Linux flavors as well. This article guides you to install and configure Sonatype Nexus 3 in a secure way on an ec2 Linux System. Check out the official system requirements document for detailed information Sonatype Nexus 3 on Linux ec2 Note: For production setup, please consider minimum production hardware requirements based on the nexus usage and data storage.

It effectively manages deployable artifacts. It is some tool that you cannot avoid in your CI/CD pipeline. Sonatype Nexus is one of the best open-source artifact management tools.
