Jumat, 06 Juni 2025

NEXUS-pro install

 

Install Nexus Repository

The Nexus RepositoryTM distribution archives combine the application and required resources in an archive file. When testing Nexus RepositoryTM on a local workstation, the files may be extracted and run in any environment that supports a Java runtime.

Many decisions must be considered before deploying Nexus Repository. New installations are configured to start with an embedded H2 database with components stored in the local file system. Using the start script from the command line is not resilient to server crashes. While this may be fine for testing, they are not ideal for production deployments.

Review the Planning Your Deployment documentation before proceeding.

Unpack the Archive

The distribution archives are designed to be unpacked from the command line to avoid replacing or overwriting existing files in the directory. The command should create any missing files or directories.

Unpack the archive with the following command:

tar xvzf

Do not run Nexus Repository from a user's home directory for production deployments; a common practice is to use the /opt directory.

See Directories for a complete description of all files and folders in the archive.

  1. As the user account that runs Nexus Repository, download or copy the bundle into the Nexus Repository 3 Installation Directory.

    See the Downloads page.

  2. Extract the archive using a command specific to your bundle format.

    tar xvzf nexus-unix-x86-64-3.78.0-14.tar.gz
    tar xvzf nexus-unix-aarch64-3.78.0-14.tar.gz
    tar xvzf nexus-mac-x86-64-3.78.0-14.tar.gz
    tar xvzf nexus-mac-aarch64-3.78.0-14.tar.gz
  3. Extracting the archive populates the Application Directory and the parent of the default Data Directory.

    ./nexus-3.78.0-14
    ./sonatype-work


Running Nexus RepositoryTM

https://www.sonatype.com/thanks/nexus-repo-download?utm_campaign=2024%3A%20Repo%20Trial%20Nurture%20-%20Post%20Form%20Fill&utm_medium=email&_hsenc=p2ANqtz-9bsqDDqaRpI_3NaPAnjxCzMUGwsq7_UDpfmaVRJrj0gTdKE_a4XhHNkAgq9VOmSylD_PWt6fC4hwib9MVIbz0MAuPXTA&_hsmi=361072078&utm_content=361072078&utm_source=hs_automation


The archive in the Application directory includes a script to use to start the application. This script accepts the following commands:

start, stop, run, restart, force-reload, status

To start the Nexus Repository:

./nexus start

Logging is outputted to the application log file.

To stop the Nexus Repository running in the background:

./nexus stop

The application may run with logging displayed in the current shell for testing with the run command:

./nexus run

Starting with the run command leaves the application running in the current shell. The application can be stopped using CTRL+C in the console.

Running as a Service

Nexus Repository needs to be configured to run as a service when installing the software for production usage. This is so that the service restarts properly after the server reboots.

See Run as a Service


Tidak ada komentar:

Posting Komentar