xtsxb.com
文章 0
文章搜索
阿蛮君
有了AI以后,笔记似乎变得不那么重要......
阅读量
536796
评论数
1738
随机文章

Promise 简介以及使用教程
1. 回调地狱 要了解 Promise 是什么,首先要知道什么是异步编程,常见的异步编程有以下几种: nodejs 中 fs 模块操作磁盘文件 数据库操作 ajax 请求 定时器 要知道,js 设计之初就是单线程模式,那么遇到异步函数不能等它执行完再执行,所以通常传递一个回调函数。例如: setTimeout(() => { console.log('3 秒后打印'); ...

Elasticsearch 搜索和数据分析引擎基本安装和使用教程
一、简介和安装 ElasticSearch 是一个基于 Lucene 的搜索服务器。它提供了一个分布式多用户能力的全文搜索引擎,基于 RESTful web 接口。 这里使用 Docker 安装 Elasticsearch: docker run -d \ --name elasticsearch \ -p 9200:9200 \ -p 9300:9300 \ -e "discovery...

Linux 创建和释放 swap 分区
1. 创建swap分区 创建 swap 文件: mkdir /.swap dd if=/dev/zero of=/.swap/swapfile bs=1M count=2048 把这个文件变成Swap文件并激活: mkswap /.swap/swapfile && swapon /.swap/swapfile 编辑 /etc/fstab 设置开机启用: /.swap/swapfil...

Docker 搭建 Nginx 并可以搭建 php 程序
1. 拷贝 nginx 配置文件 通过 docker 安装 nginx,非常简单,但是最好先把 nginx 的配置文件复制出来方便进行修改。 # 创建必要的文件夹 mkdir -p /home/docker/nginx && \ cd /home/docker/nginx && \ mkdir conf.d && \ mkdir html &...

Springboot 使用 nacos 时固定注册 ip
最近使用 idea 开发 springboot 项目时,经常遇到注册 nacos 的 ip 为 169.xx.xx.xx 的问题。之前有过多网卡上送时 ip 不对的问题,但是把对应网卡禁用就好了。 这次无论是重启项目或者是电脑,还是禁用网卡都不好用,想想只是为了本地开发使用,于是直接修改本地配置文件好了: spring: cloud: nacos: discovery: ip: 172.21.9....
标签云
最新评论

