zoukankan      html  css  js  c++  java
  • 【Linux】-NO.9.Linux.5.Nexus.1.001-【CentOS 7 Install Nexus 3.3】-

    1.0.0 Summary

    Tittle:【Linux】-NO.9.Linux.5.Nexus.1.001-【CentOS 7 Install Nexus 3.3】-

    Style:Linux

    Series:Maven

    Since:2017-04-17

    End:2017-04-17

    Total Hours:0.5

    Degree Of Diffculty:1

    Degree Of Mastery:1

    Practical Level:1

    Desired Goal:1

    Archieve Goal:1

    Gerneral Evaluation:1

    Writer:kingdelee

    Related Links:

    http://www.cnblogs.com/kingdelee/

    1.1.0

    Download Nexus:

    https://www.sonatype.com/download-oss-sonatype

    Manual:

    http://books.sonatype.com/nexus-book/reference3/install.html#service-linux

    /usr/tools/nexus/nexus-3.3.0-01

    vim /etc/profile

    source /etc/profile
    

      

    Set the user so that let it start nexus:

    vim /usr/tools/nexus/nexus-3.3.0-01/bin/nexus.rc
    

      

    Add NEXUS_HOME to bashrc:

    vim ~/.bashrc

    Set INSTALL4J_JAVA_HOME_OVERRIDE to nexus:

    vim /usr/tools/nexus/nexus-3.3.0-01/bin/nexus
    

       

    If you use init.d instead of systemd, symlink $NEXUS_HOME/bin/nexus to /etc/init.d/nexus:

    sudo ln -s /usr/tools/nexus/nexus-3.3.0-01/bin/nexus /etc/init.d/nexus
    

      

    systemd

    This example is a script that uses systemd to run the repository manager service. Create a file called nexus.service. Add the following contents, then save the file in the /etc/systemd/system/ directory.

    vim 

    vim /etc/systemd/system/nexus.service 
    [Unit]
    Description=nexus service
    After=network.target
    
    [Service]
    Type=forking
    ExecStart=/usr/tools/nexus/nexus-3.3.0-01/bin start
    ExecStop=/usr/tools/nexus/nexus-3.3.0-01/bin stop
    User=lee
    Restart=on-abort
    
    [Install]
    WantedBy=multi-user.target
    
    chown lee:lee /etc/systemd/nexus.service
    chmod 777 /etc/systemd/nexus.service

    sudo systemctl daemon-reload
    sudo systemctl enable nexus.service
    sudo systemctl start nexus.service
    
    reboot
    

      

    1.2.0 admin

    username:admin

    password:admin123

    1.2.1 configuration

      

      

  • 相关阅读:
    分布式唯一ID:雪花ID Snowflake .Net版
    jTopo HTML5 Canvas 画图组件
    运用四色建模法进行领域分析
    .netcore 分布式事务CAP2.6之控制台使用
    .netcore 分布式事务CAP2.6 快速入门
    .NetCore从零开始使用Skywalking分布式链路追踪系统
    Docker安装Skywalking APM分布式追踪系统
    ubuntu18.04安装docker
    github超级小白入门攻略
    记录AJAX充电点点滴滴
  • 原文地址:https://www.cnblogs.com/kingdelee/p/6721059.html
Copyright © 2011-2022 走看看