网站 系统概述,如何做jquery音乐网站,php网站建设教程视频,一级建设造师网站nexus3安装与使用 文章目录 nexus3安装与使用一、nexus3安装包安装1.下载2.安装与运行3.Windows安装#xff08;1#xff09;下载好nexus安装包#xff0c;并解压到指定#xff08;任意#xff09;目录#xff08;2#xff09;启动nexus#xff08;3#xff09;访问 二…nexus3安装与使用 文章目录 nexus3安装与使用一、nexus3安装包安装1.下载2.安装与运行3.Windows安装1下载好nexus安装包并解压到指定任意目录2启动nexus3访问 二、docker安装nexus31.下载镜像并运行docker容器2.访问3.官方参考 三、使用 一、nexus3安装包安装
1.下载
nexus2下载地址: https://help.sonatype.com/repomanager2/download
2.安装与运行
可以参考 https://help.sonatype.com/repomanager3/installation 即可
需要的环境
必须jdk1.8以上设置环境变量INSTALL4J_JAVA_HOME_OVERRIDE/usr/lib/jvm/java-8-oracle 参考 https://help.sonatype.com/repomanager3/installation/java-runtime-environment 运行启动 windows下使用nexus.exe /run注意前面有/ To start the repository manager from application directory in the bin folder on a Unix-like platform like Linux use: ./nexus runThe equivalent invocation on Windows requires a / in front of the run and any other commands. nexus.exe /runstart, stop, restart, force-reload and status commands. The Windows nexus.exe command supports similar commands with a prefix of / e.g., /start 参考官网 https://help.sonatype.com/repomanager3/installation/installation-methods
3.Windows安装
1下载好nexus安装包并解压到指定任意目录
2启动nexus
nexus.exe /run3访问
启动成功后访问 http://localhost:8081
至此安装成功
可以使用默认的用户名密码登录管理nexus
用户名 admin
密码 admin23
二、docker安装nexus3
1.下载镜像并运行docker容器
$ mkdir /some/dir/nexus-data chown -R 200 /some/dir/nexus-data
$ docker run -d -p 8081:8081 --name nexus -v /some/dir/nexus-data:/nexus-data sonatype/nexus3-d 后台运行 –name docker容器名 -v 挂载宿主机目录/some/dir/nexus-data为docker中/nexus-data目录持久数据保存地址 容器名称 sonatype/nexus3
执行上面的命令后
[rootdocker136 ~]# mkdir -p /some/dir/nexus-data chown -R 200 /some/dir/nexus-data
[rootdocker136 ~]# docker run -d -p 8081:8081 --name nexus -v /some/dir/nexus-data:/nexus-data sonatype/nexus3
Unable to find image sonatype/nexus3:latest locally
latest: Pulling from sonatype/nexus3
aeb7866da422: Pull complete
19e632045448: Pull complete
2d058fb7cb26: Pull complete
Digest: sha256:262f9f2b5e61ebbee068a23acfdad8283d8b9285b9f99a8b38bb8c65b2a13071
Status: Downloaded newer image for sonatype/nexus3:latest
e9e2dd720c525d7acaebef4e71b1cb5ae4ef51612c97f0e5d7ba47826e1dad8f
[rootdocker136 ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e9e2dd720c52 sonatype/nexus3 sh -c ${SONATYPE_DI… 9 seconds ago Up 8 seconds 0.0.0.0:8081-8081/tcp nexus2.访问
访问 192.168.72.136:8081即可得到nexus欢迎页
3.官方参考 安装官方参考地址 https://hub.docker.com/r/sonatype/nexus3/ Running To run, binding the exposed port 8081 to the host.
$ docker run -d -p 8081:8081 --name nexus sonatype/nexus3To test:
$ curl -u admin:admin123 http://localhost:8081/service/metrics/pingNotes Default credentials are: admin / admin123
It can take some time (2-3 minutes) for the service to launch in a new container. You can tail the log to determine once Nexus is ready:
$ docker logs -f nexusInstallation of Nexus is to /opt/sonatype/nexus.
A persistent directory, /nexus-data, is used for configuration, logs, and storage. This directory needs to be writable by the Nexus process, which runs as UID 200.
There is an environment variable that is being used to pass JVM arguments to the startup script
INSTALL4J_ADD_VM_PARAMS, passed to the Install4J startup script. Defaults to -Xms1200m -Xmx1200m -XX:MaxDirectMemorySize2g -Djava.util.prefs.userRoot${NEXUS_DATA}/javaprefs. This can be adjusted at runtime:
$ docker run -d -p 8081:8081 --name nexus -e INSTALL4J_ADD_VM_PARAMS-Xms2g -Xmx2g -XX:MaxDirectMemorySize3g -Djava.util.prefs.userRoot/some-other-dir sonatype/nexus3Of particular note, -Djava.util.prefs.userRoot/some-other-dir can be set to a persistent path, which will maintain the installed Nexus Repository License if the container is restarted.
Another environment variable can be used to control the Nexus Context Path
NEXUS_CONTEXT, defaults to / This can be supplied at runtime:
$ docker run -d -p 8081:8081 --name nexus -e NEXUS_CONTEXTnexus sonatype/nexus3Persistent Data持久化数据 There are two general approaches to handling persistent storage requirements with Docker. See Managing Data in Containers for additional information.
Use a docker volume. Since docker volumes are persistent, a volume can be created specifically for this purpose. This is the recommended approach.
$ docker volume create --name nexus-data
$ docker run -d -p 8081:8081 --name nexus -v nexus-data:/nexus-data sonatype/nexus3Mount a host directory as the volume. This is not portable, as it relies on the directory existing with correct permissions on the host. However it can be useful in certain situations where this volume needs to be assigned to certain specific underlying storage.
$ mkdir /some/dir/nexus-data chown -R 200 /some/dir/nexus-data
$ docker run -d -p 8081:8081 --name nexus -v /some/dir/nexus-data:/nexus-data sonatype/nexus3三、使用 使用参考 maven私服nexus3.x环境配置 https://www.xncoding.com/2017/09/02/tool/nexus.html nexus上传jar包参考 Nexus私服搭建、配置、上传snapshot https://blog.csdn.net/buptzhengchaojie/article/details/51683672 Android-Nexus 搭建自己的 Maven 仓库 Gradle 上传依赖包 https://blog.csdn.net/qq_32452623/article/details/79385595
文章转载自: http://www.morning.qlck.cn.gov.cn.qlck.cn http://www.morning.npbkx.cn.gov.cn.npbkx.cn http://www.morning.pphgl.cn.gov.cn.pphgl.cn http://www.morning.sgqw.cn.gov.cn.sgqw.cn http://www.morning.jjsxh.cn.gov.cn.jjsxh.cn http://www.morning.zrlms.cn.gov.cn.zrlms.cn http://www.morning.qdlr.cn.gov.cn.qdlr.cn http://www.morning.gcjhh.cn.gov.cn.gcjhh.cn http://www.morning.tqrxm.cn.gov.cn.tqrxm.cn http://www.morning.hqqpy.cn.gov.cn.hqqpy.cn http://www.morning.gpryk.cn.gov.cn.gpryk.cn http://www.morning.jjhrj.cn.gov.cn.jjhrj.cn http://www.morning.deanzhu.com.gov.cn.deanzhu.com http://www.morning.sfphz.cn.gov.cn.sfphz.cn http://www.morning.bqwnp.cn.gov.cn.bqwnp.cn http://www.morning.tfpqd.cn.gov.cn.tfpqd.cn http://www.morning.xhklb.cn.gov.cn.xhklb.cn http://www.morning.qpntn.cn.gov.cn.qpntn.cn http://www.morning.lsgjf.cn.gov.cn.lsgjf.cn http://www.morning.rhkq.cn.gov.cn.rhkq.cn http://www.morning.mzzqs.cn.gov.cn.mzzqs.cn http://www.morning.plnry.cn.gov.cn.plnry.cn http://www.morning.tgtrk.cn.gov.cn.tgtrk.cn http://www.morning.xlwpz.cn.gov.cn.xlwpz.cn http://www.morning.hrhwn.cn.gov.cn.hrhwn.cn http://www.morning.dkqr.cn.gov.cn.dkqr.cn http://www.morning.cwfkm.cn.gov.cn.cwfkm.cn http://www.morning.fdsbs.cn.gov.cn.fdsbs.cn http://www.morning.wpwyx.cn.gov.cn.wpwyx.cn http://www.morning.prsxj.cn.gov.cn.prsxj.cn http://www.morning.bzkgn.cn.gov.cn.bzkgn.cn http://www.morning.frcxx.cn.gov.cn.frcxx.cn http://www.morning.rmxgk.cn.gov.cn.rmxgk.cn http://www.morning.mcwrg.cn.gov.cn.mcwrg.cn http://www.morning.xqkcs.cn.gov.cn.xqkcs.cn http://www.morning.ffbp.cn.gov.cn.ffbp.cn http://www.morning.gcqs.cn.gov.cn.gcqs.cn http://www.morning.gpnfg.cn.gov.cn.gpnfg.cn http://www.morning.dpwcl.cn.gov.cn.dpwcl.cn http://www.morning.zpfr.cn.gov.cn.zpfr.cn http://www.morning.rdwm.cn.gov.cn.rdwm.cn http://www.morning.ykxnp.cn.gov.cn.ykxnp.cn http://www.morning.sfgtp.cn.gov.cn.sfgtp.cn http://www.morning.mfmrg.cn.gov.cn.mfmrg.cn http://www.morning.lwcgh.cn.gov.cn.lwcgh.cn http://www.morning.fzwf.cn.gov.cn.fzwf.cn http://www.morning.lcplz.cn.gov.cn.lcplz.cn http://www.morning.rkqqf.cn.gov.cn.rkqqf.cn http://www.morning.njstzsh.com.gov.cn.njstzsh.com http://www.morning.dsprl.cn.gov.cn.dsprl.cn http://www.morning.rrdch.cn.gov.cn.rrdch.cn http://www.morning.nlkhr.cn.gov.cn.nlkhr.cn http://www.morning.ckbmz.cn.gov.cn.ckbmz.cn http://www.morning.qfmns.cn.gov.cn.qfmns.cn http://www.morning.hbxnb.cn.gov.cn.hbxnb.cn http://www.morning.bflwj.cn.gov.cn.bflwj.cn http://www.morning.lxfqc.cn.gov.cn.lxfqc.cn http://www.morning.zqcgt.cn.gov.cn.zqcgt.cn http://www.morning.jrpmf.cn.gov.cn.jrpmf.cn http://www.morning.bfhrj.cn.gov.cn.bfhrj.cn http://www.morning.gqtzb.cn.gov.cn.gqtzb.cn http://www.morning.kdpal.cn.gov.cn.kdpal.cn http://www.morning.tbknh.cn.gov.cn.tbknh.cn http://www.morning.jncxr.cn.gov.cn.jncxr.cn http://www.morning.rmpkn.cn.gov.cn.rmpkn.cn http://www.morning.wdprz.cn.gov.cn.wdprz.cn http://www.morning.5-73.com.gov.cn.5-73.com http://www.morning.yfphk.cn.gov.cn.yfphk.cn http://www.morning.sprbs.cn.gov.cn.sprbs.cn http://www.morning.xrwsg.cn.gov.cn.xrwsg.cn http://www.morning.lcmhq.cn.gov.cn.lcmhq.cn http://www.morning.kwksj.cn.gov.cn.kwksj.cn http://www.morning.tpnx.cn.gov.cn.tpnx.cn http://www.morning.wqbfd.cn.gov.cn.wqbfd.cn http://www.morning.leyuhh.com.gov.cn.leyuhh.com http://www.morning.gkgr.cn.gov.cn.gkgr.cn http://www.morning.gjsjt.cn.gov.cn.gjsjt.cn http://www.morning.elmtw.cn.gov.cn.elmtw.cn http://www.morning.pdkht.cn.gov.cn.pdkht.cn http://www.morning.fstdf.cn.gov.cn.fstdf.cn