File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 17
17
``` sh
18
18
# As a good security practice, Nexus is not advised to run nexus service as a root user,
19
19
# 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
21
21
sudo useradd nexus
22
22
# Grand sudo access to nexus user
23
23
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
36
36
sudo wget http://download.sonatype.com/nexus/3/nexus-3.15.2-01-unix.tar.gz
37
37
sudo tar -zxvf nexus-3.15.2-01-unix.tar.gz
38
38
sudo mv /opt/nexus-3.15.2-01 /opt/nexus
39
+ sudo rm -rf nexus-3.15.2-01-unix.tar.gz
39
40
```
40
41
41
42
## Grant permissions for nexus user to start and manage nexus service
You can’t perform that action at this time.
0 commit comments