nexus3 在 windows 上部署 + nginx 反向代理到 nexus3
背景
上一篇说了 linux 上部署 nexus3和 maven 上传下载 jar包到 nexus3 私服
公司是存在内网环境及拥有 windows 版本的内网服务器,所以需要在公司内网搭建一套。那么需求就来了。
技能列表
- 下载 nexus-3.12.1-01-win64
- win10 下 部署 nexus
2.1 使用 nginx 进行反向代理
win10 下 部署 nexus
使用 nginx 进行反向代理
nexus-3.13.0-01-win64\sonatype-work\nexus3\etc文件夹下的nexus.properties文件
修改 nexus-context-path=/yiyibang-nexus
## DO NOT EDIT - CUSTOMIZATIONS BELONG IN $data-dir/etc/nexus.properties
##
# Jetty section
application-port=8889
application-host=127.0.0.1
nexus-args=${jetty.etc}/jetty.xml,${jetty.etc}/jetty-http.xml,${jetty.etc}/jetty-requestlog.xml
nexus-context-path=/yiyibang-nexus
# Nexus section
nexus-edition=nexus-pro-edition
nexus-features=\
nexus-pro-feature
nginx代理配置
server {
#监听的端口
listen 9004;
server_name kk.medicalunion.com.cn;
#molian_APP为发布项目名称,8888为tomcat项目发布的端口
location /yiyibang-nexus {
proxy_pass http://localhost:8889;
}