安装了Gogs服务器来管理git上的代码,后台启动后,请求访问Gogs服务器,会输出日志到命令行窗口前端,怎么关闭,只要输出到日志文件就行了?
//后台启动gogs
[root@10-23-67-69 conf]# /home/git/gogs/gogs web &
[2] 18849
[root@10-23-67-69 conf]# 2019/05/02 00:01:01 [TRACE] Custom path: /home/git/gogs/custom
2019-05-01 23:57:10 [TRACE] Log path: /home/git/gogs/log
2019-05-01 23:57:10 [TRACE] Log Mode: File (Trace)
2019-05-01 23:57:10 [ INFO] Wooduan 0.11.34.1122
//我不需要像下面的前台日志输出
[root@10-23-67-69 conf]# [Macaron] 2019-05-01 23:57:11: Started GET /admin/config for 60.186.204.51
[Macaron] 2019-05-01 23:57:12: Completed GET /admin/config 200 OK in 1.233874632s
[Macaron] 2019-05-01 23:57:13: Started GET /img/favicon.png for 60.186.204.51
[Macaron] [Static] Serving /img/favicon.png
[Macaron] 2019-05-01 23:57:13: Completed GET /img/favicon.png 200 OK in 21.497049ms [Macaron] 2019-05-01 23:57:19: Started GET /admin/config for 60.186.204.51
[Macaron] 2019-05-01 23:57:19: Completed GET /admin/config 200 OK in 6.955544ms
[Macaron] 2019-05-01 23:57:20: Started GET /img/favicon.png for 60.186.204.51
[Macaron] [Static] Serving /img/favicon.png
[Macaron] 2019-05-01 23:57:20: Completed GET /img/favicon.png 200 OK in 203.279µs
看官方配置文件,没找到关闭的选项,但是如果新开一个命令行窗口,登录同一个用户,新开启的窗口不会有命令行日志输出,应该是在执行启动gogs命令的会话才会有命令行日志输出,不会影响其他打开另一个会话的用户。