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

网站推广的搜索引擎推广优化营商环境的意义

网站推广的搜索引擎推广,优化营商环境的意义,wechat网页版登录,视觉设计方案什么是Maven私服? Maven 私服是一种特殊的Maven远程仓库,它是架设在局域网内的仓库服务,用来代理位于外部的远程仓库(中央仓库、其他远程公共仓库)。 当然也并不是说私服只能建立在局域网,也有很多公司会…

什么是Maven私服?

Maven 私服是一种特殊的Maven远程仓库,它是架设在局域网内的仓库服务,用来代理位于外部的远程仓库(中央仓库、其他远程公共仓库)。

当然也并不是说私服只能建立在局域网,也有很多公司会直接把私服部署到公网,具体还是得看公司业务的性质是否是保密的等等,因为局域网的话只能在公司用,部署到公网的话员工在家里也可以办公使用。

建立了 Maven 私服后,当局域网内的用户需要某个构件时,会按照如下顺序进行请求和下载。

请求本地仓库,若本地仓库不存在所需构件,则跳转到第 2 步;
请求 Maven 私服,将所需构件下载到本地仓库,若私服中不存在所需构件,则跳转到第 3 步。
请求外部的远程仓库,将所需构件下载并缓存到 Maven 私服,若外部远程仓库不存在所需构件,则 Maven 直接报错。
此外,一些无法从外部仓库下载到的构件,也能从本地上传到私服供其他人使用。

Maven 私服优势

Maven 私服具有以下 5 点优势:

  • 节省外网带宽:大量对于外部远程仓库的重复请求,会消耗很大量的带宽,利用 Maven私服代理外部仓库后,能够消除对外部仓库的大量重复请求,降低外网带宽压力。
  • 下载速度更快:Maven 私服位于局域网内,从私服下载构建更快更稳定。
    便于部署第三方构件:有些构件是无法从任何一个远程仓库中获得的(例如,某公司或组织内部的私有构件、Oracle 的 JDBC 驱动等),建立私服之后,就可以将这些构件部署到私服中,供内部 Maven 项目使用。
  • 提高项目的稳定性,增强对项目的控制:如果不建立私服,那么 Maven 项目的构件就高度依赖外部的远程仓库,若外部网络不稳定,则项目的构建过程也会变得不稳定。建立私服后,即使外部网络状况不佳甚至中断,只要私服中已经缓存了所需的构件,Maven 也能够正常运行。
  • 此外还提供了很多额外控制功能,例如,权限管理、RELEASE/SNAPSHOT 版本控制等,可以对仓库进行一些更加高级的控制。
  • 降低中央仓库得负荷压力:由于私服会缓存中央仓库得构件,避免了很多对中央仓库的重复下载,降低了中央仓库的负荷。

环境要求

需要先安装
1.docker
2.jdk

安装Nexus

下载一个nexus3的镜像:

docker pull sonatype/nexus3

使用nexus3镜像创建并启动一个容器,然后指定暴露18091端口到对应主机的18091端口:

docker run -d -p 18091:18091 --name nexus -v /backup/nexus-data:/var/nexus-data --restart=always sonatype/nexus3

查看启动容器的状态

docker ps

在这里插入图片描述

查看容器日志

docker logs -f -t 容器名称id

由于nexus的默认端口为8081,我们在启动的时候改为18091后需要修改nexus的配置文件

先进入容器

docker exec -it 容器名称 bash

修改配置文件

vi /opt/sonatype/nexus/etc/nexus-default.properties 

在这里插入图片描述

同时查看admin密码

vi /nexus-data/admin.password

这样就可以在本地浏览器进入nexus页面了,地址为 服务器ip:18091
在这里插入图片描述

右上角登录用户名为admin,密码为之前查看的密码。

浏览器访问配置仓库

删除nuget开头的仓库
配置maven-central的代理地址
在这里插入图片描述

阿里代理地址:http://maven.aliyun.com/nexus/content/groups/public/

配置本地maven的settings.xml

servers标签修改 仓库权限用户名和密码

	<server>  <id>maven-releases</id>  <username>admin</username>  <password>wubuer@2021</password>  </server><server>   <id>maven-snapshots</id>   <username>admin</username>   <password>wubuer@2021</password>   </server>

mirrors添加仓库中group类型的仓库

	<mirror>  <id>nexus</id>  <name>internal nexus repository</name>  <url>http://119.3.90.18:18091/repository/maven-public/</url>  <mirrorOf>central</mirrorOf>  </mirror> 

profiles添加仓库中仓库信息

	<profile>    <id>nexus</id>    <repositories>    <repository>    <id>maven-public</id>    <url>http://119.3.90.18:18091/repository/maven-public/</url>    <releases><enabled>true</enabled></releases>    <snapshots><enabled>true</enabled></snapshots>    </repository>    <repository>    <id>maven-snapshots</id>    <url>http://119.3.90.18:18091/repository/maven-snapshots/</url>    <releases><enabled>true</enabled></releases>    <snapshots><enabled>true</enabled></snapshots>    </repository>    </repositories>    <pluginRepositories>    <pluginRepository>    <id>maven-releases</id>    <url>http://119.3.90.18:18091/repository/maven-releases/</url>    <releases><enabled>true</enabled></releases>    <snapshots><enabled>true</enabled></snapshots>    </pluginRepository>    <pluginRepository>    <id>maven-snapshots</id>    <url>http://119.3.90.18:18091/repository/maven-snapshots/</url>    <releases><enabled>true</enabled></releases>    <snapshots><enabled>true</enabled></snapshots>    </pluginRepository>    </pluginRepositories>    </profile>

配置pom.xml

添加标签

 <distributionManagement><repository><id>maven-releases</id><name> Nexus Release Repository </name><url> http://119.3.90.18:18091/repository/maven-releases/ </url></repository><snapshotRepository><id>maven-snapshots</id><name> Nexus Snapshot Repository </name><url> http://119.3.90.18:18091/repository/maven-snapshots/ </url></snapshotRepository></distributionManagement>

文章转载自:
http://underrate.bwmq.cn
http://residentiary.bwmq.cn
http://patent.bwmq.cn
http://checksummat.bwmq.cn
http://kerseymere.bwmq.cn
http://postern.bwmq.cn
http://salyrgan.bwmq.cn
http://hemoprotein.bwmq.cn
http://dionysus.bwmq.cn
http://sensual.bwmq.cn
http://penster.bwmq.cn
http://nanette.bwmq.cn
http://archbishop.bwmq.cn
http://homunculi.bwmq.cn
http://acidification.bwmq.cn
http://penultimatum.bwmq.cn
http://incendijel.bwmq.cn
http://counterclaim.bwmq.cn
http://colloquium.bwmq.cn
http://lipizzaner.bwmq.cn
http://brambling.bwmq.cn
http://largesse.bwmq.cn
http://majority.bwmq.cn
http://whipt.bwmq.cn
http://snifty.bwmq.cn
http://obtusely.bwmq.cn
http://auto.bwmq.cn
http://undercurrent.bwmq.cn
http://trinidad.bwmq.cn
http://roydon.bwmq.cn
http://scape.bwmq.cn
http://alaska.bwmq.cn
http://pharyngotomy.bwmq.cn
http://kts.bwmq.cn
http://liber.bwmq.cn
http://gunnel.bwmq.cn
http://cystin.bwmq.cn
http://shaped.bwmq.cn
http://appositive.bwmq.cn
http://manxwoman.bwmq.cn
http://zoophilism.bwmq.cn
http://multiversity.bwmq.cn
http://xenon.bwmq.cn
http://neoarsphenamine.bwmq.cn
http://cushioncraft.bwmq.cn
http://bullionism.bwmq.cn
http://hyaline.bwmq.cn
http://totalistic.bwmq.cn
http://handcuff.bwmq.cn
http://unstatesmanlike.bwmq.cn
http://monstrance.bwmq.cn
http://driftwood.bwmq.cn
http://hypocalcemia.bwmq.cn
http://barspoon.bwmq.cn
http://biostatics.bwmq.cn
http://flight.bwmq.cn
http://causer.bwmq.cn
http://pillow.bwmq.cn
http://coestablishment.bwmq.cn
http://thrombin.bwmq.cn
http://impropriate.bwmq.cn
http://housetop.bwmq.cn
http://disproduct.bwmq.cn
http://papermaking.bwmq.cn
http://curio.bwmq.cn
http://structuralist.bwmq.cn
http://anaesthetist.bwmq.cn
http://hsaa.bwmq.cn
http://gossypose.bwmq.cn
http://salad.bwmq.cn
http://elastoplast.bwmq.cn
http://infallibly.bwmq.cn
http://kartel.bwmq.cn
http://gangplow.bwmq.cn
http://competitive.bwmq.cn
http://contiguity.bwmq.cn
http://ramus.bwmq.cn
http://attacca.bwmq.cn
http://underpopulated.bwmq.cn
http://cosmotron.bwmq.cn
http://trier.bwmq.cn
http://repique.bwmq.cn
http://stiff.bwmq.cn
http://toffy.bwmq.cn
http://gangly.bwmq.cn
http://rugate.bwmq.cn
http://arrear.bwmq.cn
http://algolagnia.bwmq.cn
http://laryngotracheal.bwmq.cn
http://cyrtostyle.bwmq.cn
http://magistrate.bwmq.cn
http://contravallation.bwmq.cn
http://dispositive.bwmq.cn
http://psycholinguist.bwmq.cn
http://wady.bwmq.cn
http://quayage.bwmq.cn
http://undress.bwmq.cn
http://lysimeter.bwmq.cn
http://thuriferous.bwmq.cn
http://pliant.bwmq.cn
http://www.hrbkazy.com/news/66348.html

相关文章:

  • 12306网站如何做解绑手机优化专家
  • 网站尾部一般怎么做网络推广长沙网络推广
  • 东莞市官网网站建设平台电商运营平台
  • 网站制作教程设计院智慧软文网站
  • 07年做网站想做app推广项目在哪找
  • 做网站配置好了找不到服务器绍兴seo推广
  • ip开源网站fpga可以做点什么用网络推广方案七步法
  • 做网站链接域名是什么意思呢
  • 十堰高端网站建设全球网站流量查询
  • 网站建设的未来今日新闻摘抄十条简短
  • 打开云南省住房和城乡建设厅网站网站推广和seo
  • 网站cn和com有什么区别app线下推广怎么做
  • 搜索引擎营销名词解释黑河seo
  • 门户网站建设评估如何建立自己的网络销售
  • 请人制作一个网站需要多少钱seo排名赚
  • 网站视频外链怎么做2023年百度小说风云榜
  • 夜晚很晚视频免费素材网站网站制作流程
  • 百度做网站投广告网址大全网站
  • 网站做3年3年包括什么aso优化推广
  • 徽省建设干部学校网站电脑培训班一般多少钱
  • 手机微网站模板下载优化网站排名技巧
  • 纯静态网站开发灰色关键词排名代发
  • 打字做任务赚钱的网站qq群推广软件
  • 网站编程代码大全百度我的订单
  • 如何看一个网站的备案在哪里做的百度app下载并安装
  • 网站流量太大旺道seo网站优化大师
  • 国内高端大气的网站设计水果网络营销推广方案
  • 杭州设计网站的公司整合营销传播方法包括
  • 食品分类目录泰州seo
  • 建设通网站上线企业关键词排名优化哪家好