$('#live').get(0).__vue__.$data
作者: admin
Python安装第三方库报错:”These Packages Do Not Match The Hashes From The Requirements File.”
Python安装第三方库报错:”These Packages Do Not Match The Hashes From The Requirements File.”
网上参考使用
pip install --upgrade --default-timeout=100000 packagename
无效,
使用更改镜像后,解决.
参考
开发Python
java-maven-分散打包lib
<?xml version="1.0" encoding="UTF-8"?>
<!--
<properties>
依赖输出目录
<output.dependence.file.path>lib/</output.dependence.file.path>
jar输出目录
<output.jar.file.path>bin/</output.jar.file.path>
配置文件输出目录
<output.resource.file.path>config/</output.resource.file.path>
</properties>
-->
<build>
<plugins>
<!-- 打JAR包,不包含依赖文件;显式剔除配置文件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<!--${env.LEARN_HOME}为项目配置的环境变量,下同-->
<!-- <outputDirectory>${env.LEARN_HOME}/${output.jar.file.path}</outputDirectory> -->
<outputDirectory>bin</outputDirectory>
<!-- 将配置文件排除在jar包 -->
<excludes>
<exclude>application-*.properties</exclude>
<exclude>*.yml</exclude>
<exclude>*.xml</exclude>
<exclude>*.txt</exclude>
</excludes>
<archive>
<!-- 生成的jar中,包含pom.xml和pom.properties这两个文件 -->
<addMavenDescriptor>true</addMavenDescriptor>
<!-- 生成MANIFEST.MF的设置 -->
<manifest>
<!--这个属性特别关键,如果没有这个属性,有时候我们引用的包maven库 下面可能会有多个包,并且只有一个是正确的,
其余的可能是带时间戳的,此时会在classpath下面把那个带时间戳的给添加上去,然后我们 在依赖打包的时候,
打的是正确的,所以两头会对不上,报错。 -->
<useUniqueVersions>false</useUniqueVersions>
<!-- 为依赖包添加路径, 这些路径会写在MANIFEST文件的Class-Path下 -->
<addClasspath>true</addClasspath>
<!-- MANIFEST.MF 中 Class-Path 各个依赖加入前缀 -->
<!--这个jar所依赖的jar包添加classPath的时候的前缀,需要 下面maven-dependency-plugin插件补充-->
<!--一定要找对目录,否则jar找不到依赖lib,前边加../是因为jar在bin下,而bin与lib是平级目录-->
<!-- <classpathPrefix>../${output.dependence.file.path}</classpathPrefix> -->
<classpathPrefix>lib</classpathPrefix>
<!--指定jar启动入口类 -->
<!-- <mainClass>com.ieslab.knife4j.demo.DemoApplication</mainClass> -->
<mainClass>demo.Application</mainClass>
</manifest>
<manifestEntries>
<!-- 假如这个项目可能要引入一些外部资源,但是你打包的时候并不想把 这些资源文件打进包里面,这个时候你必须在
这边额外指定一些这些资源文件的路径,假如你的pom文件里面配置了 <scope>system</scope>,就是你依赖是你本地的
资源,这个时候使用这个插件,classPath里面是不会添加,所以你得手动把这个依赖添加进这个地方 -->
<!--MANIFEST.MF 中 Class-Path 加入自定义路径,多个路径用空格隔开 -->
<!--此处resources文件夹的内容,需要maven-resources-plugin插件补充上-->
<!-- <Class-Path>../${output.resource.file.path}</Class-Path> -->
<Class-Path>config/</Class-Path>
</manifestEntries>
</archive>
</configuration>
</plugin>
<!-- 复制依赖的jar包到指定的文件夹里 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<!-- 拷贝项目依赖包到指定目录下 -->
<!-- <outputDirectory>${env.LEARN_HOME}/${output.dependence.file.path}</outputDirectory> -->
<outputDirectory>bin/lib</outputDirectory>
<!-- 是否排除间接依赖,间接依赖也要拷贝 -->
<excludeTransitive>false</excludeTransitive>
<!-- 是否带上版本号 -->
<stripVersion>false</stripVersion>
</configuration>
</execution>
</executions>
</plugin>
<!-- 用于复制指定的文件 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<!-- 复制配置文件 -->
<execution>
<id>copy-resources</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<!--将如下格式配置文件拷贝-->
<exclude>application-*.properties</exclude>
<exclude>*.yml</exclude>
<exclude>*.xml</exclude>
<exclude>*.txt</exclude>
</includes>
</resource>
</resources>
<!--输出路径-->
<!-- <outputDirectory>${env.LEARN_HOME}/${output.resource.file.path}</outputDirectory> -->
<outputDirectory>bin/config/</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
替换 pom.xml 中 build 段
===========
参考
https://blog.csdn.net/shaofengzong/article/details/121191018
使用nc判断ssh版本和端口是否打开
nc -nvz 127.0.0.1 80
echo -e 'GET /' | nc -nvv 127.0.0.1 80
echo -e "SSH-2.0-OpenSSH" | nc -nvv -w1 127.0.0.1 22
docker 镜像列表
镜像加速器 | 镜像加速器地址 | 专属加速器? | 其它加速? |
---|---|---|---|
Docker 中国官方镜像 | https://registry.docker-cn.com | Docker Hub | |
DaoCloud 镜像站 | http://f1361db2.m.daocloud.io | 可登录,系统分配 | Docker Hub |
Azure 中国镜像 | https://dockerhub.azk8s.cn | Docker Hub、GCR、Quay | |
科大镜像站 | https://docker.mirrors.ustc.edu.cn | Docker Hub、GCR、Quay | |
阿里云 | https://<your_code>.mirror.aliyuncs.com | 需登录,系统分配 | Docker Hub |
七牛云 | https://reg-mirror.qiniu.com | Docker Hub、GCR、Quay | |
网易云 | https://hub-mirror.c.163.com | Docker Hub | |
腾讯云 | https://mirror.ccs.tencentyun.com | Docker Hub |
========
2025更新
https://lispy.org/