nexus-2.12.0-01(版本无所谓,大同小异) windows操做系统(主要是本身测试,没有使用linux,可是方法相同)
修改nexus的配置文件,不修改能够使用默认的,路径为nexus-2.12.0-01\conf\ nexus.properties
linux
# Jetty section application-port=8889 #application-host=0.0.0.0 application-host=127.0.0.1 nexus-webapp=${bundleBasedir}/nexus nexus-webapp-context-path=/nexus application-port-ssl=8443 # Nexus section nexus-work=${bundleBasedir}/../sonatype-work/nexus runtime=${bundleBasedir}/nexus/WEB-INF
运行nexus-2.12.0-01\bin\ nexus.bat(linux下就是nexus)最好使用管理员身份运行cmd,进入此目录以后执行如下操做(也能够直接运行nexus.bat会有提示操做): nexus.bat install(start,restart,stop,uninstall等) web
启动以后输入地址访问http://127.0.0.1:8889/nexus/windows
点击页面右上角的Log in按钮登陆(默认admin/admin123) app
登陆界面以下所示 webapp
点击Repositories以后就能够添加本身的jar包,我本身用到的主要就是3rd party 测试