1.0.0 Summary
Tittle:【Linux】-NO.9.Linux.5.Nexus.1.001-【CentOS 7 Install Nexus 3.3】-
Style:Linux
Series:Maven
Since:2017-04-17
End:2017-04-17
Total Hours:0.5
Degree Of Diffculty:1
Degree Of Mastery:1
Practical Level:1
Desired Goal:1
Archieve Goal:1
Gerneral Evaluation:1
Writer:kingdelee
Related Links:
http://www.cnblogs.com/kingdelee/
1.1.0
Download Nexus:
https://www.sonatype.com/download-oss-sonatype
Manual:
http://books.sonatype.com/nexus-book/reference3/install.html#service-linux
/usr/tools/nexus/nexus-3.3.0-01
vim /etc/profile
source /etc/profile
Set the user so that let it start nexus:
vim /usr/tools/nexus/nexus-3.3.0-01/bin/nexus.rc
Add NEXUS_HOME to bashrc:
vim ~/.bashrc
Set INSTALL4J_JAVA_HOME_OVERRIDE to nexus:
vim /usr/tools/nexus/nexus-3.3.0-01/bin/nexus
If you use init.d
instead of systemd
, symlink $NEXUS_HOME/bin/nexus
to /etc/init.d/nexus
:
sudo ln -s /usr/tools/nexus/nexus-3.3.0-01/bin/nexus /etc/init.d/nexus
systemd
This example is a script that uses systemd
to run the repository manager service. Create a file called nexus.service
. Add the following contents, then save the file in the /etc/systemd/system/
directory.
vim
vim /etc/systemd/system/nexus.service
[Unit] Description=nexus service After=network.target [Service] Type=forking ExecStart=/usr/tools/nexus/nexus-3.3.0-01/bin start ExecStop=/usr/tools/nexus/nexus-3.3.0-01/bin stop User=lee Restart=on-abort [Install] WantedBy=multi-user.target
chown lee:lee /etc/systemd/nexus.service chmod 777 /etc/systemd/nexus.service
sudo systemctl daemon-reload sudo systemctl enable nexus.service sudo systemctl start nexus.service reboot
1.2.0 admin
username:admin
password:admin123
1.2.1 configuration