配置文件 supervisor.conf 行首加分号 ; 每一行用分号开头,是必须的吗?

2019-02-10 10:22:47 +08:00
 liudaqi

每一行用分号 ; 开头,看起来有点别扭,这是什么规范? https://github.com/Supervisor/supervisor/blob/master/supervisor/skel/sample.conf

[supervisorctl]
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL  for a unix socket
;serverurl=http://127.0.0.1:9001 ; use an http:// url to specify an inet socket
;username=chris              ; should be same as in [*_http_server] if set
;password=123                ; should be same as in [*_http_server] if set
;prompt=mysupervisor         ; cmd line prompt (default "supervisor")
;history_file=~/.sc_history  ; use readline history if available
2295 次点击
所在节点    问与答
8 条回复
Joe0920
2019-02-10 10:28:18 +08:00
那是注释吧
affyun
2019-02-10 10:29:34 +08:00
他这个相当于别的#,加了;不生效
xiri
2019-02-10 10:35:01 +08:00
;开头是把那一行注释掉啊,,,,,,
BigBrother1024
2019-02-10 10:38:02 +08:00
。。。
MonoLogueChi
2019-02-10 10:39:53 +08:00
直接写啊,你这写的才叫奇怪呢
luob
2019-02-10 10:40:36 +08:00
分号注释异端
alvin666
2019-02-10 10:51:24 +08:00
@luob
一般来说,分号注释表示默认与这条被注释的相反,#注释表示默认与这条相同
我感觉还是很有用的
ysc3839
2019-02-10 20:02:27 +08:00
@luob 这配置文件是 ini 格式,ini 是用分号做注释的。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/533659

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX