Browse Source

update 横琴部署

master
fajiao 2 years ago
parent
commit
5418f318f9
  1. 37
      StreamMedia/横琴部署/横琴部署.md

37
StreamMedia/横琴部署/横琴部署.md

@ -51,10 +51,11 @@ cat /proc/sys/net/core/wmem_max
## 212992(208KB) ## 212992(208KB)
## 从 208KB 调整至 1MB ## 从 208KB 调整至 1MB
## 临时修改 ## 临时修改
su
echo 1048576 > /proc/sys/net/core/rmem_max echo 1048576 > /proc/sys/net/core/rmem_max
echo 1048576 > /proc/sys/net/core/wmem_max echo 1048576 > /proc/sys/net/core/wmem_max
## 永久修改 ## 永久修改
vim /etc/sysctl.conf sudo vim /etc/sysctl.conf
net.core.rmem_max = 1048576 net.core.rmem_max = 1048576
net.core.wmem_max = 1048576 net.core.wmem_max = 1048576
@ -63,9 +64,41 @@ net.core.wmem_max = 1048576
ulimit -a ulimit -a
ulimit -n 65536 ulimit -n 65536
## 永久修改 ## 永久修改
vim /etc/security/limits.conf sudo vim /etc/security/limits.conf
* soft nofile 32768 * soft nofile 32768
* hard nofile 65536 * hard nofile 65536
reboot reboot
ulimit -a ulimit -a
``` ```
## 修改 ffmpeg 参数(需要重新编译)
```
# 修改 udp.c 内的 UDP_MAX_PKT_SIZE 大小x10
#define UDP_MAX_PKT_SIZE (65536 * 10)
```
# 调试工具
```
# 安装调试工具
sudo apt install -y linux-tools-common htop iftop
sudo add-apt-repository ppa:wireshark-dev/stable
sudo apt update
sudo apt install wireshark
# 查看系统信息
top or htop
# 查看网络连接
netstat -tunlp
# 查看带宽
iftop
# 查看 udp 丢包
cat /proc/net/snmp | grep -w Udp
# 网络抓包
tcpdump #https://blog.csdn.net/weixin_36338224/article/details/107035214
wireshark
```

Loading…
Cancel
Save