Skip to content

Commit

Permalink
chore:11月17日
Browse files Browse the repository at this point in the history
  • Loading branch information
aehyok committed Nov 17, 2023
1 parent 77272b5 commit b79e869
Show file tree
Hide file tree
Showing 7 changed files with 87 additions and 2 deletions.
10 changes: 10 additions & 0 deletions docs/daily/2023-11.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
20 changes: 20 additions & 0 deletions docs/daily/install.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions docs/javascript/2022-10-26-redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
5 changes: 5 additions & 0 deletions docs/javascript/2022-12-14-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/javascript/2023-09-19-linux-nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

## 测试是否安装成功
```
node -v
npm -v
```
Expand Down
22 changes: 22 additions & 0 deletions docs/javascript/2023-11-15-docker-mysql.md
Original file line number Diff line number Diff line change
@@ -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
```
27 changes: 27 additions & 0 deletions docs/javascript/2023-11-16-webfunny.md
Original file line number Diff line number Diff line change
@@ -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
```

0 comments on commit b79e869

Please sign in to comment.