[root@i-pua208dt vhost]# uname -r
3.10.0-229.4.2.el7.x86_64
1 安裝maven
# yum install maven
2 下載nexus
Nexus下載地址:http://www.sonatype.org/nexus/archived/#step2top
# wget http://download.sonatype.com/nexus/oss/nexus-2.11.3-01-bundle.tar.gz
# tar -zxvf nexus-2.11.3-01-bundle.tar.gz
# cd nexus-2.11.3-01
# vim conf/nexus.properties(修改以下倆項配置)
application-port=8081
application-host=192.168.100.7
# cd bin/
# vim nexus(修改啓動腳本里的服務運行目錄以及服務運行的用戶)
NEXUS_HOME="/usr/local/nexus"
RUN_AS_USER=root
# mv nexus-2.11.3-01/ /usr/local/nexus
# echo "export PATH=/usr/local/nexus/bin:$PATH" >> /etc/profile
# source /etc/profile
# nexus start
# tailf /usr/local/nexus/logs/wrapper.log
nginx反向代理配置
#maven
location ^~ /nexus {
proxy_pass http://192.168.100.7:8081/nexus;
proxy_set_header Host $http_host;
}