前提条件: 先安装 jdk 和 maven
正文开始
这些都准备好之后,去下载最新版本的nexus 下载地址:http://www.sonatype.org/nexus/go
nexus-2.4.0-09-bundle
进入bin下
[root@localhost bin]# ./nexus
Usage: ./nexus { console | start | stop | restart | status | dump }
$ ./nexus start
Starting Nexus OSS...
Started Nexus OSS.
export RUN_AS_USER=root
./nexus start
./nexus console
这样就安装成功了
现在我们来通过url访问 配置
先去nexus/conf/nexus.properties 文件夹下看下端口号 默认是8081
下面访问 http://10.0.0.84:8081/nexus
然后登陆 默认账号和密码是 admin admin1234
OK可以了