当前位置: 首页 > news >正文

内容类网站如何 流量营销策划方案内容

内容类网站如何 流量,营销策划方案内容,高淳建设发展集团网站,做一个网站价格nexus3安装与使用 文章目录 nexus3安装与使用一、nexus3安装包安装1.下载2.安装与运行3.Windows安装(1)下载好nexus安装包,并解压到指定(任意)目录(2)启动nexus(3)访问 二…

nexus3安装与使用

文章目录

  • nexus3安装与使用
    • 一、nexus3安装包安装
      • 1.下载
      • 2.安装与运行
      • 3.Windows安装
        • (1)下载好nexus安装包,并解压到指定(任意)目录
        • (2)启动nexus
        • (3)访问
    • 二、docker安装nexus3
      • 1.下载镜像并运行docker容器
      • 2.访问
      • 3.官方参考
    • 三、使用

一、nexus3安装包安装

1.下载

nexus2下载地址: https://help.sonatype.com/repomanager2/download

2.安装与运行

可以参考 https://help.sonatype.com/repomanager3/installation 即可

  • 需要的环境
  1. 必须jdk1.8以上
  2. 设置环境变量,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 run
    

    The equivalent invocation on Windows requires a / in front of the run and any other commands.

      nexus.exe /run
    

    start, 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 /run
(3)访问

启动成功后访问 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

执行上面的命令后:

[root@docker136 ~]# mkdir -p /some/dir/nexus-data && chown -R 200 /some/dir/nexus-data
[root@docker136 ~]# 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
[root@docker136 ~]# 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   nexus

2.访问

访问 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/nexus3

To test:

$ curl -u admin:admin123 http://localhost:8081/service/metrics/ping

Notes
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 nexus

Installation 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:MaxDirectMemorySize=2g -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:MaxDirectMemorySize=3g  -Djava.util.prefs.userRoot=/some-other-dir" sonatype/nexus3

Of 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_CONTEXT=nexus sonatype/nexus3

Persistent 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/nexus3

Mount 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.ds6.com.cn/news/55361.html

相关文章:

  • 昆明网签备案查询seo教程seo教程
  • 网站建设所需的基本内容市场推广计划方案
  • 校园微网站建设搜索关键词是什么意思
  • 三合一网站建设推广虚拟主机搭建网站
  • 做网站需要准备的素材成功营销案例100例
  • 深圳市华企网络科技有限公司榆林市网站seo
  • 购物软件app排行榜前十名外贸网站优化公司
  • 家政网站建设客户管理软件
  • 网站建设时间规划表网络推广工作能长久吗
  • 做网站 信息集成过程的顺序视频剪辑培训班
  • 广告设计公司的岗位有哪些宁德seo优化
  • 厦门网站建设哪家不错推荐seo推广优化公司哪家好
  • 自建网站 做自定义导航宁德市人力资源和社会保障局
  • 做 个收废品网站seo优化案例
  • 网站建设乙方义务图片搜索识图入口
  • 企业网站开发心得体会昆明网站seo公司
  • 今天重大新闻2022南和网站seo
  • 《动态网站建设》第02章在线测试如何在百度发视频推广
  • 免费做网站优化网页制作模板
  • 免费做标签格式网站生意参谋指数在线转换
  • 网站企业建设网络推广的渠道和方式有哪些
  • 网站建设自由容器是什么意思百度一下你就知道
  • 泰州网站建设外包济宁seo推广
  • 免费下载建设银行官方网站seo网站内容优化
  • 西安建设网站首页天津seo招聘
  • 网站运营需要 做哪些工作内容上海今天最新发布会
  • 浏览器怎么打开网站服务器设置steam交易链接怎么用
  • 湖南住房和城乡建设厅网站首页巩义网站推广优化
  • 网站后台管理员密码忘记网络公司是做什么的
  • 酷炫网站设计百度一下百度一下