From b79e86998ff0682e1cbb7215ef9c3e494750e158 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=90=AF=E6=98=8E?= <455043818@qq.com> Date: Fri, 17 Nov 2023 11:43:10 +0800 Subject: [PATCH] =?UTF-8?q?chore:11=E6=9C=8817=E6=97=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/daily/2023-11.md | 10 ++++++++ docs/daily/install.md | 20 ++++++++++++++++ docs/javascript/2022-10-26-redis.md | 4 ++-- docs/javascript/2022-12-14-linux.md | 5 ++++ docs/javascript/2023-09-19-linux-nodejs.md | 1 + docs/javascript/2023-11-15-docker-mysql.md | 22 ++++++++++++++++++ docs/javascript/2023-11-16-webfunny.md | 27 ++++++++++++++++++++++ 7 files changed, 87 insertions(+), 2 deletions(-) create mode 100644 docs/daily/install.md create mode 100644 docs/javascript/2023-11-15-docker-mysql.md create mode 100644 docs/javascript/2023-11-16-webfunny.md diff --git a/docs/daily/2023-11.md b/docs/daily/2023-11.md index d32511500b..76736d2262 100644 --- a/docs/daily/2023-11.md +++ b/docs/daily/2023-11.md @@ -1,3 +1,13 @@ +## 11月16日 +- pm2 管理node的使用 + - https://juejin.cn/post/6844903816454733837?searchId=202311161533153AB74203DDF0793A6D4E +- webfunny nginx配置 + - https://www.webfunny.com/desMonitor?blogUrl=53&menuKey=menu1&blogKey=1-7 +- 跨域分析 + - https://blog.csdn.net/weixin_36380516/article/details/130960035 +## 11月15日 +- webfunny版本历史查看 + - https://www.webfunny.com/version#3.1.97 ## 11月14日 - assistants api https://github.com/openai/openai-cookbook/blob/main/examples/Assistants_API_overview_python.ipynb - 下载docker diff --git a/docs/daily/install.md b/docs/daily/install.md new file mode 100644 index 0000000000..fe5137c199 --- /dev/null +++ b/docs/daily/install.md @@ -0,0 +1,20 @@ +## 安装node + +- 1、先找nodejs官网找到对应的版本下载 + ``` + // 在linux上执行命令查看CPU架构 + uname -m + + https://nodejs.org/dist/ + ``` + + 我这里下载的是node-v18.16.0-linux-x64.tar.gz + +// gz和xz的区别有什么? +// gz是gzip的压缩文件,xz是xz的压缩文件 + + +- 2、通过xfpt将文件上传到linux服务器的/root文件夹下 + +- 3、解压文件 + - tar -xvf node-v12.14.1-linux-x64.tar.gz diff --git a/docs/javascript/2022-10-26-redis.md b/docs/javascript/2022-10-26-redis.md index ecb0f05639..f107318aa2 100644 --- a/docs/javascript/2022-10-26-redis.md +++ b/docs/javascript/2022-10-26-redis.md @@ -328,8 +328,8 @@ docker run --restart always -itd --name redis-1 -p 6479:6479 redis ```javascript docker run -d \ ---name mysql-1 \ --p 4006:3306 \ +--name mysql-2 \ +-p 14006:3306 \ -v /usr/local/docker/mysql/config/mysqld.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf \ -v /usr/local/docker/mysql/data/mysql:/var/lib/mysql \ -e MYSQL_ROOT_PASSWORD=sunlight2021 \ diff --git a/docs/javascript/2022-12-14-linux.md b/docs/javascript/2022-12-14-linux.md index 210e4d0926..76ca12c006 100644 --- a/docs/javascript/2022-12-14-linux.md +++ b/docs/javascript/2022-12-14-linux.md @@ -275,6 +275,11 @@ sudo journalctl -u dvs-collect -f ## 硬盘 分区 挂载 ``` + +// 查看文件夹所占的空间 +du -sh /usr/local/docker/mysql + + // lsblk https://zhuanlan.zhihu.com/p/555993724 //列表所有可用块设备的信息 lsblk -a diff --git a/docs/javascript/2023-09-19-linux-nodejs.md b/docs/javascript/2023-09-19-linux-nodejs.md index b0cf163cc3..ec3d0f8beb 100644 --- a/docs/javascript/2023-09-19-linux-nodejs.md +++ b/docs/javascript/2023-09-19-linux-nodejs.md @@ -34,6 +34,7 @@ ## 测试是否安装成功 ``` + node -v npm -v ``` diff --git a/docs/javascript/2023-11-15-docker-mysql.md b/docs/javascript/2023-11-15-docker-mysql.md new file mode 100644 index 0000000000..ee068c576a --- /dev/null +++ b/docs/javascript/2023-11-15-docker-mysql.md @@ -0,0 +1,22 @@ + +## docker run 创建mysql容器 + + ``` + docker run -p 13306:3306 --name mysql --restart=always --privileged=true \ + -v /usr/local/docker/mysql/log:/var/log/mysql \ + -v /usr/local/docker/mysql/data:/var/lib/mysql \ + -v /usr/local/docker/mysql/conf:/etc/mysql \ + -v /etc/local/docker/mysql/conf.d:/etc/mysql/conf.d \ + -e MYSQL_ROOT_PASSWORD=123456 -d mysql + ``` + +## 查看容器的ip地址 + + - docker inspect 容器id/容器name + - docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' mysql + + +## 查看容器日志 +``` +docker logs -f mysql +``` \ No newline at end of file diff --git a/docs/javascript/2023-11-16-webfunny.md b/docs/javascript/2023-11-16-webfunny.md new file mode 100644 index 0000000000..27258b914b --- /dev/null +++ b/docs/javascript/2023-11-16-webfunny.md @@ -0,0 +1,27 @@ +## 创建数据库的命令 + ``` + CREATE DATABASE webfunny_db + DEFAULT CHARACTER SET utf8 + DEFAULT COLLATE utf8_bin; + ``` + +## nginx 配置的变更 + ``` + https://www.webfunny.com/desMonitor?blogUrl=53&menuKey=menu1&blogKey=1-7 + ``` + + +## 通过容器部署 +``` +// 根据DockFile文件创建镜像 +docker image build -t webfunny_monitor --platform linux/aarch64 . +// +docker run -it --rm -d --name webfunny -p 8010:8010 -p 8011:8011 webfunny_monitor + +``` + +## 安装git +``` +yum install git + +``` \ No newline at end of file