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
linux 下 安装nexus,布布扣,bubuko.com
原文:http://www.cnblogs.com/johnfung/p/3659276.html