Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tars-web version:2.4.11,在启动脚本中配置服务的启动方式,但是tars-go 进程会异常退出 #121

Open
tangyouyou opened this issue Mar 30, 2021 · 0 comments

Comments

@tangyouyou
Copy link

问题描述:
tars-web version:2.4.11,在启动脚本中配置服务的启动方式,
例如:User ---config=user.conf & 进行启动,其中 User 为 tars-go 编译出来的二进制文件,如果 User 服务中存在将信息输出到 “控制台”,即 “标准输出”、“标准错误” 直接输出到控制台,将直接导致 User 服务进程异常退出

参考解决方案:
将 User 服务的 “标准输出“、“标准错误” 重定向到文件,例子 User ---config=user.conf 1 >> user.log 2>> user.log &

建议:
将“标准输出”、“标准错误” 的重定向内置在 【启动脚本】中

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant