当前位置: 首页 > news >正文

【2026最新】nexus3.90.x安装文件说明

Sonatype Nexus Repository Windows 版

本目录包含在 Windows 上运行 Nexus Repository 所需的脚本和可执行文件。

在 Windows 上将 Nexus Repository 安装为服务

nexus.exe文件是 Apache Commons Daemon 的 procrun 工具的副本。该可执行文件封装了运行 Nexus Repository 作为 Windows 服务所需的 Java 调用。

以管理员身份打开命令提示符,运行以下命令:

install-nexus-service.bat

此命令将使用默认设置安装 SonatypeNexusRepository 作为 Windows 服务:

  • sonatype-work 目录将是分发包中包含的目录,位于此脚本的相对路径下。
  • Nexus Repository 将使用捆绑的 JDK 21 运行时。

自定义 sonatype-work 目录路径

如果要使用不同的 sonatype-work 目录,请提供绝对路径作为参数:

install-nexus-service.bat C:\my-sonatype-work

自定义 Java 运行时

如果要使用不同的 JDK,有两种选择:

  • 将环境变量INSTALL4J_JAVA_HOME_OVERRIDE设置为要使用的 JDK 的绝对路径。
  • 修改 nexus.rc 文本文件,并在app_java_home变量中指定要使用的 JDK 的绝对路径。

将 Nexus Repository 作为 Windows 服务启动

安装服务后,可以使用 Windows 服务控制面板启动和停止它。

如果需要从命令行停止服务,可以运行命令:

nexus.exe stop SonatypeNexusRepository

要从命令行启动服务,请运行命令:

nexus.exe start SonatypeNexusRepository

要卸载服务,请运行命令:

sc delete SonatypeNexusRepository

从命令行启动 Nexus Repository

如果要将 Nexus Repository 作为控制台应用程序而不是服务运行,在安装服务后,可以运行命令:

nexus.exe run SonatypeNexusRepository

这将在前台启动 Nexus Repository 应用程序,可以通过按Ctrl+DCtrl+C停止它。可能需要尝试几次才能停止。这对于调试很有用,但不建议在生产环境中使用。

如果在服务运行时尝试使用此命令,将会收到类似以下的错误:

C:\nexus\nexus-3.79.1\bin>nexus.exe run SonatypeNexusRepository [2025-04-09 21:51:04] [info] ( prunsrv.c:2084) [ 7340] Apache Commons Daemon procrun (1.4.1.0 64-bit) started. [2025-04-09 21:51:04] [info] ( prunsrv.c:1911) [ 7340] Debugging 'SonatypeNexusRepository' service... [2025-04-09 21:51:04] [debug] ( prunsrv.c:1681) [ 7340] Inside serviceMain()... [2025-04-09 21:51:04] [debug] ( prunsrv.c:1127) [ 7340] reportServiceStatusE: dwCurrentState = 2 (SERVICE_START_PENDING), dwWin32ExitCode = 0, dwWaitHint = 3000 milliseconds, dwServiceSpecificExitCode = 0. [2025-04-09 21:51:04] [info] ( prunsrv.c:1426) [ 7340] Starting service... [2025-04-09 21:51:04] [error] ( prunsrv.c:1438) [ 7340] Pid file 'C:\nexus-again\nexus-3.80.0-SNAPSHOT-win-x86_64\sonatype-work\nexus3\log\nexus.pid' exists. [2025-04-09 21:51:04] [error] ( prunsrv.c:1438) [ 7340] The process cannot access the file because it is being used by another process. [2025-04-09 21:51:04] [error] ( prunsrv.c:1862) [ 7340] ServiceStart returned 1. [2025-04-09 21:51:04] [error] ( prunsrv.c:1862) [ 7340] The process cannot access the file because it is being used by another process. [2025-04-09 21:51:04] [debug] ( prunsrv.c:1127) [ 7340] reportServiceStatusE: dwCurrentState = 1 (SERVICE_STOPPED), dwWin32ExitCode = 1066, dwWaitHint = 0 milliseconds, dwServiceSpecificExitCode = 1. [2025-04-09 21:51:04] [info] ( prunsrv.c:1913) [ 7340] Debug service finished with exit code 1. [2025-04-09 21:51:04] [error] ( prunsrv.c:2181) [ 7340] Apache Commons Daemon procrun failed with exit value: 3 (failed to run service as console application). [2025-04-09 21:51:04] [error] ( prunsrv.c:2181) [ 7340] The process cannot access the file because it is being used by another process. The process cannot access the file because it is being used by another process. Failed to run service as console application. C:\nexus\nexus-3.79.1\bin>
http://www.jsqmd.com/news/490384/

相关文章:

  • MCP Sampling配置失效的终极元凶:不是代码,是这1个被忽略的TLS 1.3 ALPN协商参数
  • 保姆级教程:如何为你的Android项目选择正确的AGP版本(2024最新)
  • [agent memory] Diagnosing Retrieval vs. Utilization Bottlenecks in LLM Agent Memory
  • Speech Seaco Paraformer案例分享:如何用热词定制提升识别准确率
  • GTE中文向量模型部署指南:防火墙开放5000端口+SELinux配置实操
  • Endoscapes2024最新评测:YOLOv8在腹腔镜关键安全视图检测中的表现
  • Vite 8.0 来了:这一次,它不只是升级,而是把整个前端构建逻辑都重写了一遍
  • Kook Zimage真实幻想Turbo惊艳案例:幻想精灵+写实肌肤质感对比展示
  • 2025-K题国一-自动避障小车:基于STM32F407与K230视觉的固定路径导航方案详解
  • 猫抓扩展资源嗅探故障全解析:从问题诊断到深度优化
  • 手把手教你理解H.264中的Direct预测模式与Skip宏块区别
  • AEC10图像算法揭秘:从原理到实践理解SatPrev/DarkPrev计算流程
  • 2026CRM排行榜:8 大品牌全链路核心能力深度对比
  • ai赋能ffmpeg:让快马平台用自然语言帮你生成复杂音视频处理脚本
  • YOLOE官版镜像实战案例:如何构建校园周界入侵检测系统
  • Phi-3-vision-128k-instruct惊艳效果:复杂场景下多物体识别与逻辑推理问答对比
  • 春联生成模型在网络安全领域的创新应用
  • DBSyncer实战:5分钟搞定MySQL到ES的数据同步(附避坑指南)
  • CocosCreator图像处理全流程:从截图到Base64转换的实战指南
  • AutojsPro 9.3.11实战:5分钟搞定Frida Hook脚本(附完整代码)
  • ROS环境下激光雷达与单目相机联合标定实战:Autoware工具包避坑指南
  • FLUX.1-dev创意作品集:多风格艺术图像生成展示
  • LangChain实战:如何用function calling让大模型学会数学计算(附完整代码)
  • Qwen3-14b_int4_awq企业级应用:集成至内部OA系统实现智能公文起草
  • KITTI数据集的3D检测效果优化:基于MMDetection3D的PointPillars参数调优全记录
  • nomic-embed-text-v2-moe精彩案例分享:100种语言混合语料嵌入可视化
  • FaceFusion快速上手:无需代码,WebUI界面完成AI换脸全流程
  • 【NTN 卫星通信】3GPP协议下卫星移动性管理与QoS优化的关键技术解析
  • 讲讲直臂登高车选购,多少钱合适,苏州地区口碑好的有哪些? - 工业推荐榜
  • GD32VW553开发板I2C驱动AT24C02 EEPROM:从原理到字节/页读写实战