CENTOS7 Nexus Installation Steps detailed introduction _docker

Source: Internet
Author: User

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!

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.