简介:
nexus是maven的私服,具体自己百度
安装
2.1 java环境
[root@localhost bin]# java -version java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) [root@localhost bin]# [root@localhost bin]#
2.3 创建目录
mkdir -p /application/nexus
2.4 下载安装包
官网自己下载 [root@localhost ~]# cd /application/ [root@localhost ~]# tar xf nexus-2.11.4-01-bundle.tar.gz -C /application/nexus [root@localhost application]# ll total 219192 lrwxrwxrwx 1 root root 11 Dec 29 04:47 jdk -> jdk1.7.0_80 drwxr-xr-x 8 10 143 4096 Apr 11 2015 jdk1.7.0_80 -rw-r--r-- 1 root root 153507711 Jul 22 11:14 jdk-1.7.0_80.tar.gz drwxr-xr-x 4 root root 48 Dec 29 04:57 nexus -rw-r--r-- 1 root root 70938260 Dec 28 20:49 nexus-2.11.4-01-bundle.tar.gz [root@localhost application]#
2.5 修改配置文件
[root@localhost bin]# pwd /application/nexus/nexus-2.11.4-01/bin RUN_AS_USER=root #不修改会启动报错
2.6 启动nexus
[root@localhost bin]# pwd /application/nexus/nexus-2.11.4-01/bin [root@localhost bin]# ./nexus start
2.7 浏览器浏览
http://192.168.56.14:8081/nexus
默认的密码是admin admin123