1.下载nexus-3.9.0-01-unix.tar.gz
cd /usr/local/software/
wget https://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-3.9.0-01-unix.tar.gz
2.解压安装nexus-2.1.2
tar -zxvf nexus-3.9.0-01-unix.tar.gz

3.配置nexus.properties
vi nexus-3.9.0-01/conf/nexus.properties
3.编辑 nexus 脚本(检查)
# vim /usr/local/software/nexus-3.9.0-01/bin/nexus.rc
# run_as_user=""
改为
run_as_user="root"

4.修改端口
# vim /usr/local/software/nexus-3.9.0-01/etc/nexus-default.properties

4.关闭防火墙,启动
/usr/local/software/nexus-3.9.0-01/bin/nexus start