可视化 Diff 工具

对比配置文件 左右对比 Diff

贴上你的 config,看看和原始版本有哪些变化。

NGINX - /etc/systemd/nginx.service

Debian 13 (Trixie)

查看原始文件 →

默认配置

Debian 13 (Trixie)
# Stop dance for nginx # ======================= # # ExecStop sends SIGQUIT (graceful stop) to the nginx process. # If, after 5s (--retry QUIT/5) nginx is still running, systemd takes control # and sends SIGTERM (fast shutdown) to the main process. # After another 5s (TimeoutStopSec=5), and if nginx is alive, systemd sends # SIGKILL to all the remaining processes in the process group (KillMode=mixed). # # nginx signals reference doc: # http://nginx.org/en/docs/control.html # [Unit] Description=A high performance web server and a reverse proxy server Documentation=man:nginx(8) After=network-online.target remote-fs.target nss-lookup.target Wants=network-online.target ConditionFileIsExecutable=/usr/sbin/nginx [Service] Type=forking PIDFile=/run/nginx.pid ExecStartPre=/usr/sbin/nginx -t -q -g 'daemon on; master_process on;' ExecStart=/usr/sbin/nginx -g 'daemon on; master_process on;' ExecReload=/usr/sbin/nginx -g 'daemon on; master_process on;' -s reload ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid TimeoutStopSec=5 KillMode=mixed [Install] WantedBy=multi-user.target

你的配置

已删除 已新增

拖文件到这里,或点击选择

如何使用这个工具

  1. 1 把你的配置文件粘贴或拖拽到上面的区域
  2. 2 Diff 会立刻显示,标出你和默认配置的差异
  3. 3 绿色是你新增的,红色是从默认配置里删掉的
  4. 4 用切换按钮在左右对比和统一 Diff 视图之间切换