Skip to content

hy2服务端是否支持配置独立的日志文件 #1027

Closed Answered by haruue
zhufeng asked this question in Q&A
Discussion options

You must be logged in to vote

如果你用手动启动服务端, 可以试试重定向, 例如 hysteria server >> /path/to/logfile.txt 2>&1 或者 hysteria server 2>&1 | tee -a /path/to/logfile.txt

如果你用 systemd 启动服务端, 可以试试 systemctl edit hysteria-server.service 并按照提示添加

StandardOutput=append:/path/to/logfile.txt
StandardError=append:/path/to/logfile.txt

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@zhufeng
Comment options

@haruue
Comment options

Answer selected by zhufeng
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants