【01】nexus在windows环境下的安装与启动

Nexus版本号

  • 3.9.0-01

下载安装包

配置环境变量

系统变量
Path

自定义配置

打开nexus-3.9.0-01\etc\nexus-default.properties 文件。不同版本下nexus-default.properties所在位置不同。

## DO NOT EDIT - CUSTOMIZATIONS BELONG IN $data-dir/etc/nexus.properties
##
# Jetty section
# 端口号
application-port=9000
application-host=0.0.0.0
nexus-args=${jetty.etc}/jetty.xml,${jetty.etc}/jetty-http.xml,${jetty.etc}/jetty-requestlog.xml
nexus-context-path=/

# Nexus section
nexus-edition=nexus-pro-edition
nexus-features=\
 nexus-pro-feature

运行环境变量配置

打开nexus-3.9.0-01\bin\nexus.vmoptions文件。

-Xms1200M
-Xmx1200M
-XX:MaxDirectMemorySize=2G
-XX:+UnlockDiagnosticVMOptions
-XX:+UnsyncloadClass
-XX:+LogVMOutput 
-XX:LogFile=../sonatype-work/nexus3/log/jvm.log
-XX:-OmitStackTraceInFastThrow
-Djava.net.preferIPv4Stack=true
-Dkaraf.home=.
-Dkaraf.base=.
-Dkaraf.etc=etc/karaf
-Djava.util.logging.config.file=etc/karaf/java.util.logging.properties
-Dkaraf.data=../sonatype-work/nexus3
-Djava.io.tmpdir=../sonatype-work/nexus3/tmp
-Dkaraf.startLocalConsole=false

运行相关命令

# 启动nexus服务 <optional-service-name>默认为nexus
nexus.exe /run <optional-service-name>
# 关闭nexus服务
nexus.exe /stop <optional-service-name>
# 重启nexus服务
nexus.exe /restart <optional-service-name>
#
nexus.exe /force-reload <optional-service-name>
#
nexus.exe /status <optional-service-name>
# 注册为windows服务运行
nexus.exe /install <optional-service-name>
# 删除服务
nexus.exe /uninstall <optional-service-name>

参考文档

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值