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

16 lines
486 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.

# darkhttpd
> Darkhttpd网页服务器。
> 更多信息:<https://unix4lyfe.org/darkhttpd>。
- 启动服务器,提供指定的文档根目录:
`darkhttpd {{path/to/docroot}}`
- 在指定端口上启动服务器如果以非root用户身份运行默认端口为8080
`darkhttpd {{path/to/docroot}} --port {{port}}`
- 仅在指定的IP地址上监听默认情况下服务器在所有接口上监听
`darkhttpd {{path/to/docroot}} --addr {{ip_address}}`