zoukankan      html  css  js  c++  java
  • Debian安装Nexus

    前置条件

    安装jdk (如果使用 nexus-2.6 以上版本需要jdk7)
    1 apt-get install openjdk-6-jre / apt-get install openjdk-6-jdk 测试: 在命令行中打java命令 是否有效命令 备注: 安装jdk方法 apt-get install openjdk-6-jre apt-get autoremove openjdk-6-jre

    安装步骤:

    1. 下载 nexus-2.5.1-bundle.tar.gz
    2. 传送至root目录下
    3.解压 tar -zvxf nexus-2.5.1-bundle.tar.gz
    4. cp -r /root/nexus-2.5.1-01 /usr/local
    5. ln -s nexus-2.5.1-01 nexus (进行软连接 ,类似定义一个)
    6. 到nexus/bin/jws/制定操作系统的目录下
    7. 执行 ./nexus start 测试: 访问地址: http://192.168.1.106:8081/nexus
    8.解压缩后 进入 nexus-2.10.0-02-bundle/nexus-2.10.0-02/bin/jsw/conf
    9.修改wrapper.conf文件 修改 wrapper.java.command=jdk所在目录/bin/java (一定要带java,网上很多教程都没带java)
    10.然后进入 cd nexus-2.10.0-02-bundle/nexus-2.10.0-02/bin 目录 执行 ./nuxus start 就可以启动nuxus啦nexus的操作:nexus { console | start | stop | restart | status | dump }
    注意:

    1、这时候提示:

    ****************************************
    WARNING – NOT RECOMMENDED TO RUN AS ROOT
    ****************************************
    If you insist running as root, then set the environment variable RUN_AS_USER=root before running this script.

    大概意思就是要在环境配置export RUN_AS_USER=root,临时配置

    在命令行下输入:

    export RUN_AS_USER=root

    然后执行,就不会再提示了
    ./nexus start

    2、也可以在系统里面永久配置

    vi /etc/profile  加入export RUN_AS_USER=root

    3、在地址栏里面输入:http://localhost:8081/nexus

  • 相关阅读:
    Javascript FP-ramdajs
    微信小程序开发
    SPA for HTML5
    One Liners to Impress Your Friends
    Sass (Syntactically Awesome StyleSheets)
    iOS App Icon Template 5.0
    React Native Life Cycle and Communication
    Meteor framework
    RESTful Mongodb
    Server-sent Events
  • 原文地址:https://www.cnblogs.com/duyinqiang/p/5164333.html
Copyright © 2011-2022 走看看