Nexus3
version: OSS 3.19.1-01
environment: Linux 2.6/3.x/4.x
文章目录
1.Nexus3 是什么?
2.服务端搭建
由于 windows for nexus3 无法从官网请求到资源,所以直接改用 docker 拉镜像,简单快速并且不污染环境
docker 环境:Docker Toolbox
2.1 部署 nexus3
// 查找镜像
docker search nexus
// docker 拉取 nexus3 镜像 (官方镜像)
docker image pull sonatype/nexus3
// docker 镜像遍历
docker image ls
// docker 启动镜像
docker run -d -p 8081:8081 --name nexus3 --restart=always sonatype/nexus3
/* 官方提供的测试命令,ping -> return pong that nexus3 was successfully built,
* todo ......
*/
curl -u admin:admin123 http://localhost:8081/service/metrics/ping
tips:
①docker 启动镜像的命令参数:
// docker run image
docker run -d -p [port1]:[port2] --name [container-name] --restart=always [image-name]
// container manage
docker container start nexus3
docker container stop nexus