From 90e4007758aa504634969dad10249bd37ae2bf07 Mon Sep 17 00:00:00 2001 From: wandoubaba Date: Wed, 11 Oct 2023 15:14:17 +0800 Subject: [PATCH] =?UTF-8?q?debian11=E4=B8=ADlua=E6=94=B9=E4=B8=BA5.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/config.js | 2 + docs/docker/command.md | 38 +++++++++++++++++++ docs/freeswitch/debian11.md | 8 ++-- docs/freeswitch/fail2ban.md | 2 +- ...CH安装mod_unimrcp模块.md => mod_unimrcp.md} | 2 +- docs/freeswitch/ubuntu1604.md | 2 +- 6 files changed, 47 insertions(+), 7 deletions(-) create mode 100644 docs/docker/command.md rename docs/freeswitch/{为FreeSWITCH安装mod_unimrcp模块.md => mod_unimrcp.md} (98%) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 3662131..e740160 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -36,6 +36,7 @@ module.exports = { sidebarDepth: 1, // 可选的, 默认值是 1 children: [ '/freeswitch/debian11', + '/freeswitch/mod_unimrcp', '/freeswitch/debian-service', '/freeswitch/ubuntu1604' ] @@ -64,6 +65,7 @@ module.exports = { sidebarDepth: 1, // 可选的, 默认值是 1 children: [ '/freeswitch/debian11', + '/freeswitch/mod_unimrcp', '/freeswitch/debian-service', '/freeswitch/ubuntu1604', '/freeswitch/fail2ban' diff --git a/docs/docker/command.md b/docs/docker/command.md new file mode 100644 index 0000000..e59a21d --- /dev/null +++ b/docs/docker/command.md @@ -0,0 +1,38 @@ +# docker命令备忘 + +## 基础操作 + +### 查看磁盘占用 + +```sh +# 查看镜像、容器、卷的总磁盘占用情况 +docker system df +# 查看每个image、container的详细空间占用情况 +docker system df -v +``` + +## 清理操作 + +### 删除关闭的容器和未使用的镜像 + +```sh +docker system prune -a +``` + +## 镜像操作 + +### 把容器导出为镜像 + +```sh +docker commit <容器ID或容器名> <镜像名>:<镜像tag> +``` + +### 镜像导入导出(save & load) + +```sh +docker save -o <要保存的文件名>.tar <本地镜像名>:<本地镜像tag> +``` + +```sh +docker load > <镜像文件名> +``` diff --git a/docs/freeswitch/debian11.md b/docs/freeswitch/debian11.md index 3c1969c..e15df30 100644 --- a/docs/freeswitch/debian11.md +++ b/docs/freeswitch/debian11.md @@ -1,8 +1,8 @@ -# 在Debian11中编译安装FreeSWITCH1.10 +# Debian11编译安装FreeSWITCH1.10.10 > wandoubaba / 2023-01-15 -本文以Debian11和FreeSWITCH1.10为例,介绍一步一步编译安装FreeSWITCH的方法。 +本文以Debian11和FreeSWITCH1.10.10为例,介绍一步一步编译安装FreeSWITCH的方法。 ## 先下载/克隆各种资源 @@ -10,7 +10,7 @@ # 假设所有资源都下载到/opt/目录下 cd /opt # 下载FreeSWITCH源码 -git clone -b v1.10 https://github.com/signalwire/freeswitch freeswitch +git clone -b v1.10.10 https://github.com/signalwire/freeswitch freeswitch # 下载libks源码 git clone https://github.com/signalwire/libks # 下载sofia-sip源码 @@ -39,7 +39,7 @@ sudo apt-get install -y \ libldns-dev \ python3-dev \ libavformat-dev libswscale-dev libavresample-dev \ - liblua5.2-dev \ + liblua5.1-dev \ libopus-dev \ libpq-dev \ libshout3-dev libmpg123-dev libmp3lame-dev \ diff --git a/docs/freeswitch/fail2ban.md b/docs/freeswitch/fail2ban.md index 31d18ff..e56c763 100644 --- a/docs/freeswitch/fail2ban.md +++ b/docs/freeswitch/fail2ban.md @@ -1,4 +1,4 @@ -# 使用fail2ban自动拦截向FreeSWITCH发起恶意注册的IP地址 +# 使用fail2ban自动拦截恶意注册 > wandoubaba / 2023-07-10 diff --git a/docs/freeswitch/为FreeSWITCH安装mod_unimrcp模块.md b/docs/freeswitch/mod_unimrcp.md similarity index 98% rename from docs/freeswitch/为FreeSWITCH安装mod_unimrcp模块.md rename to docs/freeswitch/mod_unimrcp.md index 3e247f9..193d6ed 100644 --- a/docs/freeswitch/为FreeSWITCH安装mod_unimrcp模块.md +++ b/docs/freeswitch/mod_unimrcp.md @@ -1,4 +1,4 @@ -## 为FreeSWITCH安装mod_unimrcp模块 +## FreeSWITCH安装mod_unimrcp模块 > wandoubaba / 2023-01-18 diff --git a/docs/freeswitch/ubuntu1604.md b/docs/freeswitch/ubuntu1604.md index f42cb00..def06d1 100644 --- a/docs/freeswitch/ubuntu1604.md +++ b/docs/freeswitch/ubuntu1604.md @@ -1,4 +1,4 @@ -# 在ubuntu16.04系统上安装freeswitch1.6 +# Ubuntu16.04安装freeswitch1.6 ## 操作系统和软件版本