可视化 Diff 工具

对比配置文件 左右对比 Diff

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

Apache HTTP Server - /etc/systemd/httpd.service

Red Hat Enterprise Linux 9 (Plow)

查看原始文件 →

默认配置

Red Hat Enterprise Linux 9 (Plow)
# See httpd.service(8) for more information on using the httpd service. # Modifying this file in-place is not recommended, because changes # will be overwritten during package upgrades. To customize the # behaviour, run "systemctl edit httpd" to create an override unit. # For example, to pass additional options (such as -D definitions) to # the httpd binary at startup, create an override unit (as is done by # systemctl edit) and enter the following: # [Service] # Environment=OPTIONS=-DMY_DEFINE [Unit] Description=The Apache HTTP Server Wants=httpd-init.service After=network.target remote-fs.target nss-lookup.target httpd-init.service Documentation=man:httpd.service(8) [Service] Type=notify Environment=LANG=C ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND ExecReload=/usr/sbin/httpd $OPTIONS -k graceful # Send SIGWINCH for graceful stop KillSignal=SIGWINCH KillMode=mixed PrivateTmp=true OOMPolicy=continue [Install] WantedBy=multi-user.target

你的配置

已删除 已新增

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

如何使用这个工具

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