参考:http://www.linuxidc.com/Linux/2016-08/134617.htm --------------------------- nexus的官网下载地址是:http://www.sonatype.org/nexus/go 找个最新版本地址
wget https://sonatype-download.global.ssl.fastly.net/nexus/oss/nexus-2.11.2-03-bundle.tar.gz mkdir nexus tar -xzvf nexus-2.11.2-03-bundle.tar.gz -C nexus cd nexus ls nexus-2.11.2-03 sonatype-work
(2)修改配置文件 cd nexus-2.11.2-03/conf vi nexus.properties #Jetty section application-port=8081 ##修改Jetty端口号 # nexus section nexus-work=${bundleBasedir}/../sonatype-work/nexus
保存以上修改 (3)配置用户 # vi /usr/local/nexus/nexus-2.11.2-03/bin/nexus #RUN_AS_USER= RUN_AS_USER=root 保存以上修改
若有设置防火墙,需前往修改防火墙配置并重启防火墙,此处略过......
(4)启动nexus
# /usr/local/nexus/nexus-2.11.2-03/bin/nexus start
****************************************
WARNING - NOT RECOMMENDED TO RUN AS ROOT
****************************************
Starting Nexus OSS...
Started Nexus OSS.
在浏览器打开:http://ip:8081/nexus,登录:用户名admin 默认密码:admin123
--------------- 然后修改maven配置文件,把私服写进去即可。
|