0.前提
maven jdk已经安装配置好
1.下载Nexus
wget https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-2.14.5-02-bundle.tar.gz
tar -zvxf nexus-2.14.5-02-bundle.tar.gz
mv nexus-2.14.5-02 /usr/local/nexus
2.配置Nexus
2.1 nexus/conf/nexus.properties (默认端口8081)
# Jetty section
application-port=10000
application-host=0.0.0.0
nexus-webapp=${bundleBasedir}/nexus
nexus-webapp-context-path=/nexus
# Nexus section
nexus-work=/home/workplace/sonatype-work
runtime=${bundleBasedir}/nexus/WEB-INF
# orientdb buffer size in megabytes
storage.diskCache.bufferSize=4096
2.2 设置RUN_AS_USER
vi /etc/profile
export RUN_AS_USER=root
2.3 Nexus首页
http://localhost:10000/nexus/
用户名:admin
密码:admin123