-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
87 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ | |
|
||
## 测试是否安装成功 | ||
``` | ||
node -v | ||
npm -v | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |