“Nexus2:安装、配置”的版本间差异
跳到导航
跳到搜索
(建立内容为“category:安装(Windows) category:Nexus == 关于 == 【以下使用 Nexus OSS 3.x 版本】 == 安装 == '''安装:''' # 下载: #: [https://…”的新页面) |
|||
(未显示同一用户的9个中间版本) | |||
第7行: | 第7行: | ||
== 安装 == | == 安装 == | ||
下载地址: | |||
1、最新版:[https://help.sonatype.com/repomanager2/download https://help.sonatype.com/repomanager2/download] | |||
2、历史版本:[https://help.sonatype.com/repomanager2/download/download-archives---repository-manager-oss https://help.sonatype.com/repomanager2/download/download-archives---repository-manager-oss] | |||
'''安装:''' | '''安装:''' | ||
# | # 下载压缩包(如:“nexus-2.14.20-02-bundle.zip”); | ||
# 解压: | # 解压: | ||
#: 到目录(如:“D:\Program Files\ | #: 到目录(如:“D:\Program Files\Nexus2”),包含两个文件夹“nexus-2.14.20-02”、“sonatype-work”; | ||
# | # 配置: | ||
#: 端口配置:“./nexus-2.14.20-02/conf/nexus.properties”;(默认 8081) | |||
# 启动: | |||
#: <syntaxhighlight lang="bash" highlight=""> | #: <syntaxhighlight lang="bash" highlight=""> | ||
在“./nexus-2.14.20-02/bin”目录: | |||
nexus | |||
# 启动 nexus,并在 cmd 中展示启动过程 | |||
nexus console | |||
# 注册服务(好像不能指定服务名称?) | |||
nexus install | |||
# 卸载服务 | |||
nexus uninstall | |||
# 启动 | |||
nexus start | |||
# 停止 | |||
nexus stop | |||
# 重启 | |||
nexus restart | |||
</syntaxhighlight> | </syntaxhighlight> | ||
#* 如果提示“'''Could not open SCManager'''”,则需要:以管理员身份运行 cmd,然后重新执行。 | #* 如果提示“'''Could not open SCManager'''”,则需要:以管理员身份运行 cmd,然后重新执行。 | ||
#: | #* 或者: | ||
#*: <syntaxhighlight lang="bash" highlight=""> | |||
在“./nexus-2.14.13-01/bin/jsw/<对应系统版本的文件夹>” | |||
# 启动 nexus,并在 cmd 中展示启动过程 | |||
# | console-nexus.bat | ||
# 注册服务(好像不能指定服务名称?) | |||
install-nexus.bat | |||
# | # 卸载服务 | ||
uninstall-nexus.bat | |||
# | |||
# 启动 | |||
nexus. | start-nexus.bat | ||
# 停止 | |||
stops-nexus.bat | |||
</syntaxhighlight> | </syntaxhighlight> | ||
'''访问:''' | '''访问:''' | ||
: http://localhost: | : http://localhost:8090/nexus/ | ||
* | * 默认的用户名/密码:'''admin/admin123'''。<!-- 已修改为:@eijux --> | ||
== 更新 == | == 更新 == | ||
更新步骤: | |||
# 从官方下载的最新安装程序包。 | # 从官方下载的最新安装程序包。 | ||
# 准备安装: | # 准备安装: | ||
## 解压新的程序包; | ## 解压新的程序包; | ||
## | ## 根据当前程序,修改新程序的配置文件; | ||
##* | ##*【'''特别注意“./conf/nexus.properties”中端口的修改'''】 | ||
# 执行安装: | # 执行安装: | ||
## 对现有数据目录和任何自定义 | ## 对现有数据目录和任何自定义 storage 位置进行最新备份; | ||
## 停止并卸载已有 nexus 服务; | ## 停止并卸载已有 nexus 服务; | ||
## 安装并启动新的 nexus 服务; | ## 安装并启动新的 nexus 服务; | ||
## 检查日志文件中是否存在任何可能的问题,并登录服务器以确认一切正常。 | ## 检查日志文件中是否存在任何可能的问题,并登录服务器以确认一切正常。 | ||
##*(默认日志路径在 sonatype-work/ | ##*(默认日志路径在 sonatype-work/nexus/log 下) | ||
== 升级:Nexus 2.x 到 3.x == | |||
参考: | |||
# [https://help.sonatype.com/repomanager3/installation-and-upgrades/upgrading-from-nexus-repository-manager-2 Upgrading from Nexus Repository Manager 2] | |||
# [http://wangzhangtao.com/2020/07/21/nexus2%E5%8D%87%E7%BA%A7%E5%88%B0nexus3/#%E5%8F%82%E8%80%83%E6%96%87%E6%A1%A3 nexus2升级到nexus3] |
2021年12月20日 (一) 04:56的最新版本
关于
【以下使用 Nexus OSS 3.x 版本】
安装
下载地址: 1、最新版:https://help.sonatype.com/repomanager2/download 2、历史版本:https://help.sonatype.com/repomanager2/download/download-archives---repository-manager-oss
安装:
- 下载压缩包(如:“nexus-2.14.20-02-bundle.zip”);
- 解压:
- 到目录(如:“D:\Program Files\Nexus2”),包含两个文件夹“nexus-2.14.20-02”、“sonatype-work”;
- 配置:
- 端口配置:“./nexus-2.14.20-02/conf/nexus.properties”;(默认 8081)
- 启动:
在“./nexus-2.14.20-02/bin”目录: # 启动 nexus,并在 cmd 中展示启动过程 nexus console # 注册服务(好像不能指定服务名称?) nexus install # 卸载服务 nexus uninstall # 启动 nexus start # 停止 nexus stop # 重启 nexus restart
- 如果提示“Could not open SCManager”,则需要:以管理员身份运行 cmd,然后重新执行。
- 或者:
在“./nexus-2.14.13-01/bin/jsw/<对应系统版本的文件夹>” # 启动 nexus,并在 cmd 中展示启动过程 console-nexus.bat # 注册服务(好像不能指定服务名称?) install-nexus.bat # 卸载服务 uninstall-nexus.bat # 启动 start-nexus.bat # 停止 stops-nexus.bat
访问:
- 默认的用户名/密码:admin/admin123。
更新
更新步骤:
- 从官方下载的最新安装程序包。
- 准备安装:
- 解压新的程序包;
- 根据当前程序,修改新程序的配置文件;
- 【特别注意“./conf/nexus.properties”中端口的修改】
- 执行安装:
- 对现有数据目录和任何自定义 storage 位置进行最新备份;
- 停止并卸载已有 nexus 服务;
- 安装并启动新的 nexus 服务;
- 检查日志文件中是否存在任何可能的问题,并登录服务器以确认一切正常。
- (默认日志路径在 sonatype-work/nexus/log 下)
升级:Nexus 2.x 到 3.x
参考: