CENTOS7 Nexus Installation

Source: Internet
Author: User

CENTOS7 Nexus Installation

CentOS7 Nexus Installation Download
    • Download nexus-2.11.2-03-bundle.tar.gz from Nexus
Install
    • Installation

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
    • Boot up

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
    • Set

/opt/nexus/default/conf/nexus.properties

Application - Port = 9083
Nexus-webapp-context-path=/

Set boot up

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 -  ----add-service = Nexus
Firewall---reload

CENTOS7 Nexus Installation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.