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
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/aee471f767d184a1eabab85edbfdedce.png)
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"
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/9ed728b4377db33f85a6c660862976bd.png)
4.修改端口
# vim /usr/local/software/nexus-3.9.0-01/etc/nexus-default.properties
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/a51ff790bd27cadb4e5d165bca6e3e39.png)
4.关闭防火墙,启动
/usr/local/software/nexus-3.9.0-01/bin/nexus start