摘要:
新建用户 useradd -m newuser passwd newuserpwd newuser usermod -d newuserhome newuser 授权目录给用户 chown newuser:newuser /home/newuser 授权用户组 chgrp -R newuser /p 阅读全文
摘要:
为什么出现这个参数 在大并发的场景下 单机的tcp连接的文件描述符被耗尽了 为什么会被耗尽 进程文件描述符限制 // 默认1024 ulimit -n // 当前临时修改 /etc/security/limits.conf soft nofile 1000000 hard nofile 100000 阅读全文
摘要:
package main import ( "fmt" "unsafe" ) func main() { which := make([]byte, 0) which = append(which, []byte("123")...) which1 := which fmt.Printf("whic 阅读全文
摘要:
设置ICE服务器 const rtcConfiguration = { iceServers: [ {url: "stun:192.168.1.112:3478"}, { url: "turn:192.168.1.112:3478", username: "admin", credential: " 阅读全文
摘要:
这个仅仅是原理 告你信令服务的作用 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0" 阅读全文
摘要:
发送端 <div> <canvas id="canvas"></canvas> <video id="srcvideo"></video> </div> <div id="xs"></div> <button id="startBtn" onclick="setRecorder(format);"> 阅读全文
摘要:
信令服务 const app = require('express')(); const wsInstance = require('express-ws')(app); app.ws('/', ws => { ws.on('message', data => { wsInstance.getWss 阅读全文
摘要:
安装NAT穿透服务器(ICE Server) brew install coturn // 启动服务 brew services restart coturn // 添加用户 turnadmin -a -u admin -r realm -p admin // 测试服务 turnutils_peer 阅读全文
摘要:
首先删除 app 删除缓存 新版本 cd Users/xxx/Library/ rm -rf Logs/JetBrains/IntelliJIdea202x.x rm -rf Preferences/com.jetbrains.intellij.plist rm -rf Preferences/co 阅读全文
摘要:
很多前端框 VUE React 都是使用webpack 打包 为何使用 vite webpack 打包很慢,热更不友好 一个模块的变化导致整个项目的重新编译 vite 真正的按需加载: 利用浏览器ESM支持,实现真正的按需加载 原理 由于ES6的在浏览器的支持ESM 可以只实现在浏览器直接使用imp 阅读全文