Debian装配Nexus
Debian安装Nexus
简介
debian安装nexus有两种安装方式,一种是war包,一种是bundle(内涵jetty包)
前置条件
安装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-jreapt-get autoremove openjdk-6-jre
安装步骤:
1. 下载 nexus-2.5.1-bundle.tar.gz2 ftp传送至root目录下3 解压 tar -zvxf nexus-2.5.1-bundle.tar.gz4. cp -r /root/nexus-2.5.1-01 /usr/local5 ln -s nexus-2.5.1-01 nexus (进行软连接 ,类似定义一个)6 到nexus/bin/jws/制定操作系统的目录下7 执行 ./nexus start测试:访问地址: http://192.168.1.106:8081/nexus
备注:
1.可以通过aptitude search "包名" 进行模糊查询
2.下载jdk(或者其它组件)地址无法访问的问题,可以更新/etc/apt/sources.list文件
1.编辑文件
2.更新完以后执行 apt-get update
常用地址:
deb http://debian.ustc.edu.cn/debian stable main contrib non-free
deb-src http://debian.ustc.edu.cn/debian stable main contrib non-free
问题:
1 cp: omitting directory”的提示信息解决: 执行时出现”cp: omitting directory”的提示信息,则请使用cp -r参数来递归拷贝这些文件。
2.ls -n nexus-2.5.1-01 nexus 出错,说nexus解决:这个是 《Linux 安装Maven和nexus代理仓库文章中的错误》,其实是 使用 ln -s nexus-2.5.1-01 nexus 才对3 If you insist running as root, then set the environment variable RUN_AS_USER=root before running this script.解决::修改vi nexus 的 RUN_AS_USER=root
参考文章:
1 Linux 安装Maven和nexus代理仓库2 Linux 安装Maven和nexus代理仓库3 Linux安装配置maven3.0以及搭建nexus服务器