1
votes

How do I change Nexus OSS’s default data directory from /opt/sonartype to /data directory in Linux running on AWS? I have attached a larger volume and mounted it to /data directory so all Nexus repository data saves in /data location of Linux.

1

1 Answers

2
votes

The NXRM data directory is portable so can be moved with any cp/mv or drag and drop via the UI.

To tell NXRM where to find it, you need to update the nexus.vmoptions file located in your installation (not data) directory in the bin subfolder. See here for items you need to adjust.

Disclaimer: One thing I am unsure of is if you have the blobstore in the data directory if that's automatically picked up when you make the above adjustments or it needs a specific move. If you do need to move it, you can find information how here.