zoukankan      html  css  js  c++  java
  • linux nexus bulid

    1. 将下载好的nexus-2.5.1-bundle.tar.gz包,用FTP工具传至服务器上。

    2. 解压安装包

    解压命令

    1
        tar -zvxf nexus-2.5.1-bundle.tar.gz

    移至/usr/local

    1
    2
    3
    4
    5
        sudo cp nexus-2.5-01-bundle.tar.gz /usr/local
     
        cd /usr/local
     
        ls -n nexus-2.5-01 nexus

    nexus装在/usr/local目录下。

    可以编辑$NEXUS_HOME/conf/nexus.properties自定设置参数,包括端口号等。

    根据您的系统平台,可以启动nexus,启动命令:

    1
    ./nexus start

    ( 如果您是用 root 账号登录的,需要设置 RUN_AS_USER=root ,也可以新 增一个 nexus 用户来专门管理 nexus, 需要注此账户有权限访问、执行 nexus)

    2. 设置nexusLinux系统的服务,并开机自动启动

    1. 复制$NEXUS_HOME/bin/jsw/linux-x86-64/nexus 到/etc/init.d/nexus

    2. 授于nexus脚本有可执行的权限:

    1
        chmod 755 /etc/init.d/nexus

    3. 修改nexus文件,配置以下参数:

          a) 修改NEXUS_HOME 绝对路径,如:NEXUS_HOME="/usr/local/nexus"

          b) 设置RUN_AS_USER=nexus,或都其它的用户,前提是创建了此用户。

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
            NEXUS_HOME=/usr/local/nexus
     
            PLATFORM=linux-x86-64
     
            PLATFORM_DIR="${NEXUS_HOME}/bin/jsw/${PLATFORM}"
     
            WRAPPER_CMD="${PLATFORM_DIR}/wrapper"
     
            WRAPPER_CONF="${PLATFORM_DIR}/../conf/wrapper.conf"
     
            PIDDIR="${NEXUS_HOME}"

    4. Red Hat, Fedora, CentOS增加nexus服务:       

    1
    2
    3
    4
    5
    6
    7
    8
    9
        cd /etc/init.d
     
        chkconfig --add nexus
     
        chkconfig --levels 345 nexus on
     
        service nexus start
     
        tail -f /usr/local/nexus/logs/wrapper.log

    Ubuntu and Debian增加nexus服务        

    1
    2
    3
    4
    5
    6
    7
    8
    9
        cd /etc/init.d
     
        update-rc.d nexus defaults
     
        chkconfig --levels 345 nexus on
     
        service nexus start
     
        tail -f /usr/local/nexus/logs/wrapper.log

    配置完成后,您可以访问: http://localhost:8081/nexus(localhost为你的服务器地址),进入系统进行设置

    默认管理账号:admin 密码:admin123


  • 相关阅读:
    MySQL for mac使用记录
    Jquery中$.get(),$.post(),$.ajax(),$.getJSON()的用法总结
    前端学数据库之基础操作
    前端CSS预处理器Sass
    ionic + cordova+angularJs 搭建的H5 App完整版总结
    HTML5的新语义化的标签
    angularJS- $http请求
    SEO优化---学会建立高转化率的网站关键词库
    当AngularJS POST方法碰上PHP
    从一个程序员的角度看——微信小应用
  • 原文地址:https://www.cnblogs.com/signheart/p/6609572.html
Copyright © 2011-2022 走看看