Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos7 install sonatype nexus3.19

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Download nexus-3.19.1-01-unix.tar.gz2. Download jdk-8u161-linux-x64.tar.gz remarks: nexus3.19 must run above jdk1.8 3. Decompress: # tar-zvxf nexus-3.19.1-01-unix.tar.gz4. Default configuration file:.. / nexus-3.19.1-01/etc/nexus-default.properties [cqs@centos7 etc] $cat nexus-default.properties # # DO NOT EDIT-CUSTOMIZATIONS BELONG IN $data-dir/etc/nexus.properties# Jetty sectionapplication-port=8081application-host=0.0.0.0nexus-args=$ {jetty.etc} / jetty.xml,$ {jetty.etc} / jetty-http.xml ${jetty.etc} / jetty-requestlog.xmlnexus-context-path=/# Nexus sectionnexus-edition=nexus-pro-editionnexus-features=\ nexus-pro-featurenexus.hazelcast.discovery.isEnabled=true [cqs@centos7 etc] $pwd/home/cqs/data/nexus/nexus-3.19.1-01/etc Note: the default java environment is 1.7 Nexus3 needs to use jdk1.8 to download jdk1.8 's tar.ga package. Put it in the / home/java8 directory, decompress it, and no longer reconfigure the environment variables. Modify the nexus file vi / home/nexus/nexus-3.0.1-01/bin/nexus#nexus under nexus3 bin and specify jdk8INSTALL4J_JAVA_HOME_OVERRIDE=/data/jdk1.8.0_91. Otherwise, it will prompt: Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.

4. Run nexus

[cqs@centos7 bin] $. / nexus start Starting nexus [cqs@centos7 bin] $ps-ef | grep nexus cqs 11069 1 99 19:20 pts/0 00:00:45 / home/cqs/data/jdk/jdk1.8.0_161/bin/java-server-Dinstall4j.jvmDir=/home/cqs/data/jdk/jdk1.8.0_161-Dexe4j.moduleName=/home/cqs/data/nexus/nexus-3.19.1-01 / bin/nexus-XX:+UnlockDiagnosticVMOptions-Dinstall4j.launcherId=245-Dinstall4j.swt=false-Di4jv=0-Xms2703m-Xmx2703m-XX:MaxDirectMemorySize=2703m-XX:+UnlockDiagnosticVMOptions-XX:+LogVMOutput-XX:LogFile=../sonatype-work/nexus3/log/jvm.log-XX:-OmitStackTraceInFastThrow-Djava.net.preferIPv4Stack=true-Dkaraf.home=. -Dkaraf.base=. -Dkaraf.etc=etc/karaf-Djava.util.logging.config.file=etc/karaf/java.util.logging.properties-Dkaraf.data=../sonatype-work/nexus3-Dkaraf.log=../sonatype-work/nexus3/log-Djava.io.tmpdir=../sonatype-work/nexus3/tmp-Dkaraf.startLocalConsole=false-Djava.endorsed.dirs=lib/endorsed-Di4j.vpt=true-classpath / home/cqs/data/nexus/nexus-3.19.1-01/.install4j/i4jruntime.jar:/home/cqs/data/nexus / nexus-3.19.1-01/lib/boot/nexus-main.jar:/home/cqs/data/nexus/nexus-3.19.1-01/lib/boot/activation-1.1.1.jar:/home/cqs/data/nexus/nexus-3.19.1-01/lib/boot/jaxb-api-2.2.7.jar:/home/cqs/data/nexus/nexus-3.19.1-01/lib/boot/jaxb-core-2.2. 7.jar:/home/cqs/data/nexus/nexus-3.19.1-01/lib/boot/jaxb-impl-2.2.7.jar:/home/cqs/data/nexusnexus-3.19.1-01/lib/boot/org.apache.karaf.main-4.2.6.jar:/home/cqs/data/nexus/nexus-3.19.1-01/lib/boot/org.osgi.core-6.0.0.jar:/home/cqs/data/ Nexus/nexus-3.19.1-01/lib/boot/org.apache.karaf.specs.activator-4.2.6.jar:/home/cqs/data/nexus/nexus-3.19.1-01/lib/boot/org.apache.karaf.diagnostic.boot-4.2.6.jar:/home/cqs/data/nexus/nexus-3.19.1-01/lib/boot/org.apache.karaf.jaas.boot-4.2.6.jar com.install4j.runtime .launcher.UnixLauncher start 9d17dc87 0 0 org.sonatype.nexus.karaf.NexusMain

5. Visit and login: http://localhost:8081

User name: admin password: check the password via.. / nexus/sonatype-work/nexus3, and change the admin password after login

[cqs@centos7 sonatype-work] $cd nexus3/

[cqs@centos7 nexus3] $ls

Admin.password cache elasticsearch generated-bundles karaf.pid lock orient restore-from-backup

Blobs db etc instances keystores log port tmp

[cqs@centos7 nexus3] $cat admin.password

Ff3ca76a-2956-4153-8a48-70d760a73625

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report