CENTOS7 Nexus Installation
CentOS7
Download
Nexus installation Download nexus-2.11.2-03-bundle.tar.gz
Install
Installation
Upload rpm files to/tmp directory
Mkdir/opt/nexus
cd/opt/nexus
tar-zxvf/tmp/nexus-2.11.2-03-bundle.tar.gz
ln-sf/opt/nexus/ Nexus-2.11.2-03/opt/nexus/latest
Ln-sf/opt/nexus/latest/opt/nexus/default
New user
Useradd-r Nexus--shell/bin/false
chown-hr Nexus:/opt/nexus
power-on Boot
New/etc/init.d/nexus
#!/bin/sh
# chkconfig:-
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 execution permission
chmod +x/etc/init.d/nexus
Set
/opt/nexus/default/conf/nexus.properties
application-port=9083
nexus-webapp-context-path=/
Setting up Boot
Chkconfig Nexus on
Firewall
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-cmd--permanent--add-service=nexus
Firewall-cmd--reload
Thank you for reading, I hope to help you, thank you for your support for this site!