cd /usr/local
mkdir nexus && cd nexus
wget http://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-3.6.0-02-unix.tar.gz
tar -xvf nexus-3.6.0-02-unix.tar.gz
cd /usr/local/nexus-3.6.0-02/nexus/bin
./nexus start
firewall-cmd --add-port=8081/tcp --permanent
firewall-cmd --reload
firewall-cmd --list-all
原文:https://www.cnblogs.com/crelle/p/13468791.html