zoukankan      html  css  js  c++  java
  • linux 下 安装nexus

    1. 获得root权限 
    [ferrari@localhost ~]$ su -  
    2. 下载nexus集成版 
    [root@localhost ~]# cd /usr/local 
    [root@localhost local]# wget http://192.168.47.2:8080/nexus-oss-webapp-1.6.0-bundle.zip  
    3. 解压缩 
    [root@localhost local]# unzip nexus-oss-webapp-1.6.0-bundle.zip [root@localhost local]# rm -rf nexus-oss-webapp-1.6.0-bundle.zip [root@localhost local]# ln -s nexus-oss-webapp-1.6.0 nexus  
    4. 设置为系统服务 
    [root@localhost local]# cd /etc/init.d 
    [root@localhost init.d]# cp /usr/local/nexus/bin/jsw/linux-x86-32/nexus ./nexus [root@localhost init.d]# chmod 755 nexus [root@localhost init.d]# chkconfig --add nexus 
    [root@localhost init.d]# chkconfig --levels 345 nexus on  
    5. 编辑/etc/init.d/nexus的文本 5.1. 添加以下变量 
    NEXUS_HOME=/usr/local/nexus PLATFORM=linux-x86-32 
    PLATFORM_DIR="${NEXUS_HOME}/bin/jsw/${PLATFORM}" 5.2. 修改以下变量 
    WRAPPER_CMD="${PLATFORM_DIR}/wrapper" 
    WRAPPER_CONF="${PLATFORM_DIR}/../conf/wrapper.conf"  
    PIDDIR="${NEXUS_HOME}"  
    6. 启动服务 
    [root@localhost init.d]# service nexus start

    作者:JohnFung
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利.
  • 相关阅读:
    困难的图论
    [Poi2011]Meteors
    四维偏序
    bzoj2738矩阵乘法
    创建线程的三种方式
    java邮件发送
    Nginx配置文件分析
    如何理解java反射?
    正则表达式
    jenkins新手入门教程
  • 原文地址:https://www.cnblogs.com/johnfung/p/3659276.html
Copyright © 2011-2022 走看看