如何注释掉 Linux 配置文件中的多行?

mes*_*lds 8 python linux nginx

鉴于:

code

/etc/nginx/sites-available/mySite.conf。我们知道

#Code

意味着它将被忽略。但是如果我想注释掉怎么办:

Code
Code
Code
Code
Run Code Online (Sandbox Code Playgroud)

不使用#?我有人看到'''在 python 中使用注释掉多行。这也适用于 Linux 配置文件吗?

Dan*_*ice 8

没有标准的“Linux 配置文件”——语法完全取决于读取文件的程序以及该程序如何解析它。

Nginx 只识别#以注释开头的行。http://nginx.org/en/docs/beginners_guide.html#conf_structure