Files
tldr/pages.zh/common/netserver.md

21 lines
461 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# netserver
> `netperf` 的服务器端命令,该基准测试应用程序用于测量网络吞吐量。
> 另见:`netperf`,用于客户端的命令。
> 更多信息:<https://manned.org/netserver.1>。
- 在默认端口12865上启动服务器并在后台运行
`netserver`
- 在前台启动服务器并不进行分叉:
`netserver -D`
- 指定 [p]ort
`netserver -p {{port}}`
- 强制使用 IPv[4] 或 IPv[6]
`netserver -{{4|6}}`