From d7a5a57bc71406d711e80cb4972d22ef18f4a3dc Mon Sep 17 00:00:00 2001 From: LandmarkTechnology <70292434+legah2045@users.noreply.github.com> Date: Sun, 11 Dec 2022 16:08:42 -0500 Subject: [PATCH 1/2] Update READme.md --- nexus-installation/READme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nexus-installation/READme.md b/nexus-installation/READme.md index de11daf7..9d177c43 100644 --- a/nexus-installation/READme.md +++ b/nexus-installation/READme.md @@ -17,7 +17,7 @@ ```sh #As a good security practice, Nexus is not advised to run nexus service as a root user, # so create a new user called nexus and grant sudo access to manage nexus services as follows. -sudo hostname nexus +sudo hostnamectl set-hostname nexus sudo useradd nexus # Grand sudo access to nexus user sudo echo "nexus ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/nexus From ee4cc760d1f06912f424d391d28dbf308c5706a8 Mon Sep 17 00:00:00 2001 From: LandmarkTechnology <70292434+legah2045@users.noreply.github.com> Date: Sun, 11 Dec 2022 16:12:39 -0500 Subject: [PATCH 2/2] Update READme.md --- nexus-installation/READme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/nexus-installation/READme.md b/nexus-installation/READme.md index 9d177c43..d88f1195 100644 --- a/nexus-installation/READme.md +++ b/nexus-installation/READme.md @@ -36,6 +36,7 @@ sudo yum install java-11-openjdk-devel java-1.8.0-openjdk-devel -y sudo wget http://download.sonatype.com/nexus/3/nexus-3.15.2-01-unix.tar.gz sudo tar -zxvf nexus-3.15.2-01-unix.tar.gz sudo mv /opt/nexus-3.15.2-01 /opt/nexus +sudo rm -rf nexus-3.15.2-01-unix.tar.gz ``` ## Grant permissions for nexus user to start and manage nexus service