搭建 Nexus3 配置 Maven 私服

BBigSun 评论194阅读模式

参考资料

官方文档:https://help.sonatype.com/repomanager3

服务器配置

  • CPU: >= 2U, 推荐 4U
  • 内存: >= 4G

安装 Docker

安装教程:https://www.bbigsun.com/293.html文章源自十年又十年-https://www.bbigsun.com/315.html

使用 Docker 容器化部署 Nexus3

服务器上提前创建目录并配置权限:文章源自十年又十年-https://www.bbigsun.com/315.html

mkdir /opt/nexus3/nexus-data && chmod -R 777 /opt/nexus3/nexus-data

拉取镜像:文章源自十年又十年-https://www.bbigsun.com/315.html

docker pull sonatype/nexus3:latest

运行容器文章源自十年又十年-https://www.bbigsun.com/315.html

docker run -itd --name nexus3 -p 8081:8081 --restart always -v /opt/nexus3/nexus-data:/nexus-data sonatype/nexus3

访问 Nexus3

最开始会自带一些仓库文章源自十年又十年-https://www.bbigsun.com/315.html

搭建  Nexus3 配置 Maven 私服文章源自十年又十年-https://www.bbigsun.com/315.html

登录 Nexus3,会提示你 admin 的密码在服务器的 nexus-data/admin.password文章源自十年又十年-https://www.bbigsun.com/315.html

搭建  Nexus3 配置 Maven 私服文章源自十年又十年-https://www.bbigsun.com/315.html

通过 cat /opt/nexus3/nexus-data/admin.password 命令查看密码文章源自十年又十年-https://www.bbigsun.com/315.html 文章源自十年又十年-https://www.bbigsun.com/315.html

纸上得来终觉浅,绝知此事要躬行。

weinxin
17688689121
我的微信
微信扫一扫
BBigSun
  • 本文由 BBigSun 发表于 2023年 3月 23日 09:46:42
  • 转载请务必保留本文链接:https://www.bbigsun.com/315.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定