From 8216fa2ed2b7b97b67812669cf64d943794f2921 Mon Sep 17 00:00:00 2001 From: xuyongqin <1021151991@qq.com> Date: Sat, 26 Aug 2023 11:17:37 +0800 Subject: [PATCH] fix --- README.md | 10 +- "java/SpringCloud\345\205\245\351\227\250.md" | 38 +- java/javaNote.md | 42 ++- ...va\350\265\204\346\226\231\351\233\206.md" | 2 +- "java/mybatis\347\254\224\350\256\260.md" | 9 +- ...\212\250banner\345\233\276\346\241\210.md" | 2 +- ...06\350\277\207\346\273\244\345\231\250.md" | 4 +- note.md | 265 +++++++++++--- .../mongo.md" | 4 +- .../mysqlNote.md" | 48 ++- ...220\257log-bin\346\227\245\345\277\227.md" | 2 +- .../redis.md" | 2 +- ...24\347\246\273\347\272\247\345\210\253.md" | 11 + ...07\346\241\243\347\233\256\345\275\225.md" | 39 ++- .../javaScript\347\254\224\350\256\260.md" | 14 +- ...30\345\212\243\345\210\206\346\236\220.md" | 45 ++- ...344\270\216npm\347\254\224\350\256\260.md" | 104 ++++-- ...47\346\200\216\344\271\210\345\212\236.md" | 38 +- ...66\344\270\216\345\233\276\347\211\207.md" | 106 ++++++ ...5\234\260\345\256\211\350\243\205kafka.md" | 2 +- ...71\346\263\225\344\270\200\350\247\210.md" | 63 ++++ "\350\277\220\347\273\264/gitNote.md" | 46 ++- ...73\351\242\230\344\273\223\345\272\223.md" | 12 +- ...32\344\271\211\345\237\237\345\220\215.md" | 8 +- ...75\262markdown\346\226\207\344\273\266.md" | 4 +- "\350\277\220\347\273\264/linuxNote-x.md" | 8 +- .../nginx\347\254\224\350\256\260.md" | 2 +- .../shell\350\257\255\346\263\225.md" | 2 +- ...04\345\273\272\351\241\271\347\233\256.md" | 328 ++++++++++++------ 29 files changed, 916 insertions(+), 344 deletions(-) rename "\350\265\204\346\226\231/npm\347\254\224\350\256\260.md" => "\350\265\204\346\226\231/nodejs\344\270\216npm\347\254\224\350\256\260.md" (64%) create mode 100644 "\350\265\204\346\226\231/\345\215\201\345\244\247git\344\273\223\345\272\223\345\271\263\345\217\260\344\277\235\345\255\230\346\226\207\344\273\266\344\270\216\345\233\276\347\211\207.md" create mode 100644 "\350\265\204\346\226\231/\347\263\273\347\273\237\347\243\201\347\233\230c\347\233\230\346\270\205\347\220\206\345\236\203\345\234\276\346\226\207\344\273\266\346\226\271\346\263\225\344\270\200\350\247\210.md" diff --git a/README.md b/README.md index bccf406..bad6e7e 100644 --- a/README.md +++ b/README.md @@ -11,12 +11,12 @@ **技术还可以的程序猿。** 会 `java` `linux` `mysql` `redis` ...
-用 `git` `idea` `postman` `notepad++` ...
+用 `git` `idea` `postman` `markdown` ...
| 序号 | 地址 | | ---- | ----------- | | 1 | [gitlab]( https://gitlab.com/xuyq123/MyNotes ) | -| 2 | [coding]( https://xyqin.coding.net/public/my/MyNotes/git ) | +| 2 | [gitee]( https://gitee.com/xy180/MyNotes ) | | 3 | [github]( https://github.com/scott180/MyNotes ) | --- @@ -31,9 +31,9 @@ | 徐书法 | 地址 | 备注 | | ----- | ----------- | ------------- | -| 1 | [xushufa.cn]( https://xushufa.cn ) | 书法练习网站。 | -| 2 | [blog.xushufa.cn]( https://blog.xushufa.cn ) | `vuepress`构建的博客网站。 | -| 3 | [web.xushufa.cn]( https://web.xushufa.cn ) | `vuepress-theme-reco`构建的博客网站。| +| 1 | [xushufa]( https://xushufa.cn ) | `vuepress-theme-reco`构建的博客网站。| +| 2 | [vuepress-blog]( https://vuepress-blog.xushufa.cn ) | `vuepress`构建的博客网站。 | +| 3 | [mkdocs-blog]( https://xuyq123.gitlab.io/mkdocs-blog ) | `mkdocs`构建的博客网站。 | --- diff --git "a/java/SpringCloud\345\205\245\351\227\250.md" "b/java/SpringCloud\345\205\245\351\227\250.md" index 932257c..f9ed889 100644 --- "a/java/SpringCloud\345\205\245\351\227\250.md" +++ "b/java/SpringCloud\345\205\245\351\227\250.md" @@ -10,7 +10,7 @@ 首先我给大家看一张图,如果大家对这张图有些地方不太理解的话,我希望你们看完我这篇文章会恍然大悟。 -![Spring Cloud 总体架构](https://md.xushufa.cn/gitimg/document/imgs/java/spring-cloud/spring-cloud总体架构.jpg) +![Spring Cloud 总体架构](https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/java/spring-cloud/spring-cloud总体架构.jpg) ## 什么是Spring Cloud @@ -40,11 +40,11 @@ 那怎么办呢?我们当然不会那么傻乎乎的,第一时间就是去找 **中介** 呀,它为我们提供了统一房源的地方,我们消费者只需要跑到它那里去找就行了。而对于房东来说,他们也只需要把房源在中介那里发布就行了。 -![](https://md.xushufa.cn/gitimg/document/imgs/java/spring-cloud/4d161e2950414113834f2f0a8fc2c16c-new-imaged17347a0-e653-4830-9542-3d7ae4305b2b.png) +![](https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/java/spring-cloud/4d161e2950414113834f2f0a8fc2c16c-new-imaged17347a0-e653-4830-9542-3d7ae4305b2b.png) 那么现在,我们的模式就是这样的了。 -![](https://md.xushufa.cn/gitimg/document/imgs/java/spring-cloud/24382ce6bbd44932ac38b1accade12d1-new-image2ff8affc-6f1d-49de-a8c3-801e7bad2b11.png) +![](https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/java/spring-cloud/24382ce6bbd44932ac38b1accade12d1-new-image2ff8affc-6f1d-49de-a8c3-801e7bad2b11.png) 但是,这个时候还会出现一些问题。 @@ -54,7 +54,7 @@ 针对上面的问题我们来重新构建一下上面的模式图 -![租房-中介模式图](https://md.xushufa.cn/gitimg/document/imgs/java/spring-cloud/租房-中介模式图.jpg) +![租房-中介模式图](https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/java/spring-cloud/租房-中介模式图.jpg) 好了,举完这个:chestnut:我们就可以来看关于 `Eureka` 的一些基础概念了,你会发现这东西理解起来怎么这么简单。:punch::punch::punch: @@ -98,7 +98,7 @@ 下面就是 `Netflix` 官方给出的 `Eureka` 架构图,你会发现和我们前面画的中介图别无二致。 -![Eureka架构图](https://md.xushufa.cn/gitimg/document/imgs/java/spring-cloud/5d723c49eca1468ab7b89af06743023c-new-imageb8aa3d41-fad4-4b38-add9-c304930ab285.png) +![Eureka架构图](https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/java/spring-cloud/5d723c49eca1468ab7b89af06743023c-new-imageb8aa3d41-fad4-4b38-add9-c304930ab285.png) 当然,可以充当服务发现的组件有很多:`Zookeeper` ,`Consul` , `Eureka` 等。 @@ -134,13 +134,13 @@ public boolean judge(@RequestBody Request request) { 我们再举个:chestnut:,比如我们设计了一个秒杀系统,但是为了整个系统的 **高可用** ,我们需要将这个系统做一个集群,而这个时候我们消费者就可以拥有多个秒杀系统的调用途径了,如下图。 - + 如果这个时候我们没有进行一些 **均衡操作** ,如果我们对 `秒杀系统1` 进行大量的调用,而另外两个基本不请求,就会导致 `秒杀系统1` 崩溃,而另外两个就变成了傀儡,那么我们为什么还要做集群,我们高可用体现的意义又在哪呢? 所以 `Ribbon` 出现了,注意我们上面加粗的几个字——**运行在消费者端**。指的是,`Ribbon` 是运行在消费者端的负载均衡器,如下图。 - + 其工作原理就是 `Consumer` 端获取到了所有的服务列表之后,在其**内部**使用**负载均衡算法**,进行对多个系统的调用。 @@ -150,11 +150,11 @@ public boolean judge(@RequestBody Request request) { 何为集中式呢?简单理解就是 **将所有请求都集中起来,然后再进行负载均衡**。如下图。 - + 我们可以看到 `Nginx` 是接收了所有的请求进行负载均衡的,而对于 `Ribbon` 来说它是在消费者端进行的负载均衡。如下图。 - + > 请注意 `Request` 的位置,在 `Nginx` 中请求是先进入负载均衡器,而在 `Ribbon` 中是先在客户端进行负载均衡才进行请求的。 @@ -239,19 +239,19 @@ public class TestController { 那么什么是 熔断和降级 呢?再举个:chestnut:,此时我们整个微服务系统是这样的。服务A调用了服务B,服务B再调用了服务C,但是因为某些原因,服务C顶不住了,这个时候大量请求会在服务C阻塞。 - + 服务C阻塞了还好,毕竟只是一个系统崩溃了。但是请注意这个时候因为服务C不能返回响应,那么服务B调用服务C的的请求就会阻塞,同理服务B阻塞了,那么服务A也会阻塞崩溃。 > 请注意,为什么阻塞会崩溃。因为这些请求会消耗占用系统的线程、IO 等资源,消耗完你这个系统服务器不就崩了么。 - + 这就叫 **服务雪崩**。妈耶,上面两个 **熔断** 和 **降级** 你都没给我解释清楚,你现在又给我扯什么 **服务雪崩** ?:tired_face::tired_face::tired_face: 别急,听我慢慢道来。 -![](https://md.xushufa.cn/gitimg/document/imgs/java/spring-cloud/513d7e7f6d574fd799195d05556f4aa7-new-image9265b6bd-41ca-4e62-86f3-4341e5bdbe6c.png) +![](https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/java/spring-cloud/513d7e7f6d574fd799195d05556f4aa7-new-image9265b6bd-41ca-4e62-86f3-4341e5bdbe6c.png) 不听我也得讲下去! @@ -304,7 +304,7 @@ public News getHystrixNews(@PathVariable("id") int id) { 大家对网关应该很熟吧,简单来讲网关是系统唯一对外的入口,介于客户端与服务器端之间,用于对请求进行**鉴权**、**限流**、 **路由**、**监控**等功能。 - + 没错,网关有的功能,`Zuul` 基本都有。而 `Zuul` 中最关键的就是 **路由和过滤器** 了,在官方文档中 `Zuul` 的标题就是 @@ -320,7 +320,7 @@ public News getHystrixNews(@PathVariable("id") int id) { 比如这个时候我们已经向 `Eureka Server` 注册了两个 `Consumer` 、三个 `Provicer` ,这个时候我们再加个 `Zuul` 网关应该变成这样子了。 - + emmm,信息量有点大,我来解释一下。关于前面的知识我就不解释了:neutral_face:。 @@ -412,7 +412,7 @@ zuul: 在给你们看代码之前我先给你们解释一下关于过滤器的一些注意点。 - + 过滤器类型:`Pre`、`Routing`、`Post`。前置`Pre`就是在请求之前进行过滤,`Routing`路由过滤器就是我们上面所讲的路由策略,而`Post`后置过滤器就是在 `Response` 之前进行过滤的过滤器。你可以观察上图结合着理解,并且下面我会给出相应的注释。 @@ -497,7 +497,7 @@ public class AccessLogFilter extends ZuulFilter { 当然不仅仅是令牌桶限流方式,`Zuul` 只要是限流的活它都能干,这里我只是简单举个:chestnut:。 -令牌桶限流 +令牌桶限流 我先来解释一下什么是 **令牌桶限流** 吧。 @@ -583,7 +583,7 @@ public class RouteFilter extends ZuulFilter { 你想一下,我们的应用是不是只有启动的时候才会进行配置文件的加载,那么我们的 `Spring Cloud Config` 就暴露出一个接口给启动应用来获取它所想要的配置文件,应用获取到配置文件然后再进行它的初始化工作。就如下图。 - + 当然这里你肯定还会有一个疑问,如果我在应用运行时去更改远程配置仓库(Git)中的对应配置文件,那么依赖于这个配置文件的已启动的应用会不会进行其相应配置的更改呢? @@ -597,7 +597,7 @@ public class RouteFilter extends ZuulFilter { 慢着,听我说完,`Webhooks` 虽然能解决,但是你了解一下会发现它根本不适合用于生产环境,所以基本不会使用它的。 -![](https://md.xushufa.cn/gitimg/document/imgs/java/spring-cloud/1ada747175704ecba3507074847002d0-new-imagee5249fee-c5ee-4472-9983-f1bd5801387c.png) +![](https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/java/spring-cloud/1ada747175704ecba3507074847002d0-new-imagee5249fee-c5ee-4472-9983-f1bd5801387c.png) 而一般我们会使用 `Bus` 消息总线 + `Spring Cloud Config` 进行配置的动态刷新。 @@ -609,7 +609,7 @@ public class RouteFilter extends ZuulFilter { 而拥有了 `Spring Cloud Bus` 之后,我们只需要创建一个简单的请求,并且加上 `@ResfreshScope` 注解就能进行配置的动态修改了,下面我画了张图供你理解。 -![]( https://md.xushufa.cn/gitimg/document/imgs/java/spring-cloud/springcloud-bus-s213dsfsd.jpg ) +![]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/java/spring-cloud/springcloud-bus-s213dsfsd.jpg ) ## 总结 diff --git a/java/javaNote.md b/java/javaNote.md index 018a6a4..34579c5 100644 --- a/java/javaNote.md +++ b/java/javaNote.md @@ -1,6 +1,8 @@ # javaNote -## 1、java常用方法 +## 1、java编程 + +### 1.1、常用方法 ```java @Data @@ -26,7 +28,15 @@ private Date createTime; Assert.isTrue(!StringUtils.isEmpty(param.getPhone()), "联系方式不能为空"); +ExecutorService ex = Executors.newCachedThreadPool(); +Runtime.getRuntime().availableProcessors(); +ThreadPoolTaskExecutor +CountDownLatch +CyclicBarrier + +``` +```java @MapKey("operatorId") List> queryOperatorList(); @@ -35,9 +45,22 @@ List> queryOperatorList(); GROUP BY operator_id + +@Select("") +List querySettlementProcessInstanceList(@Param("billOrderList") List billOrderList); + + ``` -### 1.1、lambda表达式 +### 1.2、lambda表达式 ```java @@ -124,7 +147,7 @@ basketList.parallelStream().collect(Collectors.groupingBy(item -> item.getAddrTe ``` -### 1.2、Map遍历 +### 1.3、Map遍历 ```java @@ -174,7 +197,7 @@ for(String key : map.keySet()){ ``` -### 1.3、java排序 +### 1.4、java排序 ```java java排序 @@ -293,7 +316,7 @@ public static TreeMap> getCustomSortTreeMap ``` -### 1.4、flatmap,peek,newArrayList +### 1.5、flatmap,peek,newArrayList ```java JAVA8 中的flatmap @@ -657,7 +680,7 @@ maven常用打包命令 | 无为徐生 | 微信公众号 |   | 今日头条号 | | --------- | ------------------------------------------------------------- | - | ---------- | -| 二维码 | ![w]( https://md.xushufa.cn/gitimg/imgs/other/wuweixusheng_weixin.png ) |
| ![t]( https://md.xushufa.cn/gitimg/imgs/other/wuweixusheng_toutiao.png ) | +| 二维码 | ![w]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/weixin/wuweixusheng_weixin.png ) |
| ![t]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/toutiao/wuweixusheng_toutiao.png ) | *** @@ -667,9 +690,10 @@ maven常用打包命令 | 徐书法 | 地址 | 备注 | | ----- | ----------- | ------------- | -| 1 | [xushufa.cn]( https://xushufa.cn ) | 书法练习轨迹网站。 | -| 2 | [blog.xushufa.cn]( https://blog.xushufa.cn ) | `vuepress`构建的博客网站。 | -| 3 | [web.xushufa.cn]( https://web.xushufa.cn ) | `vuepress-theme-reco`构建的博客网站。| +| 1 | [xushufa]( https://xushufa.cn ) | `vuepress-theme-reco`构建的博客网站。| +| 2 | [vuepress-blog]( https://vuepress-blog.xushufa.cn ) | `vuepress`构建的博客网站。 | +| 3 | [mkdocs-blog]( https://xuyq123.gitlab.io/mkdocs-blog ) | `mkdocs`构建的博客网站。 | *** + diff --git "a/java/java\350\265\204\346\226\231\351\233\206.md" "b/java/java\350\265\204\346\226\231\351\233\206.md" index 58fa730..e841af7 100644 --- "a/java/java\350\265\204\346\226\231\351\233\206.md" +++ "b/java/java\350\265\204\346\226\231\351\233\206.md" @@ -1,7 +1,7 @@ # java资料集 ## 序 -[blog]( https://blog.xushufa.cn )   [gitlab]( https://gitlab.com/xuyq123/mynotes )   [gitee]( https://gitee.com/xy180/MyNotes )   [github]( https://github.com/scott180 )   [csdn]( https://blog.csdn.net/xu180 )   [stackoverflow]( https://stackoverflow.com/questions/tagged/java )   [segmentfault]( https://segmentfault.com/ ) +[blog]( https://xushufa.cn )   [gitlab]( https://gitlab.com/xuyq123/mynotes )   [gitee]( https://gitee.com/xy180/MyNotes )   [github]( https://github.com/scott180 )   [csdn]( https://blog.csdn.net/xu180 )   [stackoverflow]( https://stackoverflow.com/questions/tagged/java )   [segmentfault]( https://segmentfault.com/ ) ## 1、java diff --git "a/java/mybatis\347\254\224\350\256\260.md" "b/java/mybatis\347\254\224\350\256\260.md" index 8c00615..52a2ecc 100644 --- "a/java/mybatis\347\254\224\350\256\260.md" +++ "b/java/mybatis\347\254\224\350\256\260.md" @@ -6,7 +6,8 @@
-## 1.配置文件 +## 1 配置文件 + ```xml 新建java project 导入jar 写配置文件 @@ -160,7 +161,7 @@ PUBLIC "-//mybatis.org//DTD Config 3.0//EN" ``` -## 2.SqlSession +## 2 SqlSession ``` SqlSession @@ -306,7 +307,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ``` -## 3.一对多查询 +## 3 一对多查询 ```xml @@ -367,7 +368,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ``` -## 4.缓存 +## 4 缓存 ``` diff --git "a/java/springboot\345\220\257\345\212\250banner\345\233\276\346\241\210.md" "b/java/springboot\345\220\257\345\212\250banner\345\233\276\346\241\210.md" index c71f460..c2ebf3f 100644 --- "a/java/springboot\345\220\257\345\212\250banner\345\233\276\346\241\210.md" +++ "b/java/springboot\345\220\257\345\212\250banner\345\233\276\346\241\210.md" @@ -474,7 +474,7 @@ Version: 1.4.0, Server: localhost:8080, Active Profiles: none ``` -[xushufa]( https://md.xushufa.cn/gitimg/document/imgs/other/xushufa.png ) +[xushufa]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/other/xushufa.png ) ## hello diff --git "a/java/\345\270\203\351\232\206\350\277\207\346\273\244\345\231\250.md" "b/java/\345\270\203\351\232\206\350\277\207\346\273\244\345\231\250.md" index 166ff96..b5a9aa0 100644 --- "a/java/\345\270\203\351\232\206\350\277\207\346\273\244\345\231\250.md" +++ "b/java/\345\270\203\351\232\206\350\277\207\346\273\244\345\231\250.md" @@ -21,7 +21,7 @@ 布隆过滤器(Bloom Filter)是一个叫做 Bloom 的老哥于 1970 年提出的。我们可以把它看作由二进制向量(或者说位数组)和一系列随机映射函数(哈希函数)两部分组成的数据结构。相比于我们平时常用的的 List、Map 、Set 等数据结构,它占用空间更少并且效率更高,但是缺点是其返回的结果是概率性的,而不是非常准确的。理论情况下添加到集合中的元素越多,误报的可能性就越大。并且,存放在布隆过滤器的数据不容易删除。 -![布隆过滤器示意图]( https://md.xushufa.cn/gitimg/document/imgs/java/Bloom-bit.png ) +![布隆过滤器示意图]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/java/Bloom-bit.png ) 位数组中的每个元素都只占用 1 bit ,并且每个元素只能是 0 或者 1。这样申请一个 100w 个元素的位数组只占用 1000000Bit / 8 = 125000 Byte = 125000/1024 kb ≈ 122kb 的空间。 @@ -41,7 +41,7 @@ 举个简单的例子: -![布隆过滤器hash计算]( https://md.xushufa.cn/gitimg/document/imgs/java/Bloom-hash.png ) +![布隆过滤器hash计算]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/java/Bloom-hash.png ) 如图所示,当字符串存储要加入到布隆过滤器中时,该字符串首先由多个哈希函数生成不同的哈希值,然后将对应的位数组的下标设置为 1(当位数组初始化时,所有位置均为 0)。当第二次存储相同字符串时,因为先前的对应位置已设置为 1,所以很容易知道此值已经存在(去重非常方便)。 diff --git a/note.md b/note.md index c5aa164..7bce9d1 100644 --- a/note.md +++ b/note.md @@ -2,7 +2,7 @@
-- [ ] `仓库`   [blog]( https://blog.xushufa.cn )   [gitlab]( https://gitlab.com/xuyq123/mynotes )   [gitee]( https://gitee.com/xy180/MyNotes )   [github]( https://github.com/scott180/MyNotes ) +- [ ] `仓库`   [blog]( https://xushufa.cn )   [gitlab]( https://gitlab.com/xuyq123/mynotes )   [gitee]( https://gitee.com/xy180/MyNotes )   [github]( https://github.com/scott180/MyNotes ) ## 1、日常 @@ -14,8 +14,8 @@ ```java windows常用快捷键 -Ctrl+C 复制选中内容 -Ctrl+V 粘贴复制内容 +Ctrl+C 复制 +Ctrl+V 粘贴 Ctrl+S 保存 Ctrl+A 选中全部内容 Ctrl+X 剪切 @@ -28,10 +28,16 @@ Ctrl+N 新建一个空白文档 Ctrl+P 打开"打印"对话框 Ctrl+O 打开文档 -Ctrl+Shift 输入法切换 -Ctrl+Home 光标快速移到文件头 -Ctrl+End 光标快速移到文件尾 -Alt+Tab 程序切换 +Ctrl+Shift 输入法切换 +Ctrl+Home 光标快速移到文件头 +Ctrl+End 光标快速移到文件尾 + +Ctrl+Shift+End 选中当前到末尾所有内容 +Ctrl+Shift+Esc 打开任务管理器 +Ctrl+Shift+Del 浏览器打开清除缓存对话框 + +Alt+Tab 程序切换(小图标) +Win+Tab 程序切换(大图标) Win 显示开始菜单 Win+L 锁定计算机 @@ -39,18 +45,22 @@ Win+E 启动"我的电脑" Win+D 快速显示桌面 Win+R 打开电脑"运行"对话框 -F2 文件夹改名 +F2 文件改名 F5 浏览器页面刷新 F11 浏览器进入全屏状态 F12 浏览器打开调试 +Shift+PgUp 向上选中内容 +Shift+PgDn 向下选中内容 + +Shift+光标+右键 选中内容 ``` #### 1.1.2、修改文件的默认打开方式 -```sql +``` 修改文件的默认打开方式: 1.修改属性 @@ -90,7 +100,7 @@ D:\ProgramFiles\Notepadd++\Notepad++\plugins ``` -```c +``` notepadd++ txt,md格式 文字高亮 设置 - 语言格式设置 - 自定义扩展名 @@ -104,7 +114,7 @@ notepad竖向选择 #### 1.1.4、markdown -```java +``` markdown在线编辑 作业部落 https://www.zybuluo.com/mdeditor 马克飞象 https://maxiang.io/ @@ -137,16 +147,16 @@ markdown空格符号 ``` -``` +```java markdown表格宽度设置 | git仓库 | 布署方法 | 备注        | ``` -```c +``` gitlab、github、gitee布署mkdocs主题仓库 -https://gitlab.com/xuyq123/mynotes/-/blob/master/gitlab%E3%80%81github%E3%80%81gitee%E5%B8%83%E7%BD%B2mkdocs%E4%B8%BB%E9%A2%98%E4%BB%93%E5%BA%93.md +https://gitlab.com/xuyq123/mynotes gitlab mkdocs主题仓库 https://gitlab.com/xuyq123/plain-mkdocs @@ -158,7 +168,7 @@ gitlab mkdocs主题仓库 --- git平台docsify布署markdown文件 -https://gitlab.com/xuyq123/mynotes/-/blob/master/git%E5%B9%B3%E5%8F%B0docsify%E5%B8%83%E7%BD%B2markdown%E6%96%87%E4%BB%B6.md +https://github.com/scott180/MyNotes gitlab docsify主题仓库 https://gitlab.com/xuyq123/plain-docsify @@ -187,7 +197,7 @@ Administrator/123456 #### 1.2.2、红米笔记本问题 -```c +``` 红米笔记本触摸板失灵 - 按F12 @@ -200,15 +210,14 @@ redmibook的FN键没有作用,F1~F12功能键直接按就是调节音. #### 1.2.3、无线网连不上 & 代理连接失败 -``` - +```js win7无线网络连接不上(未连接-连接可用)常用解决方法。 开始 --控制面板(查看方式-小图标)--管理工具 --服务 WLAN AutoConfig 启动此服务且启动类型改为自动 ``` -```c +``` 代理连接失败 (-130 ERR_PROXY_CONNECTION_FAILED ) 治本方法: @@ -243,29 +252,54 @@ Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinHttpAutoProxySv ``` -#### 1.2.4、视频会员兑换渠道 -```js -视频会员:腾讯视频、优酷、爱奇艺、芒果TV等视频网站会员积分兑换 +#### 1.2.4、关闭Chrome浏览器更新通知 -微信支付-支付有优惠-兑换好礼 -安徽掌上10000APP兑换币、积分 -安徽电信公众号-个人中心-金币兑换 -中国联通APP积分 -电信营业厅 APP积分 -微众银行APP积分 -支付宝会员积分 -云闪付APP签到金 ---2021 +如何关闭Chrome 浏览器提示“若要接收后续 google chrome 更新,您需使用 windows 10 或更高版本” -招商银行 腾讯超V联名卡 腾讯权益六选一 -平安悦享白金卡 百变好礼月月享 ---2022 +``` +方法一:新建注册表文件 +原文链接:https://www.ahaoyw.com/article/827.html + +1、首先在桌面或者其他文件夹内新建一个记事本文件 + +2、打开新建的记事本文件,复制下面这段代码,粘贴其中,保存关闭 + +Windows Registry Editor Version 5.00 + +[HKEY_CURRENT_USER\Software\Policies\Google\Chrome] +"SuppressUnsupportedOSWarning"=dword:00000001 + +3、将记事本的名称改为 .reg 后缀(注意连 .txt 的后缀也得删除一并改掉),例如closeChromeUpdate.reg (名字可以自定义但是后缀一定要.reg)然后双击运行该文件,点击是 + +4、系统弹出包含的项和值已经成功添加到注册表中,点击确定完成 + +5、最后重启Chrome浏览器 + +``` + +``` +方法二:编辑注册表 +原文链接:https://blog.csdn.net/haobiliuxiang/article/details/128232476 + +1. 打开“开始”,输入 regedit.exe,选择注册表编辑器。 + +2. 转到 HKEY_CURRENT_USER / Software / Policies / Google / Chrome。 + +如果其中一个键不存在,在前面的键上点击右键,选择新建 > 键。给它起个相应的名字。 +3. 右键点击 Chrome,选择新建 > Dword(32 位)值。 + +4. 将其命名为 SuppressUnsupportedOSWarning。 + +5. 双击该名称并将其值设为 1。 + +6. 重新启动浏览器。 ``` + #### 1.2.5、shell批量推送git ```sh @@ -324,8 +358,7 @@ copyPush #### 1.3.1、身高体重比例 -```js - +``` 标准体重是反映和衡量一个人健康状况的重要标志之一。过胖和过瘦都不利于健康,也不会给人以健美感。不同体型的大量统计材料表明,反映正常体重较理想和简单的指标,可用身高体重的关系来表示。 一、世卫计算方法 @@ -390,7 +423,7 @@ copyPush #### 1.3.3、春联上联和下联怎么区分 -```js +``` 在以往,我国春节贴的春联,大多是请村子里学问高的先生到家里来写,然后在先生的指导下贴上的。那过年春联上联和下联怎么区分如何贴?上联贴在左边还是右边? 上联下联的区分: @@ -418,6 +451,89 @@ copyPush ``` +#### 1.3.4、视频会员和电信流量兑换 + +```js +视频会员:腾讯视频、优酷、爱奇艺、芒果TV等视频网站会员积分兑换 + +微信支付-支付有优惠-兑换好礼 +安徽掌上10000APP兑换币、积分 +安徽电信公众号-个人中心-金币兑换 +中国联通APP积分 +电信营业厅 APP积分 +微众银行APP积分 +支付宝会员积分 +云闪付APP签到金 +--2021 + + +招商银行 腾讯超V联名卡 腾讯权益六选一 +平安悦享白金卡 百变好礼月月享 +--2022 + + +``` + +--- + +``` +各位小伙伴,现在主要有以下几个方法正规免费获取流量: + +1、安徽电信公众号--福利专区--个人中心--#签到有礼 。每日连续签到,使用金币兑换流量,一个月大概有4G多免费流量。活动到2023年12月31结束。 + +2、安徽电信公众号--福利专区--个人中心--#夏日送福利 (顶部动态活动)。每日签到,有几率获取流量、翼支付权益金、视频会员等等。活动到2023年8月31结束。 + +3、安徽电信公众号--福利专区--个人中心-#福利大放送 (顶部动态活动)。每月参与一次抽奖,有几率获取金币、流量、翼支付权益金、视频会员等等。活动到2023年12月31结束。 + +4、安徽电信掌上10000--福利中心--#玩酷大转盘。消耗兑换币、分享活动等方式获取抽奖机会,有几率获取金币、流量、翼支付权益金、视频会员等等。活动到2023年9月30结束。 + +--2023.08.01 + +``` + + +#### 1.3.5、天干地支 + +十天干指的是:甲、乙、丙、丁、戊、己、庚、辛、壬、癸。
+十二地支指的是:子、丑、寅、卯、辰、巳、午、未、申、酉、戌、亥。
+十二地支与十二生肖对应:子鼠、丑牛、寅虎、卯兔、辰龙、巳蛇、午马、未羊、申猴、酉鸡、戌狗、亥猪。
+ + +天干地支时间对照表 + +1、子时:夜半,又名子夜、中夜,十二时辰的第一个时辰。对应23时至01时。
+2、丑时:鸡鸣,又名荒鸡,十二时辰的第二个时辰。对应01时至03时。
+3、寅时:平旦,又称黎明、早晨、日旦等,是夜与日的交替之际。对应03时至05时。
+4、卯时:日出,又名日始、破晓、旭日等,指太阳刚刚露脸,冉冉初升的那段时间。对应05时至07时。
+5、辰时:食时,又名早食等,古人“朝食”之时也就是吃早饭时间,对应07时至09时。
+6、巳时:隅中,又名日禺等,临近中午的时候称为隅中。对应09 时至11时。
+7、午时:日中,又名日正、中午等,对应11时至13时。
+8、未时:日昳,又名日跌、日央等,太阳偏西为日跌。对应13时至15时。
+9、申时:哺时,又名日铺、夕食等,对应15时至17时。
+10、酉时:日入,又名日落、日沉、傍晚,意为太阳落山的时候。对应17时至19时。
+11、戌时:黄昏,又名日夕、日暮、日晚等,此时太阳已经落山,天将黑未黑。天地昏黄,万物朦胧,故称黄昏。对应19时至21时。
+12、亥时:人定,又名定昏等,代表此时夜色已深,人们也已经停止活动,安歇睡眠了。人定也就是人静。对应21时至23时。
+ + + +#### 1.3.6、二十四节气 + +节气歌
+春雨惊春清谷天,夏满芒夏暑相连。
+秋处露秋寒霜降,冬雪雪冬小大寒。
+ + +| 春季 | 日 期 | 夏季 | 日 期 | 秋季 | 日 期 | 冬季 | 日 期 | +| ----- | ---------- | ------| ----------- | ----- | ------------ | ----- | ----------- | +| 立春 | 2月3-5日 | 立夏 | 5月5-7日 | 立秋 | 8月7-9日 | 立冬 | 11月7-8日 | +| 雨水 | 2月18-20日 | 小满 | 5月20-22日 | 处暑 | 8月22-24日 | 小雪 | 11月22-23日 | +| 惊蛰 | 3月5-7日 | 芒种 | 6月5-7日 | 白露 | 9月7-9日 | 大雪 | 12月6-8日 | +| 春分 | 3月20-22日 | 夏至 | 6月21-22日 | 秋分 | 9月22-24日 | 冬至 | 12月21-23日 | +| 清明 | 4月4-6日 | 小暑 | 7月6-8日 | 寒露 | 10月8-9日 | 小寒 | 1月5-7日 | +| 谷雨 | 4月19-21日 | 大暑 | 7月22日-24日 | 霜降 | 10月23-24日 | 大寒 | 1月20-21日 | + + + ### 1.4、工作 @@ -433,14 +549,14 @@ git :gitlab、github、gitee、gitcode、coding、bitbucket 搜索:谷歌、百度、头条、必应 工具:idea、notepadd++、navicat、postman、fiddler、typora、eclipse、vscode -``` +``` ************************* #### 1.4.2、mysql logbin日志 -```sql -mysql开启log-bin日志.md https://gitlab.com/xuyq123/mynotes/-/blob/master/mysql%E5%BC%80%E5%90%AFlog-bin%E6%97%A5%E5%BF%97.md +``` +mysql开启log-bin日志.md https://gitlab.com/xuyq123/mynotes 一 、logbin日志 记录新增、更新、删除的sql show binary logs; @@ -459,7 +575,7 @@ TRUNCATE table mysql.general_log #### 1.4.3、端点已使用 -```sql +```sh C:\Users\Administrator>netstat -ano|findstr "8080" TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 11492 TCP [::]:8080 [::]:0 LISTENING 11492 @@ -476,8 +592,7 @@ C:\Users\Administrator>taskkill /f /t /im 11492 #### 1.4.4、druid 安全配置 -```vb - +``` 为Druid增加权限验证措施,建议参考 https://github.com/alibaba/druid/wiki/%E9%85%8D%E7%BD%AE_StatViewServlet%E9%85%8D%E7%BD%AE https://blog.csdn.net/my_ha_ha/article/details/86212492 @@ -524,10 +639,35 @@ http://localhost:8080/druid/sql.html ************************* +#### 1.4.6、小工具 + +| 序号 | 地址 | 备注 | +| ----- | ----------- | ------------- | +| 1 | [json]( https://tool.xushufa.cn/json ) | json 格式化工具 | +| 2 | [yaml解析]( https://tool.xushufa.cn/yaml-parse ) | yaml解析为json | +| 3 | [时间毫秒值转换]( https://tool.xushufa.cn/time-format ) | 时间毫秒值转换 | +| | 解码编码 | | +| 4 | [url解码]( https://tool.xushufa.cn/url-encode ) | url解码编码 | +| 5 | [unicode解码]( https://tool.xushufa.cn/unicode-encode ) | unicode解码编码 | +| 6 | [文字转二维码]( https://tool.xushufa.cn/words-QRcode ) | 文字转二维码 | +| 7 | [二维码生成扫描识别]( https://tool.xushufa.cn/HtmlQRCode ) | 二维码生成扫描识别 | +| | markdown | | +| 8 | [md2wx]( https://tool.xushufa.cn/md2wx/docs ) | 在线Markdown微信格式化工具 | +| 9 | [editormd]( https://tool.xushufa.cn/markdown-editormd ) | 开源的、可嵌入的 Markdown 在线编辑器 | +| 10 | [markthing]( https://tool.xushufa.cn/markdown-markthing ) | 一个MarkDown编辑器 | +| 11 | [mpeditor]( https://tool.xushufa.cn/markdown-mpeditor ) | 专注于微信公众号的编辑阅读器 | +| | 项目布署 | | +| 12 | [tool]( https://github.com/scott180/tool ) | github仓库 | +| 13 | [xushufa]( https://xushufa.cn ) | 个人网站 | + +************************* + ## 2、java -### 2.1、java常用方法 +### 2.1、java编程 + +#### 2.1.1、常用方法 ```java @Data @@ -553,7 +693,15 @@ private Date createTime; Assert.isTrue(!StringUtils.isEmpty(param.getPhone()), "联系方式不能为空"); +ExecutorService ex = Executors.newCachedThreadPool(); +Runtime.getRuntime().availableProcessors(); +ThreadPoolTaskExecutor +CountDownLatch +CyclicBarrier + +``` +```java @MapKey("operatorId") List> queryOperatorList(); @@ -562,9 +710,22 @@ List> queryOperatorList(); GROUP BY operator_id + +@Select("") +List querySettlementProcessInstanceList(@Param("billOrderList") List billOrderList); + + ``` -#### 2.1.1、lambda表达式 +#### 2.1.2、lambda表达式 ```java @@ -651,7 +812,7 @@ basketList.parallelStream().collect(Collectors.groupingBy(item -> item.getAddrTe ``` -#### 2.1.2、Map遍历 +#### 2.1.3、Map遍历 ```java @@ -701,7 +862,7 @@ for(String key : map.keySet()){ ``` -#### 2.1.3、java排序 +#### 2.1.4、java排序 ```java java排序 @@ -820,7 +981,7 @@ public static TreeMap> getCustomSortTreeMap ``` -#### 2.1.4、flatmap,peek,newArrayList +#### 2.1.5、flatmap,peek,newArrayList ```java JAVA8 中的flatmap @@ -1184,7 +1345,7 @@ maven常用打包命令 | 无为徐生 | 微信公众号 |   | 今日头条号 | | --------- | ------------------------------------------------------------- | - | ---------- | -| 二维码 | ![w]( https://md.xushufa.cn/gitimg/imgs/other/wuweixusheng_weixin.png ) |
| ![t]( https://md.xushufa.cn/gitimg/imgs/other/wuweixusheng_toutiao.png ) | +| 二维码 | ![w]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/weixin/wuweixusheng_weixin.png ) |
| ![t]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/toutiao/wuweixusheng_toutiao.png ) | *** @@ -1194,9 +1355,9 @@ maven常用打包命令 | 徐书法 | 地址 | 备注 | | ----- | ----------- | ------------- | -| 1 | [xushufa.cn]( https://xushufa.cn ) | 书法练习轨迹网站。 | -| 2 | [blog.xushufa.cn]( https://blog.xushufa.cn ) | `vuepress`构建的博客网站。 | -| 3 | [web.xushufa.cn]( https://web.xushufa.cn ) | `vuepress-theme-reco`构建的博客网站。| +| 1 | [xushufa]( https://xushufa.cn ) | `vuepress-theme-reco`构建的博客网站。| +| 2 | [vuepress-blog]( https://vuepress-blog.xushufa.cn ) | `vuepress`构建的博客网站。 | +| 3 | [mkdocs-blog]( https://xuyq123.gitlab.io/mkdocs-blog ) | `mkdocs`构建的博客网站。 | *** diff --git "a/\346\225\260\346\215\256\345\272\223/mongo.md" "b/\346\225\260\346\215\256\345\272\223/mongo.md" index 67302be..a3b4adb 100644 --- "a/\346\225\260\346\215\256\345\272\223/mongo.md" +++ "b/\346\225\260\346\215\256\345\272\223/mongo.md" @@ -363,7 +363,7 @@ db.test1.drop() 删除集合 > 三种情况下mongo内嵌文档的查询与保存 ```sql -一、内嵌文档(一个对象) +1、内嵌文档(一个对象) "recipientBy" : { // 发给用户时收件人类型、id、名称 "type" : 0, "address" : "uc_u:(2)71070001" @@ -454,6 +454,6 @@ http://www.cnblogs.com/ginb/p/6200721.html --- -[mongodb]( https://www.mongodb.com/docs/manual/ )   [runoob]( https://www.runoob.com/mongodb/mongodb-tutorial.html )   [blog.xushufa.cn]( https://blog.xushufa.cn ) +[mongodb]( https://www.mongodb.com/docs/manual/ )   [runoob]( https://www.runoob.com/mongodb/mongodb-tutorial.html )   [xushufa.cn]( https://xushufa.cn ) --- diff --git "a/\346\225\260\346\215\256\345\272\223/mysqlNote.md" "b/\346\225\260\346\215\256\345\272\223/mysqlNote.md" index dc2e2c0..090df5e 100644 --- "a/\346\225\260\346\215\256\345\272\223/mysqlNote.md" +++ "b/\346\225\260\346\215\256\345\272\223/mysqlNote.md" @@ -6,7 +6,7 @@ ```js 压缩包,免安装文件,安装mysql。参考: -http://blog.xushufa.cn +http://xushufa.cn http://blog.csdn.net/wengengeng/article/details/52013650 https://www.cnblogs.com/jyjia/archive/2019/03/07/10490013.html @@ -600,7 +600,7 @@ select id,group_concat(name order by name desc) from aa group by id; ``` -### 2.4、left join左右连接 +### 2.4、left join左右内外连接 ```sql sql之left join、right join、inner join的区别 @@ -696,11 +696,11 @@ compopr参数指定关系比较运算符:"=", "<", ">", "<=", ">=" 或 ``` -### 2.5、Case when 的使用方法 +### 2.5、case when 的使用方法 ```java -Case when 的使用方法 +case when 的使用方法 https://www.cnblogs.com/yazdao/archive/2009/12/09/1620482.html Case具有两种格式。简单Case函数和Case搜索函数。 @@ -846,7 +846,7 @@ where purchase_order='HZCCG20220906618201'; ``` -### 2.6、复制表结构、表数据 +### 2.6、复制表结构表数据 ```java @@ -906,7 +906,7 @@ SELECT * INTO 表2 FROM 表1 ```sql -sql将毫秒数字转换为日期 +--sql将毫秒数字转换为日期 SELECT FROM_UNIXTIME(operation_time/1000,"%Y-%m-%d %H:%i:%s") operationDate FROM ins_purchase ``` @@ -922,6 +922,14 @@ timediff(date_format(create_time, '%H:%i:%s'),'03:00:00') t2, ``` +```sql +--时间增减 +select DATE_ADD( now(), INTERVAL -2 DAY ) from dual + +SELECT id,product_id productId,sales FROM ins_period_sales where create_time > DATE_ADD( now(), INTERVAL -2 DAY ) + +``` + ### 3.2、中文排序 @@ -930,6 +938,7 @@ sql中文排序 SELECT id,name FROM `T_USER` ORDER BY convert(name using gbk) ASC limit 10,100; ``` + ### 3.3、分组取最值 ```sql @@ -942,6 +951,7 @@ select * from (select * from ins_delivery_region_sort order by update_time desc Insert into fd_supplier VALUES (null,#{supplier_id},#{s_code}) on duplicate key update s_code=#{s_code} ``` + ### 3.4、修改root密码 ```js @@ -964,10 +974,30 @@ mysql> exit; ``` -### 3.5、文档 +### 3.5、Deadlock found + +```js +https://blog.csdn.net/qq_44240587/article/details/108400666 死锁 +Mysql报Deadlock found when trying to get lock; try restarting transaction问题解决!! + + +行级锁在使用的时候并不是直接锁掉这行记录,而是锁索引 +如果一条sql用到了主键索引(mysql主键自带索引),mysql会锁住主键索引; +如果一条sql操作了非主键索引,mysql会先锁住非主键索引,再锁定主键索引. + + +select * from information_schema.INNODB_TRX + +kill 进程ID + + +``` + + +### 3.6、文档 -- [数据库隔离级别]( https://blog.xushufa.cn ) +- [数据库隔离级别]( https://xushufa.cn/docs/bian-cheng/shu-ju-ku/shu-ju-ku-ge-chi-ji-bie.html ) -- [mysql开启log-bin日志]( https://web.xushufa.cn ) +- [mysql开启log-bin日志]( https://xushufa.cn/docs/bian-cheng/shu-ju-ku/mysqlkai-qi-log-binri-zhi.html ) diff --git "a/\346\225\260\346\215\256\345\272\223/mysql\345\274\200\345\220\257log-bin\346\227\245\345\277\227.md" "b/\346\225\260\346\215\256\345\272\223/mysql\345\274\200\345\220\257log-bin\346\227\245\345\277\227.md" index 9476853..bcf1c15 100644 --- "a/\346\225\260\346\215\256\345\272\223/mysql\345\274\200\345\220\257log-bin\346\227\245\345\277\227.md" +++ "b/\346\225\260\346\215\256\345\272\223/mysql\345\274\200\345\220\257log-bin\346\227\245\345\277\227.md" @@ -72,7 +72,7 @@ mysql> show binlog events in 'mysql-bin.000001' from 4 limit 0,5;
-4、导出文件 +- 4、导出文件 ```sql mysqlbinlog /var/lib/mysql/mysql-bin.000001 > test.sql; diff --git "a/\346\225\260\346\215\256\345\272\223/redis.md" "b/\346\225\260\346\215\256\345\272\223/redis.md" index d5cf552..af6e03c 100644 --- "a/\346\225\260\346\215\256\345\272\223/redis.md" +++ "b/\346\225\260\346\215\256\345\272\223/redis.md" @@ -2,7 +2,7 @@ ## 安装 -``` sql +```java windows下redis安装 http://www.runoob.com/redis/redis-install.html 进入redis目录 diff --git "a/\346\225\260\346\215\256\345\272\223/\346\225\260\346\215\256\345\272\223\351\232\224\347\246\273\347\272\247\345\210\253.md" "b/\346\225\260\346\215\256\345\272\223/\346\225\260\346\215\256\345\272\223\351\232\224\347\246\273\347\272\247\345\210\253.md" index 23109b7..9a450b2 100644 --- "a/\346\225\260\346\215\256\345\272\223/\346\225\260\346\215\256\345\272\223\351\232\224\347\246\273\347\272\247\345\210\253.md" +++ "b/\346\225\260\346\215\256\345\272\223/\346\225\260\346\215\256\345\272\223\351\232\224\347\246\273\347\272\247\345\210\253.md" @@ -36,6 +36,17 @@ ``` + +| | 脏读 | 不可重复读 | 幻读 | +|-----------------------------|-------------|-------------|-------------| +| 读未提交 read-uncommitted | √ | √ | √ | +| 读已提交 read-committed | × | √ | √ | +| 可重复读 repeatable-read | × | × | √ | +| 串行化 serializable | × | × | × | + + + + ## 第1级别:Read Uncommitted ```js diff --git "a/\346\226\207\346\241\243\347\233\256\345\275\225.md" "b/\346\226\207\346\241\243\347\233\256\345\275\225.md" index d4c10cf..87505e8 100644 --- "a/\346\226\207\346\241\243\347\233\256\345\275\225.md" +++ "b/\346\226\207\346\241\243\347\233\256\345\275\225.md" @@ -6,19 +6,23 @@ > 随笔 - - [日常Note]( https://gitcode.net/xu180/document/-/blob/master/article/生活/随笔/日常Note.md ) - - [驾考记事]( https://gitcode.net/xu180/document/-/blob/master/article/生活/随笔/驾考记事.md ) - - [健身与学习]( https://gitcode.net/xu180/document/-/blob/master/article/生活/随笔/健身与学习.md ) - - [二十四式太极拳]( https://gitcode.net/xu180/document/-/blob/master/article/生活/随笔/二十四式太极拳.md ) - - [短期远行必备物品]( https://gitcode.net/xu180/document/-/blob/master/article/生活/随笔/短期远行必备物品.md ) + - [日常Note]( https://gitcode.net/xu180/document/-/blob/master/article/随笔/日常Note.md ) + - [驾考记事]( https://gitcode.net/xu180/document/-/blob/master/article/随笔/驾考记事.md ) + - [健身与学习]( https://gitcode.net/xu180/document/-/blob/master/article/随笔/健身与学习.md ) + - [吉他练习笔记]( https://gitcode.net/xu180/document/-/blob/master/article/随笔/吉他练习笔记.md ) + - [二十四式太极拳]( https://gitcode.net/xu180/document/-/blob/master/article/随笔/二十四式太极拳.md ) + - [短期远行必备物品]( https://gitcode.net/xu180/document/-/blob/master/article/随笔/短期远行必备物品.md ) + - [我的原神旅行观测记录]( https://gitcode.net/xu180/document/-/blob/master/article/%E9%9A%8F%E7%AC%94/%E6%88%91%E7%9A%84%E5%8E%9F%E7%A5%9E%E6%97%85%E8%A1%8C%E8%A7%82%E6%B5%8B%E8%AE%B0%E5%BD%95.md ) + - [纪念一下,三百天打满深渊]( https://gitcode.net/xu180/document/-/blob/master/article/%E9%9A%8F%E7%AC%94/纪念一下,三百天打满深渊.md ) + - [原神历史版本祈愿up活动速递]( https://gitcode.net/xu180/document/-/blob/master/article/%E9%9A%8F%E7%AC%94/原神历史版本祈愿up活动速递.md ) > 文档 - - [如何练好书法]( https://gitcode.net/xu180/document/-/blob/master/article/生活/文档/如何练好书法.md ) - - [文言文翻译网络流行语]( https://gitcode.net/xu180/document/-/blob/master/article/生活/文档/文言文翻译网络流行语.md ) - - [安徽电信免费流量获取方法]( https://gitcode.net/xu180/document/-/blob/master/article/生活/文档/安徽电信免费流量获取方法.md ) - - [安徽电信-流量来啦-每日必点]( https://gitcode.net/xu180/document/-/blob/master/article/生活/文档/安徽电信-流量来啦-每日必点.md ) - - [治疗失眠无限循环的有趣动图]( https://gitcode.net/xu180/document/-/blob/master/article/生活/文档/治疗失眠无限循环的有趣动图.md ) + - [如何练好书法]( https://gitcode.net/xu180/document/-/blob/master/article/文档/如何练好书法.md ) + - [文言文翻译网络流行语]( https://gitcode.net/xu180/document/-/blob/master/article/文档/文言文翻译网络流行语.md ) + - [安徽电信免费流量获取方法]( https://gitcode.net/xu180/document/-/blob/master/article/文档/安徽电信免费流量获取方法.md ) + - [安徽电信-流量来啦-每日必点]( https://gitcode.net/xu180/document/-/blob/master/article/文档/安徽电信-流量来啦-每日必点.md ) + - [治疗失眠无限循环的有趣动图]( https://gitcode.net/xu180/document/-/blob/master/article/文档/治疗失眠无限循环的有趣动图.md ) --- @@ -67,7 +71,7 @@ > 资料 - - [npm笔记]( https://gitlab.com/xuyq123/mynotes/-/blob/master/资料/npm笔记.md ) + - [nodejs与npm笔记]( https://gitlab.com/xuyq123/mynotes/-/blob/master/资料/nodejs与npm笔记.md ) - [jquery笔记]( https://gitlab.com/xuyq123/mynotes/-/blob/master/资料/jquery笔记.md ) - [二进制数负数]( https://gitlab.com/xuyq123/mynotes/-/blob/master/资料/二进制数负数.md ) - [javaScript笔记]( https://gitlab.com/xuyq123/mynotes/-/blob/master/资料/javaScript笔记.md ) @@ -77,6 +81,8 @@ - [markdown常用语法]( https://gitlab.com/xuyq123/mynotes/-/blob/master/资料/markdown常用语法.md ) - [window安装RabbitMQ]( https://gitlab.com/xuyq123/mynotes/-/blob/master/资料/window安装RabbitMQ.md ) - [markdown导出pdf方法优劣分析]( https://gitlab.com/xuyq123/mynotes/-/blob/master/资料/markdown导出pdf方法优劣分析.md ) + - [十大git仓库平台保存文件与图片]( https://gitlab.com/xuyq123/mynotes/-/blob/master/资料/十大git仓库平台保存文件与图片.md ) + - [系统磁盘c盘清理垃圾文件方法一览]( https://gitlab.com/xuyq123/mynotes/-/blob/master/资料/系统磁盘c盘清理垃圾文件方法一览.md ) - [pagefile.sys有几十个G,太大怎么办]( https://gitlab.com/xuyq123/mynotes/-/blob/master/资料/pagefile.sys有几十个G,太大怎么办.md ) --- @@ -118,13 +124,8 @@ | 徐书法 | 地址 | 备注 | | ----- | ----------- | ------------- | -| 1 | [xushufa.cn]( https://xushufa.cn ) | 书法练习网站。 | -| 2 | [blog.xushufa.cn]( https://blog.xushufa.cn ) | `vuepress`构建的博客网站。 | -| 3 | [web.xushufa.cn]( https://web.xushufa.cn ) | `vuepress-theme-reco`构建的博客网站。| +| 1 | [xushufa]( https://xushufa.cn ) | `vuepress-theme-reco`构建的博客网站。| +| 2 | [vuepress-blog]( https://vuepress-blog.xushufa.cn ) | `vuepress`构建的博客网站。 | +| 3 | [mkdocs-blog]( https://xuyq123.gitlab.io/mkdocs-blog ) | `mkdocs`构建的博客网站。 | ---- - -## 导图 - -![文档导图]( https://md.xushufa.cn/gitimg/imgs/other/thinking/文档导图.svg ) diff --git "a/\350\265\204\346\226\231/javaScript\347\254\224\350\256\260.md" "b/\350\265\204\346\226\231/javaScript\347\254\224\350\256\260.md" index e5f635e..afff953 100644 --- "a/\350\265\204\346\226\231/javaScript\347\254\224\350\256\260.md" +++ "b/\350\265\204\346\226\231/javaScript\347\254\224\350\256\260.md" @@ -24,9 +24,9 @@ $.fn.validatebox.defaults.rules.email.message = '请输入有效的
电子 alert回调 - $.messager.alert("提示:", msg, "info",function(){ - $('#userDeptEmailFrom').focus(); - }); +$.messager.alert("提示:", msg, "info",function(){ + $('#userDeptEmailFrom').focus(); + }); @@ -36,11 +36,11 @@ alert回调 },1000); -// 定时 +定时 setTimeout(function(){ - init(); - layer.close(loading); - },500); + init(); + layer.close(loading); +},500); diff --git "a/\350\265\204\346\226\231/markdown\345\257\274\345\207\272pdf\346\226\271\346\263\225\344\274\230\345\212\243\345\210\206\346\236\220.md" "b/\350\265\204\346\226\231/markdown\345\257\274\345\207\272pdf\346\226\271\346\263\225\344\274\230\345\212\243\345\210\206\346\236\220.md" index 2247581..817b89d 100644 --- "a/\350\265\204\346\226\231/markdown\345\257\274\345\207\272pdf\346\226\271\346\263\225\344\274\230\345\212\243\345\210\206\346\236\220.md" +++ "b/\350\265\204\346\226\231/markdown\345\257\274\345\207\272pdf\346\226\271\346\263\225\344\274\230\345\212\243\345\210\206\346\236\220.md" @@ -4,7 +4,7 @@ `md2pdf` `pandoc` `Typora` `MarkText` `PDFPatcher` --20220903 -> [xushufa]( https://web.xushufa.cn )   [blog]( https://blog.xushufa.cn )   [gitlab]( https://gitlab.com/xuyq123/mynotes )   [gitee]( https://gitee.com/xy180/MyNotes ) +> [xushufa]( https://xushufa.cn )   [gitlab]( https://gitlab.com/xuyq123/mynotes )   [gitee]( https://gitee.com/xy180/MyNotes ) @@ -12,7 +12,7 @@ ### 1.1 目标 -markdown导出pdf期望达到理想效果: +markdown导出pdf期望达到的理想效果: - **内容不丢失**,标题、正文、高亮、代码块等内容不会丢失,即使是代码块也能无损导出。 - **格式不变形**,字体、样式与markdown看到的基本一致。 - **有图片**,markdown的图片不论是网络链接还是base64都能正常导出。 @@ -25,24 +25,26 @@ markdown导出pdf期望达到理想效果: 使用了`Typora`,`作业部落`,`小书匠`,`马克飞象`,`浏览器打印`,`pandoc`,`xelatex`,`wkhtmltopdf`,`vscode`,`MarkText`等等许多方法将markdown导出pdf。有的收费,有的加水印,有的丢文字,有的丢图片,最后发现: - 操作markdown文件,使用`Typora`最方便。 -- 若markdown导出pdf,`MarkText`搭配`PDFPatcher`最优秀。 +- 导出markdown为pdf,`MarkText`搭配`PDFPatcher`最优秀。 --- ### 1.3 相关 +markdown相关操作,格式转换与项目布署。 + + > html转markdown文件 - pandoc 转化 `pandoc -f html -t markdown -o 202010.md 202110.html` - turndown `Convert HTML into Markdown with JavaScript.` https://mixmark-io.github.io/turndown/ - > markdown文件部署项目 - gitlab、github、gitee布署`mkdocs`主题仓库 - git平台`docsify`布署markdown文件 -- `vuepress`构建项目 -- `gitbook`部署博客 https://web.xushufa.cn +- `vuepress`构建项目 https://xushufa.cn +- `gitbook`部署博客 https://scott180.github.io/gitbook-blog @@ -63,7 +65,7 @@ Typora + pandoc 导出pdf时,可以将图片链接换成base64编码,这样 且文档的base64图片编码多了,使用Typora报错:该文件过大,因此无法在Typora中呈现。
>Typora导出pdf -![1Typora]( https://gitcode.net/xu180/document/-/raw/master/imgs/md2pdf/1Typora.jpg ) +![1Typora]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/md2pdf/1Typora.jpg ) --- @@ -127,7 +129,7 @@ C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exe
《无为徐生_vscode.pdf》丢失图片,没有书签,格式变化。
>vscode导出pdf -![2vscode]( https://gitcode.net/xu180/document/-/raw/master/imgs/md2pdf/2vscode.jpg ) +![2vscode]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/md2pdf/2vscode.jpg ) --- @@ -150,30 +152,30 @@ MarkText是一个简单开源的 Markdown 编辑器。 https://github.com/markte --- >MarkText导出pdf -![3MarkText]( https://gitcode.net/xu180/document/-/raw/master/imgs/md2pdf/3MarkText.jpg ) +![3MarkText]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/md2pdf/3MarkText.jpg ) --- >PDFPatcher生成书签 -![4PDFPatcher]( https://gitcode.net/xu180/document/-/raw/master/imgs/md2pdf/4PDFPatcher.jpg ) +![4PDFPatcher]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/md2pdf/4PDFPatcher.jpg ) >PDFPatcher导入书签 -![5PDFPatcher]( https://gitcode.net/xu180/document/-/raw/master/imgs/md2pdf/5PDFPatcher.jpg ) +![5PDFPatcher]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/md2pdf/5PDFPatcher.jpg ) >PDF书签打开 -![6PDFPatcher]( https://gitcode.net/xu180/document/-/raw/master/imgs/md2pdf/6PDFPatcher.jpg ) +![6PDFPatcher]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/md2pdf/6PDFPatcher.jpg ) --- -### 2.6 评分 +## 3 评分 -| 评分 | 内容不丢失 | 格式不变形 | 有图片 | 有书签 | 操作简单 | 得分 | -| ---------- | ---------- | ---------- | ------ | ------ | -------- | -------- | -| Typora | √ | √ | × | √ | √ | ★★★★ | +| 评分 | 内容不丢失 | 格式不变形 | 有图片 | 有书签 | 操作简单 | 得分 | +| ---------- | ---------- | ---------- | ------ | ------ | -------- | ----------- | +| Typora | √ | √ | × | √ | √ | ★★★★ | | pandoc | ○ | ○ | ○ | √ | ○ | ★★★ | | wkhtmltopdf | ○ | ○ | ○ | √ | ○ | ★★★ | | vscode | √ | ○ | × | √ | × | ★★☆ | -| MarkText | √ | √ | √ | ○ | √ | ★★★★☆ | +| MarkText | √ | √ | √ | ○ | √ | ★★★★☆ | | 网址 | 官网 | 下载 | @@ -182,12 +184,7 @@ MarkText是一个简单开源的 Markdown 编辑器。 https://github.com/markte | marktext | https://marktext.app/ | https://github.com/marktext/marktext | | PDFPatcher | https://www.cnblogs.com/pdfpatcher/ | https://github.com/wmjordan/PDFPatcher | - +综上,`MarkText`四星半夺得魁首,`Typora`屈居亚席。总之:
操作markdown文件,使用`Typora`最方便。
-若markdown导出pdf,`MarkText`搭配`PDFPatcher`最优秀。
- - - - - +导出markdown为pdf,`MarkText`搭配`PDFPatcher`最优秀。
diff --git "a/\350\265\204\346\226\231/npm\347\254\224\350\256\260.md" "b/\350\265\204\346\226\231/nodejs\344\270\216npm\347\254\224\350\256\260.md" similarity index 64% rename from "\350\265\204\346\226\231/npm\347\254\224\350\256\260.md" rename to "\350\265\204\346\226\231/nodejs\344\270\216npm\347\254\224\350\256\260.md" index 7df5f53..18b8711 100644 --- "a/\350\265\204\346\226\231/npm\347\254\224\350\256\260.md" +++ "b/\350\265\204\346\226\231/nodejs\344\270\216npm\347\254\224\350\256\260.md" @@ -1,16 +1,22 @@ -# npm笔记 +# nodejs与npm笔记 -## 安装 +Node.js / vue / npm 相关笔记教程。 +## nodejs安装 + +简单的说 Node.js 就是运行在服务端的 JavaScript。Node.js 是一个基于 Chrome JavaScript 运行时建立的一个平台。
+ +1、下载软件 + ```sh -nodejs官方 https://nodejs.org/en/download/ +官方 https://nodejs.org/en/download/ 参考 https://blog.csdn.net/qq_44894359/article/details/89283325 教程 https://www.runoob.com/nodejs/nodejs-tutorial.html ``` -1、环境变量 +2、环境变量 ```java NODE_HOME @@ -26,9 +32,9 @@ npm -v ``` -2、设置全局安装及缓存目录 +3、设置全局安装及缓存目录 -```js +``` npm config set prefix "D:\\ProgramFiles\\nodejs\node_global" npm config set cache "D:\\ProgramFiles\\nodejs\node_cache" @@ -48,7 +54,7 @@ npm config set disturl https://npm.taobao.org/dist --global ``` -```js +``` 安装模块 npm install -g vue npm install express -g @@ -89,12 +95,33 @@ https://blog.csdn.net/qq_39085705/article/details/81134453 ``` -## 发包 +## vue笔记 + +Vue (读音 /vjuː/,类似于 view) 是一套用于构建用户界面的渐进式框架。与其它大型框架不同的是,Vue 被设计为可以自底向上逐层应用。
+Vue 的核心库只关注视图层,不仅易于上手,还便于与第三方库或既有项目整合。另一方面,当与现代化的工具链以及各种支持类库结合使用时,Vue 也完全能够为复杂的单页应用提供驱动。 + + +[vue官网]( https://cn.vuejs.org/ )   [教程]( https://www.runoob.com/vue2/vue-tutorial.html ) + + +| git项目 | 地址 | demo | +| -------- | ----- | ---- | +| vue-manage-system | [地址]( https://github.com/lin-xin/vue-manage-system ) | [演示]( https://lin-xin.gitee.io/example/work/#/dashboard ) | +| vue2-element-touzi-admin | [地址]( https://github.com/wdlhao/vue2-element-touzi-admin ) | [演示]( http://www.jiouai.com/permission/index/index ) | + + + + +## npm发包 + +npm 全称为 Node Package Manager,是一个基于 Node.js 的包管理器,也是整个 Node.js 社区最流行、支持的第三方模块最多的包管理器。
+ +[npm使用介绍]( https://www.runoob.com/nodejs/nodejs-npm.html )   [Webpack 入门教程]( https://www.runoob.com/w3cnote/webpack-tutorial.html )
```js 在NPM上发包 https://blog.csdn.net/weixin_43275638/article/details/84587061 -https://blog.csdn.net/qq_39115469/article/details/122010538 +https://www.cnblogs.com/s1118/p/9355315.html @@ -106,22 +133,22 @@ https://www.npmjs.com/~xushufa 确保npm的源是本身的源 https://registry.npmjs.org npm config set registry https://registry.npmjs.org - 通过 npm config get registry 进行查询 ``` -```js +``` 3、终端登录账号 npm adduser npm login +问题: must use TLS 1.2 or higher -https://blog.csdn.net/Ricky__H/article/details/120673036 npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/ npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/ npm ERR! code E426 +https://blog.csdn.net/Ricky__H/article/details/120673036 从2021年10月4日开始,所有与npm网站和npm注册表的连接(包括软件包安装)必须使用TLS 1.2或更高版本。 将npm镜像地址设为https的地址 @@ -137,30 +164,24 @@ npm init npm publish -注:package.json文件中的 name 配置是npm依赖包名,不能和npm平台下的依赖包名重名,否则发布失败。 -每次更新 package.json 里面的version的版本号。 -在重新运行 npm publish 发布就可以。 +问题: +-- Enter one-time password from your authenticator app +== 需要在邮箱接收验证码 -npm i xushufa-shu +-- verbose stack Error: 403 Forbidden - PUT https://registry.npmjs.org/mynotes - Package name too similar to existing package my-notes; try renaming your package to '@xushufa/mynotes' and publishing with 'npm publish --access=public' instead +== package.json文件中的 name 配置是npm依赖包名,不能和npm平台下的依赖包名重名,否则发布失败。 -``` -```c -cdn -https://www.jsdelivr.com/ - -https://cdn.jsdelivr.net/npm/xushufa-shu/yan/duo1-1000/0001大.jpg -https://cdn.jsdelivr.net/npm/xushufa-imgs/imgs/mingyue/2020/IMG_20210101_141310.jpg -https://cdn.jsdelivr.net/npm/xushufa-imgs@1.0.0/imgs/mingyue/2020/IMG_20210101_141310.jpg +每次更新 package.json 里面的version的版本号。 +再重新运行 npm publish 发布就可以。 +``` -配置淘宝镜像 -npm config get registry -npm config set registry http://registry.npm.taobao.org/ +``` 删除包 npm unpublish 包名@版本号 //指定删除包 npm unpublish 包名 --force //删除整个包 @@ -174,12 +195,33 @@ npm view xushufa version npm view xushufa versions 或者: npm info xushufa - + +安装 +npm i xushufa + +配置淘宝镜像 +npm config get registry +npm config set registry http://registry.npm.taobao.org/ + + +``` + + +``` +cdn +https://www.jsdelivr.com/ +https://cdn.jsdelivr.net/npm/xushufa-shu/yan/duo1-1000/0001大.jpg +https://cdn.jsdelivr.net/npm/xushufa-imgs/imgs/mingyue/2020/IMG_20210101_141310.jpg +https://cdn.jsdelivr.net/npm/xushufa-imgs@1.0.0/imgs/mingyue/2020/IMG_20210101_141310.jpg + + +地址 +https://www.npmjs.com/~xushufa +https://www.npmjs.com/package/x-mynotes + + ``` -[npm使用介绍]( https://www.runoob.com/nodejs/nodejs-npm.html )
-[Webpack 入门教程]( https://www.runoob.com/w3cnote/webpack-tutorial.html )
-[vue官网]( https://cn.vuejs.org/ )   [教程]( https://www.runoob.com/vue2/vue-tutorial.html ) --- diff --git "a/\350\265\204\346\226\231/pagefile.sys\346\234\211\345\207\240\345\215\201\344\270\252G\357\274\214\345\244\252\345\244\247\346\200\216\344\271\210\345\212\236.md" "b/\350\265\204\346\226\231/pagefile.sys\346\234\211\345\207\240\345\215\201\344\270\252G\357\274\214\345\244\252\345\244\247\346\200\216\344\271\210\345\212\236.md" index 398bd9e..d6b3905 100644 --- "a/\350\265\204\346\226\231/pagefile.sys\346\234\211\345\207\240\345\215\201\344\270\252G\357\274\214\345\244\252\345\244\247\346\200\216\344\271\210\345\212\236.md" +++ "b/\350\265\204\346\226\231/pagefile.sys\346\234\211\345\207\240\345\215\201\344\270\252G\357\274\214\345\244\252\345\244\247\346\200\216\344\271\210\345\212\236.md" @@ -6,7 +6,7 @@ pagefile.sys是虚拟内存文件,目地是使用一部分硬盘空间来充 一般来说,pagefile.sys是不可以删除的,但是我们可以将该文件从一个磁盘转移到另外的磁盘中。
参考  [pagefile.sys怎么删除]( https://www.cnblogs.com/tianma3798/p/4846196.html )   [pagefiles.sys文件的调整与删除]( https://blog.csdn.net/weixin_44014976/article/details/102808430 )
-网址  [blog]( https://blog.xushufa.cn )   [gitlab]( https://gitlab.com/xuyq123/mynotes ) +网址  [blog]( https://xushufa.cn )   [gitlab]( https://gitlab.com/xuyq123/mynotes ) ## 文件移动 @@ -15,33 +15,33 @@ pagefile.sys是虚拟内存文件,目地是使用一部分硬盘空间来充 --- -1、打开控制面板的系统设置。   [图解]( https://gitcode.net/xu180/document/-/raw/master/imgs/pagefile/1.jpg ) +1、打开控制面板的系统设置。   [图解]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/1.jpg ) -![1]( https://gitcode.net/xu180/document/-/raw/master/imgs/pagefile/1.jpg ) +![1]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/1.jpg ) --- -2、选中性能选项-高级-更改。   [图解]( https://gitcode.net/xu180/document/-/raw/master/imgs/pagefile/2.jpg ) +2、选中性能选项-高级-更改。   [图解]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/2.jpg ) -![2]( https://gitcode.net/xu180/document/-/raw/master/imgs/pagefile/2.jpg ) +![2]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/2.jpg ) --- -3、选中c盘,选择无分页文件,点击设置。注意:需要取消选中“自动管理所有驱动器的分页文件大小”。   [图解]( https://gitcode.net/xu180/document/-/raw/master/imgs/pagefile/3.jpg ) +3、选中c盘,选择无分页文件,点击设置。注意:需要取消选中“自动管理所有驱动器的分页文件大小”。   [图解]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/3.jpg ) -![3]( https://gitcode.net/xu180/document/-/raw/master/imgs/pagefile/3.jpg ) +![3]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/3.jpg ) --- -4、选择E盘,选择系统管理的大小,点击设置,确定。   [图解]( https://gitcode.net/xu180/document/-/raw/master/imgs/pagefile/4.jpg ) +4、选择E盘,选择系统管理的大小,点击设置,确定。   [图解]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/4.jpg ) -![4]( https://gitcode.net/xu180/document/-/raw/master/imgs/pagefile/4.jpg ) +![4]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/4.jpg ) --- -5、重启计算机。   [图解]( https://gitcode.net/xu180/document/-/raw/master/imgs/pagefile/5.jpg ) +5、重启计算机。   [图解]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/5.jpg ) -![5]( https://gitcode.net/xu180/document/-/raw/master/imgs/pagefile/5.jpg ) +![5]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/5.jpg ) --- @@ -52,27 +52,27 @@ pagefile.sys是虚拟内存文件,目地是使用一部分硬盘空间来充 --- -1、选择工具-文件夹选项   [图解]( https://gitcode.net/xu180/document/-/raw/master/imgs/pagefile/111.jpg ) +1、选择工具-文件夹选项   [图解]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/111.jpg ) -![111]( https://md.xushufa.cn/gitimg/document/imgs/pagefile/111.jpg ) +![111]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/111.jpg ) --- -2、查看-取消选中“隐藏受保护的操作系统文件(推荐)”,警告弹窗选择“是”   [图解]( https://gitcode.net/xu180/document/-/raw/master/imgs/pagefile/222.jpg ) +2、查看-取消选中“隐藏受保护的操作系统文件(推荐)”,警告弹窗选择“是”   [图解]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/222.jpg ) -![222]( https://md.xushufa.cn/gitimg/document/imgs/pagefile/222.jpg ) +![222]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/222.jpg ) --- -3、确定   [图解]( https://gitcode.net/xu180/document/-/raw/master/imgs/pagefile/333.jpg ) +3、确定   [图解]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/333.jpg ) -![333]( https://md.xushufa.cn/gitimg/document/imgs/pagefile/333.jpg ) +![333]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/333.jpg ) --- -4、查看pagefile.sys文件大小   [图解]( https://gitcode.net/xu180/document/-/raw/master/imgs/pagefile/444.jpg ) +4、查看pagefile.sys文件大小   [图解]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/444.jpg ) -![444]( https://md.xushufa.cn/gitimg/document/imgs/pagefile/444.jpg ) +![444]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/444.jpg ) --- diff --git "a/\350\265\204\346\226\231/\345\215\201\345\244\247git\344\273\223\345\272\223\345\271\263\345\217\260\344\277\235\345\255\230\346\226\207\344\273\266\344\270\216\345\233\276\347\211\207.md" "b/\350\265\204\346\226\231/\345\215\201\345\244\247git\344\273\223\345\272\223\345\271\263\345\217\260\344\277\235\345\255\230\346\226\207\344\273\266\344\270\216\345\233\276\347\211\207.md" new file mode 100644 index 0000000..421c559 --- /dev/null +++ "b/\350\265\204\346\226\231/\345\215\201\345\244\247git\344\273\223\345\272\223\345\271\263\345\217\260\344\277\235\345\255\230\346\226\207\344\273\266\344\270\216\345\233\276\347\211\207.md" @@ -0,0 +1,106 @@ +# 十大git仓库平台保存文件与图片 + +## 一 介绍 + +Git(读音为/gɪt/。)是一个开源的分布式版本控制系统,可以有效、高速地处理从很小到非常大的项目版本管理。 + +仓库(repository)可以理解成一个目录,这个目录里面的所有文件都可以被git管理起来,每个文件的修改删除git都能进行跟踪。 + + + +## 二 平台 + +十大git平台分别是:gitee、github、gitlab、gitcode、coding,bitbucket、sourgeforge、codeberg、gitea、agit 。
+前三个是非常知名的Git仓库,基本上程序员都了解或者使用过。后面几个有点冷僻,是本人在2020-2022练习书法,保存资料时查找的比较靠谱好用的Git仓库。
+ +下面是本人书法练习轨迹的十大git仓库地址: + +| 序号 | 仓库 | 备注 | +| --- | ------------------------------------------------------------- | ----------------------------------- | +| 1 | [**gitlab**]( https://gitlab.com/xuyq123/calligraphy )   [imgs]( https://gitlab.com/xuyq123/imgs ) | 全球第二大开源平台GitLab。 | +| 2 | [coding]( https://xyqin.coding.net/public/my/calligraphy/git )   [imgs]( https://xyqin.coding.net/public/my/imgs/git )   [document]( https://xyqin.coding.net/public/my/document/git ) | 腾讯产品,代码托管、项目协同。 | +| 3 | [github]( https://github.com/scott180/calligraphy )   [imgs]( https://github.com/scott180/imgs ) | 世界第一git平台。但有时有防火墙打不开。 | +| 4 | [bitbucket]( https://bitbucket.org/xu12345/calligraphy )   [imgs]( https://bitbucket.org/xu12345/imgs ) | 比特桶,代码托管,项目协作。markdown渲染不太完善。 | +| 5 | [gitee]( https://gitee.com/xy180/calligraphy )   [imgs]( https://gitee.com/xy180/imgs ) | 国产网站,速度快。但可能会被[屏蔽]。 | +| 6 | [sourceforge]( https://sourceforge.net/p/calligraphy/code )   [imgs]( https://sourceforge.net/p/calligraphy/imgs ) | 开源软件管理的集中式场所,可保存公开资料。 | +| 7 | [gitcode]( https://gitcode.net/xu180/calligraphy )   [imgs]( https://gitcode.net/xu180/imgs )   [document]( https://gitcode.net/xu180/document ) | csdn托管平台。网速快,但偶尔会被封禁。 | +| 8 | [codeberg]( https://codeberg.org/xuyq/calligraphy )   [imgs]( https://codeberg.org/xuyq/imgs ) | 科德伯格,德国产品,口号是“立足欧盟,服务世界”。 | +| 9 | [gitea]( https://gitea.com/xuyq/calligraphy )   [document]( https://gitea.com/xuyq/document ) | 盖特一杯茶。缘分一道桥。 | +| 10 | [agit]( https://agit.ai/xuyq/calligraphy )   [document]( https://agit.ai/xuyq/document ) | 一个git,阿吉特ai。 | + + + +## 三 应用 + + +git仓库不仅可以保存文件图片,而且可以生成**静态网页**作为个人博客网站。也能作为网站图床,生成**图片链接**。 + + + +> git平台   官网   项目地址   静态网页   docsify网页   mkdocs网页   HTTPS   SSH   图片地址 + +| 序号 | 官网 | 项目地址 | 静态网页 | docsify网页 | mkdocs网页 | HTTPS | SSH | 图片地址 | +| --- | ---- | -------- | -------- | ----------- | ---------- | ----- | --- | -------- | +| 1 | [gitlab]( https://gitlab.com/explore/projects/trending ) | [calligraphy]( https://gitlab.com/xuyq123/calligraphy ) | [书法练习轨迹]( https://xuyq123.gitlab.io/plain/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89.html ) | [plain-docsify]( https://xuyq123.gitlab.io/plain-docsify/ )   [myblog-docsify]( https://xuyq123.gitlab.io/myblog-docsify/ ) | [plain-pip-mkdocs]( https://xuyq123.gitlab.io/plain-pip-mkdocs ) | `https://gitlab.com/xuyq123/calligraphy.git` | `git@gitlab.com:xuyq123/calligraphy.git` | [2021050202.jpg]( https://gitlab.com/xuyq123/imgs/-/raw/master/mingyue/2021/202105/2021050202.jpg ) | +| 2 | [csdn_code]( https://codechina.csdn.net/xu180 ) | [calligraphy]( https://codechina.csdn.net/xu180/calligraphy ) | - | - | - | `https://codechina.csdn.net/xu180/calligraphy.git` | `git@codechina.csdn.net:xu180/calligraphy.git` | [2021042504.jpg]( https://codechina.csdn.net/xu180/imgs/-/raw/master/mingyue/2021/202104/2021042504.jpg ) | +| 3 | [coding]( https://e.coding.net/login ) | [calligraphy]( https://xyqin.coding.net/p/my/d/calligraphy/git ) | [public]( https://xyqin.coding.net/public/my/calligraphy/git/files ) | - | - | `https://e.coding.net/xyqin/my/calligraphy.git` | `git@e.coding.net:xyqin/my/calligraphy.git` | [2021042601.jpg]( https://xyqin.coding.net/p/my/d/imgs/git/raw/master/mingyue/2021/202105/2021042601.jpg ) | +| 4 | [bitbucket]( https://bitbucket.org/product/ ) | [calligraphy]( https://bitbucket.org/xu12345/calligraphy ) | - | - | - | `https://bitbucket.org/xu12345/calligraphy.git` | `git@bitbucket.org:xu12345/calligraphy.git` | [2021072402.jpg]( https://bitbucket.org/xu12345/imgs/raw/fac05f5cff30d534a7cf92a9b304b4d7f2df083b/mingyue/2021/202107/2021072402.jpg ) | +| 5 | [github]( https://github.com/scott180 ) | [calligraphy]( https://github.com/scott180/calligraphy ) | [书法练习轨迹]( https://scott180.github.io/calligraphy/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89 ) | [plain-docsify]( https://scott180.github.io/plain-docsify/ )   [docsify-blog]( https://scott180.github.io/docsify-blog/ ) | [plain-mkdocs]( https://scott180.github.io/plain-mkdocs/ ) | `https://github.com/scott180/calligraphy.git` | `git@github.com:scott180/calligraphy.git` | [2021042501.jpg]( https://raw.githubusercontent.com/scott180/imgs/master/mingyue/2021/202104/2021042501.jpg ) | +| 6 | [gitee]( https://gitee.com/xy180 ) | [calligraphy]( https://gitee.com/xy180/calligraphy ) | [书法练习轨迹]( http://xy180.gitee.io/plain-mkdocs/calligraphy/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89.html ) | - | [plain-mkdocs]( http://xy180.gitee.io/plain-mkdocs/1/site ) | `https://gitee.com/xy180/calligraphy.git` | `git@gitee.com:xy180/calligraphy.git` | [2021040202.jpg]( https://gitee.com/xy180/imgs/raw/master/mingyue/2021/202104/2021040202.jpg ) | +| 7 | [sourceforge]( https://sourceforge.net/ ) | [calligraphy]( https://sourceforge.net/p/calligraphy/code ) | - | - | - | `https://scott123@git.code.sf.net/p/calligraphy/code calligraphy-code` | `ssh://scott123@git.code.sf.net/p/calligraphy/code calligraphy-code` | [2022012001.jpg]( https://sourceforge.net/p/calligraphy/imgs/ci/master/tree/mingyue/2022/202201/2022012001.jpg?format=raw ) | +| 8 | [codeberg]( https://codeberg.org ) | [calligraphy]( https://codeberg.org/xuyq/calligraphy ) | - | - | - | `https://codeberg.org/xuyq/calligraphy.git` | `git@codeberg.org:xuyq/calligraphy.git` | [2022012101.jpg]( https://codeberg.org/xuyq/imgs/raw/branch/master/mingyue/2022/202201/2022012101.jpg ) | +| 9 | [gitea]( https://gitea.com ) | [calligraphy]( https://gitea.com/xuyq/calligraphy ) | - | - | - | `https://gitea.com/xuyq/calligraphy.git` | `git@gitea.com:xuyq/calligraphy.git` | [caotangshizhi1.jpg]( https://gitea.com/xuyq/document/raw/branch/master/imgs/shufa/caotangshizhi/1.jpg ) | +| 10 | [agit]( https://agit.ai ) | [calligraphy]( https://agit.ai/xuyq/calligraphy ) | - | - | - | `https://agit.ai/xuyq/calligraphy.git` | `git@agit.ai:xuyq/calligraphy.git` | [xinjing.jpg]( https://agit.ai/xuyq/document/raw/branch/master/imgs/shufa/xinjing/cheng.jpg ) | + + + +```c +书法练习轨迹各git仓库图片地址 + +github cdn 国外网站,加载慢 +https://raw.githubusercontent.com/scott180/imgs/master/mingyue/2021/202104/2021042501.jpg +https://cdn.jsdelivr.net/gh/scott180/imgs/mingyue/2021/202105/2021050202.jpg + +npm cdn 国外网站,加载慢 +https://cdn.jsdelivr.net/npm/xushufa-imgs/imgs/mingyue/2021/202112/2021120801.jpg +https://cdn.jsdelivr.net/npm/xushufa-imgs2/imgs/mingyue/2022/202205/2022050801.jpg + +sourceforge 国外网站,不是网页链接而是下载链接 +https://sourceforge.net/p/calligraphy/imgs/ci/master/tree/mingyue/2022/202201/2022012001.jpg?format=raw + +gitlab 国外网站,加载慢 +https://gitlab.com/xuyq123/imgs/-/raw/master/mingyue/2021/202105/2021050202.jpg + + + +codeberg 速度较快 +https://codeberg.org/xuyq/imgs/raw/branch/master/mingyue/2022/202201/2022012101.jpg + +gitcode 加载快,无屏蔽 +https://gitcode.net/xu180/imgs/-/raw/master/mingyue/2021/202104/2021042504.jpg +https://codechina.csdn.net/xu180/imgs/-/raw/master/mingyue/2022/202204/2022040801.jpg +https://gitcode.net/xu180/document/-/raw/master/imgs/weixin/calligraphy-wxMiniProgram.jpg + +gitee 加载快,有屏蔽 +https://gitee.com/xy180/imgs/raw/master/mingyue/2021/202104/2021040202.jpg + +bitbucket 国外网站 +https://bitbucket.org/xu12345/imgs/raw/fac05f5cff30d534a7cf92a9b304b4d7f2df083b/mingyue/2021/202107/2021072402.jpg +https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/1.jpg + + +``` + + + +## 四 我的 + + +| 序号 | 平台 | 地址 | 备注 | +| ----- | ----- | ----------- | ------------- | +| 1 | gitlab | [MyNotes]( https://gitlab.com/xuyq123/mynotes ) | 编程笔记 | +| 2 | github | [vuepress-blog]( https://github.com/scott180/vuepress-blog ) | 博客网站 | +| 3 | gitcode | [document]( https://gitcode.net/xu180/document ) | 生活随笔 | +| 4 | bitbucket | [imgs]( https://bitbucket.org/xu12345/document/src/master/imgs/ ) | 图床仓库 | + + diff --git "a/\350\265\204\346\226\231/\346\234\254\345\234\260\345\256\211\350\243\205kafka.md" "b/\350\265\204\346\226\231/\346\234\254\345\234\260\345\256\211\350\243\205kafka.md" index d4683f7..210e45c 100644 --- "a/\350\265\204\346\226\231/\346\234\254\345\234\260\345\256\211\350\243\205kafka.md" +++ "b/\350\265\204\346\226\231/\346\234\254\345\234\260\345\256\211\350\243\205kafka.md" @@ -2,7 +2,7 @@ ## 一、安装方法 -前提 : [本地安装zookeeper]( https://blog.xushufa.cn ) +前提 : [本地安装zookeeper]( https://xushufa.cn ) 1、下载 [kafka_2.13-2.5.1.tgz]( https://download.csdn.net/download/xu180/13060538 ) 文件 (带src是源码 如:kafka-2.5.1-src.tgz ,不能安装) diff --git "a/\350\265\204\346\226\231/\347\263\273\347\273\237\347\243\201\347\233\230c\347\233\230\346\270\205\347\220\206\345\236\203\345\234\276\346\226\207\344\273\266\346\226\271\346\263\225\344\270\200\350\247\210.md" "b/\350\265\204\346\226\231/\347\263\273\347\273\237\347\243\201\347\233\230c\347\233\230\346\270\205\347\220\206\345\236\203\345\234\276\346\226\207\344\273\266\346\226\271\346\263\225\344\270\200\350\247\210.md" new file mode 100644 index 0000000..74e7e7a --- /dev/null +++ "b/\350\265\204\346\226\231/\347\263\273\347\273\237\347\243\201\347\233\230c\347\233\230\346\270\205\347\220\206\345\236\203\345\234\276\346\226\207\344\273\266\346\226\271\346\263\225\344\270\200\350\247\210.md" @@ -0,0 +1,63 @@ +# 系统磁盘c盘清理垃圾文件方法一览 + +## 1、工具清理 + +使用火绒安全、腾讯电脑管家或者360的垃圾清理。
+此方法效果还行,根据工具能力能清理掉几个G的垃圾文件。
+ + + +## 2、磁盘清理 + +右击C盘,选择【属性】--【常规】--【磁盘清理】。稍等片刻,选择要删除的文件,确定。
+ +![c1]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/c1.jpg ) + + + +## 3、手动删除 + +推荐使用`Folder Size`工具,扫描磁盘,查看所有文件夹大小,自主判断垃圾文件,手动删除。
+ +![c2]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/c2.jpg ) + +--- + +另:临时文件和日志文件可以直接删除
+ +删除临时文件夹内的所有文件
+`C:\Windows\Temp`
+ +删除日志文件夹LogFiles
+`C:\Windows\System32\LogFiles`
+ + + + +## 4、清理受保护的操作系统文件 + +- [ ] 打开计算机或此电脑,点击【文件夹选项】--【查看】--【高级设置】,不勾选【隐藏受保护的操作系统文件(推荐)】。 + + + +- [ ] 清理 System Volume Information + +- SystemVolumeInformation文件夹是一个隐藏的系统文件夹,"系统还原"工具使用该文件夹来存储它的信息和还原点。
+- System Volume Information怎么删除 参考 http://www.win7zhijia.cn/win10jc/win10_46768.html
+ +- 1.点击控制面板,搜索【创建还原点】。
+- 2.之后点击系统保护设置,选择你想删除的磁盘,点击配置。
+- 3.勾选禁用系统保护,删除此驱动的所有还原点。之后System Volume Information中的内容就会被自动清理了。
+ +![c3]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/pagefile/c3.jpg ) + + + +- [ ] 清理 pagefile.sys + +- pagefile.sys是虚拟内存文件,目地是使用一部分硬盘空间来充当内存使用。当一个程序请求的内存空间大于物理内存时,就需要pagefile.sys文件来提供较大的虚拟内存,从而满足程序对大内存的需求。
+- 一般来说,pagefile.sys是不可以删除的,但是我们可以将该文件从一个磁盘转移到另外的磁盘中。 参考 [blog.xushufa.cn]( https://blog.xushufa.cn/%E7%BC%96%E7%A8%8B/%E8%B5%84%E6%96%99/pagefile.sys%E6%9C%89%E5%87%A0%E5%8D%81%E4%B8%AAG%EF%BC%8C%E5%A4%AA%E5%A4%A7%E6%80%8E%E4%B9%88%E5%8A%9E.html )
+ + + + diff --git "a/\350\277\220\347\273\264/gitNote.md" "b/\350\277\220\347\273\264/gitNote.md" index b55b597..da1024e 100644 --- "a/\350\277\220\347\273\264/gitNote.md" +++ "b/\350\277\220\347\273\264/gitNote.md" @@ -2,7 +2,7 @@
-> [blog]( https://blog.xushufa.cn )   [gitlab]( https://gitlab.com/xuyq123/mynotes )   [gitee]( https://gitee.com/xy180/MyNotes )   [github]( https://github.com/scott180 ) +> [blog]( https://xushufa.cn )   [gitlab]( https://gitlab.com/xuyq123/mynotes )   [gitee]( https://gitee.com/xy180/MyNotes )   [github]( https://github.com/scott180 ) ------------------------ @@ -12,7 +12,7 @@ ### 1.1、常用命令 -[git知识大全]( https://gitee.com/help/articles/4122 ) +[git知识大全]( https://gitee.com/help/articles/4122 )   [Git教程]( https://www.liaoxuefeng.com/wiki/896043488029600 ) ```vb 提交代码 git add . @@ -429,7 +429,7 @@ ssh-keygen -t rsa cat ~/.ssh/id_rsa.pub -添加到 https://github.com/settings/keys 依次点击"Setting -> SSH Keys"->"New SSH key" +添加到 https://github.com/settings/keys 依次点击 Setting -> SSH Keys -> New SSH key ssh -T git@github.com @@ -439,7 +439,7 @@ git clone git@github.com:scott180/MyNotes.git ``` -### 3.2、提交及更新失败 +### 3.2、git pull冲突 ``` java 用git pull来更新代码的时候,遇到了下面的问题: @@ -473,7 +473,6 @@ git pull ```vb - GIT拉取代码的时候提示AUTHENTICATION FAILED FOR [] 解决方法: @@ -485,8 +484,9 @@ git config --system --unset credential.helper ``` -```sql +### 3.3、git push失败 +```sql 在git(小乌龟)向github远程推送(push)文件是会报一个异常 no supported authentication methods avaiable https://blog.csdn.net/Maxiao1204/article/details/81476618 @@ -500,3 +500,37 @@ https://blog.csdn.net/Maxiao1204/article/details/81476618 这里更改ssh 路径的时候,要把上面的“使用代理服务器” 勾打上,点击应用,再确定 ``` + +```java +推送代码时报错如下: +$ git push +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ +@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ +IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! +Someone could be eavesdropping on you right now (man-in-the-middle attack)! +It is also possible that a host key has just been changed. +The fingerprint for the RSA key sent by the remote host is +SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s. +Please contact your system administrator. +Add correct host key in /c/Users/Administrator/.ssh/known_hosts to get rid of this message. +Offending RSA key in /c/Users/Administrator/.ssh/known_hosts:2 +RSA host key for github.com has changed and you have requested strict checking. +Host key verification failed. +fatal: Could not read from remote repository. + +Please make sure you have the correct access rights +and the repository exists. + + +解决方法: +1、检查github的秘钥是否与本地一致。 +本地 cat ~/.ssh/id_rsa.pub 查秘钥。 +GitHub Setting -> SSH Keys-> New SSH key 添加秘钥。 + + +2、磁盘 C:\Users\Administrator\.ssh 的 known_hosts 文件,删除 github.com xxx +重新推送文件,输入yes即可。 + +``` + diff --git "a/\350\277\220\347\273\264/gitlab\343\200\201github\343\200\201gitee\345\270\203\347\275\262mkdocs\344\270\273\351\242\230\344\273\223\345\272\223.md" "b/\350\277\220\347\273\264/gitlab\343\200\201github\343\200\201gitee\345\270\203\347\275\262mkdocs\344\270\273\351\242\230\344\273\223\345\272\223.md" index 1d3d216..2de3127 100644 --- "a/\350\277\220\347\273\264/gitlab\343\200\201github\343\200\201gitee\345\270\203\347\275\262mkdocs\344\270\273\351\242\230\344\273\223\345\272\223.md" +++ "b/\350\277\220\347\273\264/gitlab\343\200\201github\343\200\201gitee\345\270\203\347\275\262mkdocs\344\270\273\351\242\230\344\273\223\345\272\223.md" @@ -2,7 +2,7 @@
-`网址`   [xushufa]( https://xushufa.cn )   [blog]( https://blog.xushufa.cn ) +`网址`   [xushufa]( https://xushufa.cn )   [blog]( https://gitlab.com/xuyq123/mkdocs-blog ) ## 1、概述 @@ -18,14 +18,14 @@ github-mkdocs-theme https://github.com/mkdocs/mkdocs/wiki/MkDocs-Themes ``` ``` -python安装及下载 https://gitlab.com/xuyq123/mynotes/-/blob/master/Python.md +python安装及下载 https://gitlab.com/xuyq123/mynotes/-/blob/master/%E5%85%B6%E4%BB%96/Python.md mkdocs安装 pip install mkdocs ``` ## 2、gitlab布署mkdocs -```c +``` gitlab mkdocs主题仓库 (推送文件自动布署) 创建方法: 1、创建 mkdocs.yml、.gitlab-ci.yml文件。 @@ -91,7 +91,7 @@ gitbook, spacelab, cinder, pulse, mkdocs, cerulean, bootstrap, solar, journal, s ## 3、github布署mkdocs -```c +``` github mkdocs主题仓库 (mkdocs gh-deploy 一键布署) 创建方法: 1、创建 mkdocs.yml、README.md、.gitignore文件。创建docs目录,markdown文件放在此处。 @@ -114,7 +114,7 @@ github mkdocs主题仓库 (mkdocs gh-deploy 一键布署) ## 4、gitee布署mkdocs -```js +``` gitee mkdocs主题仓库 (GiteePages服务布署目录) 创建方法: 1、创建 mkdocs.yml。创建docs目录,markdown文件放在此处。 @@ -146,7 +146,7 @@ gitee mkdocs主题仓库 (GiteePages服务布署目录) | github | [plain-mkdocs]( https://github.com/scott180/plain-mkdocs )   [网页]( https://scott180.github.io/plain-mkdocs/ )
[plain-pip-mkdocs]( https://github.com/scott180/plain-pip-mkdocs )   [网页]( https://scott180.github.io/plain-pip-mkdocs )
[plain-mkdocs-serve]( https://github.com/scott180/plain-mkdocs-serve )   [网页]( https://scott180.github.io/plain-mkdocs-serve ) | github布署mkdocs:命令mkdocs gh-deploy 。 | | gitee | [plain-mkdocs]( https://gitee.com/xy180/plain-mkdocs )   [网页1]( http://xy180.gitee.io/plain-mkdocs/1/site/ )   [网页2]( http://xy180.gitee.io/plain-mkdocs/2/site/ )   [网页3]( http://xy180.gitee.io/plain-mkdocs/3/site/ ) | gitee布署mkdocs:mkdocs build 布署目录。 | | note-mkdocs | gitlab [note-mkdocs]( https://gitlab.com/xuyq123/note-mkdocs )  [**网页1**]( https://xuyq123.gitlab.io/note-mkdocs/ )   [网页2]( https://xuyq123.gitlab.io/note-pip-mkdocs/ )
github [note-mkdocs]( https://github.com/scott180/note-mkdocs )  [网页]( https://scott180.github.io/note-mkdocs/ )
gitee [plain-mkdocs]( https://gitee.com/xy180/plain-mkdocs/tree/master/note )  [网页]( http://xy180.gitee.io/plain-mkdocs/note/site/ ) | 个人笔记,含书法练习及java笔记。 | -| myblog-mkdocs | gitlab [mkdocs-blog]( https://gitlab.com/xuyq123/mkdocs-blog )  [网页]( https://xuyq123.gitlab.io/mkdocs-blog/ )
github [myblog-mkdocs]( https://github.com/scott180/myblog-mkdocs )  [网页]( https://scott180.github.io/myblog-mkdocs/ )
gitee [myblog-mkdocs]( https://gitee.com/xy180/myblog-mkdocs ) | 我的博客 | +| myblog-mkdocs | gitlab [mkdocs-blog]( https://gitlab.com/xuyq123/mkdocs-blog )  [网页]( https://xuyq123.gitlab.io/mkdocs-blog/ )
gitee [myblog-mkdocs]( https://gitee.com/xy180/myblog-mkdocs ) | 我的博客 | --- diff --git "a/\350\277\220\347\273\264/gitlab\343\200\201github\347\273\221\345\256\232\350\207\252\345\256\232\344\271\211\345\237\237\345\220\215.md" "b/\350\277\220\347\273\264/gitlab\343\200\201github\347\273\221\345\256\232\350\207\252\345\256\232\344\271\211\345\237\237\345\220\215.md" index 2ec507b..b4cb41b 100644 --- "a/\350\277\220\347\273\264/gitlab\343\200\201github\347\273\221\345\256\232\350\207\252\345\256\232\344\271\211\345\237\237\345\220\215.md" +++ "b/\350\277\220\347\273\264/gitlab\343\200\201github\347\273\221\345\256\232\350\207\252\345\256\232\344\271\211\345\237\237\345\220\215.md" @@ -2,7 +2,7 @@
-`网址`   [xushufa]( https://xushufa.cn )   [blog]( https://vuepress-blog.xushufa.cn ) +`网址`   [xushufa]( https://xushufa.cn )   [blog]( https://scott180.github.io/vuepress-blog ) ## github绑定自定义域名 @@ -36,11 +36,11 @@ TTL: 600 浏览器地址栏可能会提示“不安全” , 勾选 Enforce HTTPS ,稍后再访问。 ``` -![1]( https://md.xushufa.cn/gitimg/document/imgs/other/custom_domain1.png ) +![1]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/other/custom_domain1.png ) --- -![2]( https://md.xushufa.cn/gitimg/document/imgs/other/custom_domain2.png ) +![2]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/other/custom_domain2.png ) --- @@ -83,7 +83,7 @@ TTL: 600 注:记录值就是 上一步Pages Domain的 Verification status 的 _gitlab-pages-verification-code.mkdocs-blog.xushufa.cn TXT 后面的值 ``` -![3]( https://md.xushufa.cn/gitimg/document/imgs/other/custom_domain3.png ) +![3]( https://bitbucket.org/xu12345/document/raw/114a5f5c292cc412cd46304dc1d20cfda7c7a7f8/imgs/other/custom_domain3.png ) - 5、在gitlab pages -- Pages Domain -- Verification status
点击 Verified 如果有对号 说明域名绑定了。
diff --git "a/\350\277\220\347\273\264/git\345\271\263\345\217\260docsify\345\270\203\347\275\262markdown\346\226\207\344\273\266.md" "b/\350\277\220\347\273\264/git\345\271\263\345\217\260docsify\345\270\203\347\275\262markdown\346\226\207\344\273\266.md" index 40143ca..98fb3fe 100644 --- "a/\350\277\220\347\273\264/git\345\271\263\345\217\260docsify\345\270\203\347\275\262markdown\346\226\207\344\273\266.md" +++ "b/\350\277\220\347\273\264/git\345\271\263\345\217\260docsify\345\270\203\347\275\262markdown\346\226\207\344\273\266.md" @@ -2,7 +2,7 @@
-`网址`   [xushufa]( https://xushufa.cn )   [blog]( https://blog.xushufa.cn ) +`网址`   [xushufa]( https://xushufa.cn )   [blog]( https://github.com/scott180/docsify-blog ) ## 本地安装 @@ -10,7 +10,7 @@ docsify 可以快速帮你生成文档网站。不同于GitBook、Hexo的地方是它不会生成静态的 .html 文件,所有转换工作都是在运行时。 // 首先安装node -https://gitlab.com/xuyq123/mynotes/-/blob/master/%E5%85%B6%E4%BB%96/nodejs%20&%20vue.md +https://gitlab.com/xuyq123/mynotes/-/blob/master/%E8%B5%84%E6%96%99/nodejs%E4%B8%8Enpm%E7%AC%94%E8%AE%B0.md // 安装docsify npm i docsify-cli -g diff --git "a/\350\277\220\347\273\264/linuxNote-x.md" "b/\350\277\220\347\273\264/linuxNote-x.md" index 2ae7dab..4fc427b 100644 --- "a/\350\277\220\347\273\264/linuxNote-x.md" +++ "b/\350\277\220\347\273\264/linuxNote-x.md" @@ -5,7 +5,7 @@ - [x] 2017.08.22--now `xyq` `linux` `note` -> [blog]( https://blog.xushufa.cn )   [gitlab]( https://gitlab.com/xuyq123/mynotes )   [gitee]( https://gitee.com/xy180/MyNotes ) +> [blog]( https://xushufa.cn )   [gitlab]( https://gitlab.com/xuyq123/mynotes )   [gitee]( https://gitee.com/xy180/MyNotes ) ## 1 常用命令 @@ -1214,9 +1214,9 @@ LC_ALL=en_US.UTF-8 | 徐书法 | 地址 | 备注 | | ----- | ----------- | ------------- | -| 1 | [xushufa.cn]( https://xushufa.cn ) | 书法练习网站。 | -| 2 | [blog.xushufa.cn]( https://blog.xushufa.cn ) | `vuepress`构建的博客网站。 | -| 3 | [web.xushufa.cn]( https://web.xushufa.cn ) | `vuepress-theme-reco`构建的博客网站。| +| 1 | [xushufa]( https://xushufa.cn ) | `vuepress-theme-reco`构建的博客网站。| +| 2 | [vuepress-blog]( https://vuepress-blog.xushufa.cn ) | `vuepress`构建的博客网站。 | +| 3 | [mkdocs-blog]( https://xuyq123.gitlab.io/mkdocs-blog ) | `mkdocs`构建的博客网站。 | *** diff --git "a/\350\277\220\347\273\264/nginx\347\254\224\350\256\260.md" "b/\350\277\220\347\273\264/nginx\347\254\224\350\256\260.md" index 3af632e..96664ba 100644 --- "a/\350\277\220\347\273\264/nginx\347\254\224\350\256\260.md" +++ "b/\350\277\220\347\273\264/nginx\347\254\224\350\256\260.md" @@ -263,7 +263,7 @@ https://blog.csdn.net/ywb201314/article/details/51909976 --- -```linux +```c #打开定时任务 crontab -e diff --git "a/\350\277\220\347\273\264/shell\350\257\255\346\263\225.md" "b/\350\277\220\347\273\264/shell\350\257\255\346\263\225.md" index 7c3d6aa..d0dbe06 100644 --- "a/\350\277\220\347\273\264/shell\350\257\255\346\263\225.md" +++ "b/\350\277\220\347\273\264/shell\350\257\255\346\263\225.md" @@ -2,7 +2,7 @@
-> [blog]( https://blog.xushufa.cn )   [MyNotes]( https://gitee.com/xy180/MyNotes )   [typora]( https://typora.io/#windows )   [作业部落]( https://www.zybuluo.com/mdeditor )   [菜鸟教程]( https://www.runoob.com ) +> [blog]( https://xushufa.cn )   [MyNotes]( https://gitee.com/xy180/MyNotes )   [typora]( https://typora.io/#windows )   [作业部落]( https://www.zybuluo.com/mdeditor )   [菜鸟教程]( https://www.runoob.com )
diff --git "a/\350\277\220\347\273\264/vuepress\346\236\204\345\273\272\351\241\271\347\233\256.md" "b/\350\277\220\347\273\264/vuepress\346\236\204\345\273\272\351\241\271\347\233\256.md" index 319ea01..0a615f6 100644 --- "a/\350\277\220\347\273\264/vuepress\346\236\204\345\273\272\351\241\271\347\233\256.md" +++ "b/\350\277\220\347\273\264/vuepress\346\236\204\345\273\272\351\241\271\347\233\256.md" @@ -1,9 +1,9 @@ # vuepress构建项目 -## 一、vuepress默认主题 +## 一、vuepress 使用vuepress构建的博客。 -[github]( https://github.com/scott180/vuepress-blog )   [vuepress-blog]( https://scott180.github.io/vuepress-blog )   [vuepress-calligraphy]( https://scott180.github.io/vuepress-calligraphy ) +[github]( https://github.com/scott180/vuepress-blog )   [gitlab]( https://gitlab.com/xuyq123/mynotes )   [vuepress-blog]( https://scott180.github.io/vuepress-blog ) ### 1.1 安装 @@ -90,6 +90,15 @@ cd - ``` + +```c +如果要在github绑定域名,如 https://blog.xushufa.cn/ ,必须在github建立同名项目,如 https://github.com/scott180/blog 。如果子域名和项目不同名,布署时css样式会混乱,网页不能正常访问。 +而且 `.vuepress\config.js` 的 `base` 也要注释掉。 + +绑定教程可参看: gitlab、github绑定自定义域名 https://xushufa.cn/docs/bian-cheng/yun-wei/gitlab-githubbang-ding-zi-ding-yi-yu-ming.html + +``` + --- 设置 `package.json` @@ -117,19 +126,19 @@ cd - `docs\.vuepress\config.js` 配置 `base` 字段为项目名 `reco-blog` -`deploy.sh` 配置 `git push -f git@github.com:scott180/reco-calligraphy.git master:gh-pages` +`deploy.sh` 配置 `git push -f git@github.com:scott180/reco-blog.git master:gh-pages` ``` - 2、如果要绑定域名 ```js -如访问地址为 `http://reco-blog.xushufa.cn/` 则 +如访问地址为 `http://xushufa.cn` 则 `docs\.vuepress\config.js` 配置 `base` 字段需注释掉 `deploy.sh` 配置 -echo 'reco-blog.xushufa.cn' > CNAME +echo 'xushufa.cn' > CNAME `git push -f git@github.com:scott180/reco-calligraphy.git master:gh-pages` @@ -204,6 +213,31 @@ npm run deploy ``` +--- + +> 参考项目 + +```sh +git clone git@github.com:scott180/vuepress-blog.git + +克隆本项目后运行 npm install -D vuepress 安装相关插件。 +再启动 npm run docs:dev 项目,有可能会失败,因为版本不太兼容。 +所以可以直接在下方链接下载原始全部项目包 vuepress-blog.20230812.zip ,将 node_modules 依赖包复制到项目,再启动即可。 + +``` +[百度网盘]( https://pan.baidu.com/s/1NHLuagvGS5SWC-fHuHByaQ?pwd=576i )   [sourceforge]( https://sourceforge.net/p/xdocument/code/ci/master/tree/files/vuepress-blog.20230812.zip ) + +--- + +> 后续更新 + +```java +首次部署需要按照以上步骤发布项目,后续增加或更新文件只需: +在本地验证 npm run docs:dev +发布到线上 npm run deploy + +``` + ### 1.3 备案号 @@ -235,92 +269,7 @@ Copyright © 2022 · xushufa.cn · 无为徐生
[浙ICP备2022008289号-1 -### 1.4 阅读量 - -参考 [Vuepress-阅读量统计]( https://heshiyu1996.github.io/blog/tool/vuepress-stat/ )   [valine]( https://valine.js.org/ )   [leancloud]( https://console.leancloud.cn/apps ) - -项目 [vuepress-calligraphy]( https://github.com/scott180/vuepress-calligraphy ) - -``` -yarn add leancloud-storage -S - -yarn add valine -S - -``` - -创建`Valine.vue` 及 继承默认主题,并在`Page.vue`下引入 ``。[commit]( https://github.com/scott180/vuepress-calligraphy/commit/18f3aefd2928e5e445a200842e61f9fa888575c5 ) - - - -### 1.5 时间格式化 - -[plugin-last-updated]( https://vuepress.vuejs.org/zh/plugin/official/plugin-last-updated.html )   [momentjs]( http://momentjs.cn/ ) - -``` -npm install moment --save - -``` - -```js -plugins: [ -[ - '@vuepress/last-updated', - { - transformer: (timestamp, lang) => { - // 不要忘了安装 moment - const moment = require('moment') - moment.locale(lang) - return moment(timestamp).format('YYYY-MM-DD HH:mm:ss'); - } - } -] -] -``` - - -```js -locales: { - '/': { - lang: 'zh-CN', - title: 'VuePress', - description: 'Vue 驱动的静态网站生成器' - } -} - -``` - -### 1.6 全局搜索 - - -```js -themeConfig: { -// algolia 全局搜索 -algolia: { - apiKey: '123', - indexName: 'xushufa', - appId: '456', -}, - -官网 -https://crawler.algolia.com/admin/crawlers/9f0f4253-4d83-44d8-9f0a-472f436581fd/overview -https://www.algolia.com/apps/ODP1ID8WCB/explorer/browse/xushufa?searchMode=search - -教程 -https://docsearch.algolia.com/docs/legacy/config-file/ -https://www.cnblogs.com/yayujs/p/15982507.html - -``` - -```java -搜索为空,一般是 pathsToMatch 没配置好 -crawler.algolia.com -- Editor -- new Crawle -- pathsToMatch - -pathsToMatch: ["https://blog.xushufa.cn/**"] - -``` - - -## 二、vuepress-theme-reco主题 +## 二、vuepress-theme-reco 使用vuepress-theme-reco构建的博客。 @@ -330,7 +279,7 @@ pathsToMatch: ["https://blog.xushufa.cn/**"] 参考 [vuepress]( https://vuepress.vuejs.org/zh/ )   [vuepress-theme-reco]( https://vuepress-theme-reco.recoluan.com/views/1.x/configJs.html )   [vuepress-reco]( https://github.com/vuepress-reco/vuepress-theme-reco-1.x )   [vuepress-theme-reco 主题优化]( https://blog.csdn.net/qq_42937522/article/details/122676915 )   [vuepress-calligraphy]( https://github.com/scott180/vuepress-calligraphy ) -``` +```sh # init npm install @vuepress-reco/theme-cli -g theme-cli init my-blog @@ -374,7 +323,7 @@ module.exports = { 根目录创建 `deploy.sh` 文件 -``` +```js #!/usr/bin/env sh # 确保脚本抛出遇到的错误 @@ -435,12 +384,178 @@ module.exports = { ``` ---- -### 2.3 插件 +## 三、插件 + +[插件广场]( https://vuepress-theme-reco.recoluan.com/views/other/recommend.html )   [plugin-medium-zoom]( https://v1.vuepress.vuejs.org/zh/plugin/official/plugin-medium-zoom.html#%E5%AE%89%E8%A3%85 )   [medium-zoom]( https://vuepress-community.netlify.app/zh/plugins/medium-zoom/#%E5%AE%89%E8%A3%85 ) + + +### 3.1 阅读量 + +参考 [Vuepress-阅读量统计]( https://heshiyu1996.github.io/blog/tool/vuepress-stat/ )   [valine]( https://valine.js.org/ )   [leancloud]( https://console.leancloud.cn/apps ) + +项目 [vuepress-calligraphy]( https://github.com/scott180/vuepress-calligraphy ) + +``` +yarn add leancloud-storage -S + +yarn add valine -S + +``` + +创建`Valine.vue` 及 继承默认主题,并在`Page.vue`下引入 ``。[commit]( https://github.com/scott180/vuepress-calligraphy/commit/18f3aefd2928e5e445a200842e61f9fa888575c5 ) + + + +### 3.2 时间格式化 + +[plugin-last-updated]( https://vuepress.vuejs.org/zh/plugin/official/plugin-last-updated.html )   [momentjs]( http://momentjs.cn/ ) + +``` +npm install moment --save + +``` + +```js +plugins: [ +[ + '@vuepress/last-updated', + { + transformer: (timestamp, lang) => { + // 不要忘了安装 moment + const moment = require('moment') + moment.locale(lang) + return moment(timestamp).format('YYYY-MM-DD HH:mm:ss'); + } + } +] +] +``` + + +```js +locales: { + '/': { + lang: 'zh-CN', + title: 'VuePress', + description: 'Vue 驱动的静态网站生成器' + } +} + +``` + + -参考 [插件广场]( https://vuepress-theme-reco.recoluan.com/views/other/recommend.html )   [plugin-medium-zoom]( https://v1.vuepress.vuejs.org/zh/plugin/official/plugin-medium-zoom.html#%E5%AE%89%E8%A3%85 )   [medium-zoom]( https://vuepress-community.netlify.app/zh/plugins/medium-zoom/#%E5%AE%89%E8%A3%85 ) +### 3.3 全局搜索 + +```js +themeConfig: { +// algolia 全局搜索 +algolia: { + apiKey: '123', + indexName: 'xushufa', + appId: '456', +}, + +官网 +https://crawler.algolia.com/admin/crawlers/9f0f4253-4d83-44d8-9f0a-472f436581fd/overview +https://www.algolia.com/apps/ODP1ID8WCB/explorer/browse/xushufa?searchMode=search + +教程 +https://docsearch.algolia.com/docs/legacy/config-file/ +https://www.cnblogs.com/yayujs/p/15982507.html + +``` + +```java +搜索为空,一般是 pathsToMatch 没配置好 +crawler.algolia.com -- Editor -- new Crawle -- pathsToMatch + +pathsToMatch: ["https://blog.xushufa.cn/**"] + +``` + + + +### 3.4 流程图 + +``` +参考 +https://vuepress-plugin-mermaidjs.efrane.com/ +https://www.npmjs.com/package/vuepress-plugin-mermaidjs?activeTab=readme +https://github.com/vuejs/vuepress/issues/111 +``` + + +```js +下载 +npm install --save-dev vuepress-plugin-mermaidjs +或 +yarn add -D vuepress-plugin-mermaidjs + + +配置 +// .vuepress/config.js +module.exports = { + // ... + plugins: [ + 'vuepress-plugin-mermaidjs' + ] + // ... +} + +``` + +```js + +引号格式不支持,只能用箭头格式的。 + + +添加文件 +// .vuepress/components/mermaid.vue + + + + + + + +使用这种格式的 +### Random mermaid example + + +graph TD + A[Silvester] -->|Get money| B(Go shopping) + B --> C{Let me think} + C -->|One| D[Laptop] + C -->|Two| E[iPhone] + C -->|Three| F[Car] + C -->|Four| F[Mac] + + +``` + + +--- + + +### 3.5 图片放大 > 图片放大 @@ -490,14 +605,15 @@ module.exports = { } ``` ---- +### 3.6 展示名人名句 + > 默认随机展示名人名句 参考 [vuepress-plugin-boxx]( https://github.com/zpj80231/vuepress-plugin-boxx ) -``` +```js 在文件package.json中的devDependencies下加入"vuepress-plugin-boxx": "0.0.7": @@ -516,7 +632,7 @@ module.exports = { ``` -``` +```sh npm install 在文档标题前一行添加 @@ -526,19 +642,5 @@ npm install --- -> 主要命令 - -```sh -# 启动 -npm run dev -# 打包 -npm run build - -# 部署 -npm run deploy - -``` - ---- -- GitLab