Ask Sawal

Discussion Forum
Notification Icon1
Write Answer Icon
Add Question Icon

Jahzir Evenson




Posted Answers



Answer


Sonatype Nexus is a popular repository manager used worldwide for most of the components, binaries, and build artifacts. It comes with support for the Java Virtual Machine (JVM) ecosystem, including Gradle, Ant, Maven, and Ivy.

Compatible with standard tools including Eclipse, IntelliJ, Hudson, Jenkins, Puppet, Chef, Docker, etc., Sonatype Nexus repo can manage dev components through delivery for the binaries containers, assemblies, and finished goods.

In this tutorial, we will provide you a comprehensive guide on setting up Sonatype Nexus Repository OSS version on CentOS 7.

Before starting the tutorial, let’s look at the minimum system requirements for running the Sonatype Nexus Repo.

Begin with setting the Hostname.

Update your CentOS system.

Install Java using the following command:

After installation is complete, check the java version to make sure you are all set to go to the next step of downloading the Repo.

Navigate to the opt directory:

Copy the latest URL of the Repo from the official website and then download it using wget.

Extract the tar file.

You should see two directories, including nexus files and nexus data directory.

Rename the folders.

I. Add a user for a nexus service.

II. Set the ownership for nexus files and nexus data.

III. Change Nexus configuration and set the custom data directory

Edit “nexus.vmoptions”.

Change the data directory.

Save and exit the file.

IV. Change the user for the nexus service account.

Edit “nexus.rc” file.

Uncomment “run_as_user” parameter and add new value.

V. Stop listening for remote connections.

We need to modify the “nexus-default.properties” file.

Change application-host=0.0.0.0 to application-host=127.0.0.1.

VI. Configure the open file limit of the nexus user.

Add the below values to the file.

Save and the exit file.

Create the Systemd service file in “/etc/systemd/system/”.

Add the following to the file.

Reload systemctl.

Enable service on system boot.

Start service.

Monitor the log file.

Check the service port.

Setup epel Repositories.

List the repositories.

Install Nginx.

set nginx on system boot

check the status of Nginx and start service if the service is not running.

Then go to your DNS manager and add A record for your server.

Here we have used AWS route 53 to setup our DNS.

I. Install certbot packages first.

II. Install certificates.

It will ask a few questions and enter email, domain name, and needed inputs as follows.

After installation is done, open nginx.conf.

You can see certbot SSL configuration.

III. Add Proxy pass

Add the following contents to a Location Blocks.

Save and exit the file.

Check nginx syntax:

Restart Nginx:

Now enable https access to a specific public IP. Run the below command.

If you need to open https to public run below command:

Reload the firewall.

Sign in with the default user name as “admin.”  Run below command in the server and get the password.

After the first login, you should see a similar window, as shown below.

Click on next and set up a new password for the admin user.

Again, click on next, and you should see the “Configure Anonymous Access” window. Do not enable Anonymous Access.

Click on the Next button, and you can see the complete setup.

Click on the finish.

That’s all about installing the Sonatype Nexus Repository OSS on your CentOS 7.


Answer is posted for the following question.

How to install nexus in centos 7?

Answer


If you apply for financial aid, you may be offered loans as part of your called federal student loans , usually have more benefits than loans from banks


Answer is posted for the following question.

How to apply for more loans?

Answer


Depending on the year of manufacture of your jeep wrangler and its options, you can adjust height and depth of the steering wheel To do this,


Answer is posted for the following question.

How to adjust jeep tj steering wheel?


Wait...