CENTOS7 Nexus Installation
CentOS7 Nexus Installation Download
- Download nexus-2.11.2-03-bundle.tar.gz from Nexus
Install
Upload the rpm file to the/tmp directory
mkdir/opt/Nexus
CD/opt/Nexus
Tar-ZXVF/tmp/Nexus-2.11.2-Geneva-Bundle.Tar.GZ
ln-SF/opt/Nexus/Nexus-2.11.2-Geneva/opt/Nexus/Latest
ln-SF/opt/Nexus/Latest/opt/Nexus/default
New user
---/bin/false
- HR Nexus : /opt/ Nexus
New/etc/init.d/nexus
#!/bin/sh
# chkconfig:-page
# description:nexus OSS
Nexus_home = /opt/ nexus / default
Run_as_user = nexus
java_home = / usr/ java / default
export Nexus_home run_as_user Java_ HOME
"$NEXUS _home/bin/nexus" \
$
exit $ ?
Give Execute permission
+/etc/init. D / Nexus
/opt/nexus/default/conf/nexus.properties
Application - Port = 9083
Nexus-webapp-context-path=/
Set boot up
Chkconfig Nexus on
New File/usr/lib/firewalld/services/jenkins.xml
<?XML version="1.0"encoding="Utf-8"?>
<service>
<short>Nexus</short>
<description>Nexus OSS</description>
<portProtocol="TCP"Port="9083"/>
</service>
Modify firewall settings
Firewall - ----add-service = Nexus
Firewall---reload
CENTOS7 Nexus Installation