Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/el-zedy/deploy-nexus-repository-manager
Steps to deploy Nexus Repository Manager on a server
https://github.com/el-zedy/deploy-nexus-repository-manager
Last synced: 6 days ago
JSON representation
Steps to deploy Nexus Repository Manager on a server
- Host: GitHub
- URL: https://github.com/el-zedy/deploy-nexus-repository-manager
- Owner: El-Zedy
- Created: 2023-04-27T20:13:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-27T21:03:16.000Z (over 1 year ago)
- Last Synced: 2024-11-18T13:39:35.329Z (2 months ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deploy Nexus Repository Manager :technologist:
Step by step guid to deploy Nexus Repository Manager on a server
### Access a server terminal as root:
1 - Update server packages
apt update
2 - Install OpenJDK 8 JREapt install openjdk-8-jre-headless
3 - Go to /opt directory to keep the system's file hierarchy clean and separate from the operating system filescd /opt
4 - Download the latest version of Nexus 3, our popular repository manager, in the form of a compressed tarball filewget https://download.sonatype.com/nexus/3/latest-unix.tar.gz
5 - Extract the contents of a compressed tarball file that was downloaded ---> `nexus-3.28.1-01` & `sonatype-work`tar -zxvf latest-unix.tar.gz
6 - Create dedicated `nexus user` with minimal permissionsadduser nexus
7 - Change the ownership of the "nexus-3.28.1-01" & "sonatype-work" directories and all its contents recursively to the user and group "nexus"chown -R nexus:nexus nexus-3.28.1-01
chown -R nexus:nexus sonatype-work
8 - Edit nexus configuration file `nexus.rc` to set `run_as_user` to `nexus user` indicating that the service should be run under the user account named "nexus"vi nexus-3.28.1-01/bin/nexus.rc
run_as_user="nexus"
9 - Start the Nexus Repository Manager servicesu - nexus
/opt/nexus-3.28.1-01/bin/nexus start
10 - Finally to check if the Nexus Repository Manager process is running, what ports it is listening on, and if there are any network connectivity issues.
exit ---> become root again
apt install net-tools
su - nexus
ps aux | grep nexus ---> check nexus process
netstat -lnpt ---> check nexus port to access it
11 - **While the process is running and we have the port it is listening on you can access it successfully :tada::tada:**