Skip to content

Commit b0b9498

Browse files
authored
Merge pull request #1 from LandmakTechnology/master
Update READme.md
2 parents 4bff250 + ee4cc76 commit b0b9498

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nexus-installation/READme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
```sh
1818
#As a good security practice, Nexus is not advised to run nexus service as a root user,
1919
# so create a new user called nexus and grant sudo access to manage nexus services as follows.
20-
sudo hostname nexus
20+
sudo hostnamectl set-hostname nexus
2121
sudo useradd nexus
2222
# Grand sudo access to nexus user
2323
sudo echo "nexus ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/nexus
@@ -36,6 +36,7 @@ sudo yum install java-11-openjdk-devel java-1.8.0-openjdk-devel -y
3636
sudo wget http://download.sonatype.com/nexus/3/nexus-3.15.2-01-unix.tar.gz
3737
sudo tar -zxvf nexus-3.15.2-01-unix.tar.gz
3838
sudo mv /opt/nexus-3.15.2-01 /opt/nexus
39+
sudo rm -rf nexus-3.15.2-01-unix.tar.gz
3940
```
4041

4142
## Grant permissions for nexus user to start and manage nexus service

0 commit comments

Comments
 (0)