nexus 快速安装指南
1)下载
nexus-2.9.2-01-bundle.zip
地址:
http://www.sonatype.org/nexus/
2)解压
redhat服务器:/opt下面
出现2个目录:
/opt/nexus-2.9.2-01
/opt/snatype-work
3)配置
修改文件:
/opt/nexus-2.9.2-01/conf/nexus.properties
...
application-port=80
...
4)启动nexus
/opt/nexus-2.9.2-01/bin/nexus
export RUN_AS_USER=root
/opt/nexus-2.9.2-01/bin/nexus start
5)访问
http://yourhostname/nexus
6)反向代理配置
如果nexus被置于反向代理nginx后面,需要增加下面的配置:
server { ... # nexus location /nexus { proxy_pass http://yourhostname; } }
7)反向代理配置URL
进入 http://your-domain/nexus
左边点击:Administration/Server
右面页面找到:Base URL,设置成:
http://your-domain/nexus/
复选:
Force Base URL
OK. Enjoy it!
时间: 2024-11-04 04:35:21