1.在/usr/nexus文件下下载nexus;
wget https://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-3.9.0-01-unix.tar.gz
2.解压:
tar -zxvf nexus-3.9.0-01-unix.tar.gz
3.启动:./nexus start
修改/etc/profile文件:vim /etc/profile
最后一行添加;RUN_AS_USER=root
执行:source /etc/profile
4.关闭:./nexus stop
5.登录(需要确认8081端口开放):
账号:admin
密码:admin123