1.在服务器上安装jdk

2.下载 nexus-3.14.0-04-unix.tar.gz,并上传到服务器/opt目录

3.解压 tar -zxvf nexus-3.14.0-04-unix.tar.gz

4. cd  到   /opt/nexus-3.14.0-04/bin  目录 ,执行命令: 命令:./nexus start    进行启动

5.取消防火墙

修改命令:iptables -I INPUT -p tcp --dport 8081 -j ACCEPT

保存命令:/etc/rc.d/init.d/iptables save

重启命令:service iptables restart

 

启动后 打开  ip:8081  进行访问,默认账号/密码 admin/admin123

常用nexus命令 :start|stop|run|run-redirect|status|restart|force-reload