ユーザ用ツール

サイト用ツール


50_dialy:2024:10:04

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
50_dialy:2024:10:04 [2024/10/04 02:39] matsui50_dialy:2024:10:04 [2024/10/04 03:35] (現在) matsui
行 45: 行 45:
     host = "root@192.168.10.12",     host = "root@192.168.10.12",
     targetdir = "/var/www/html/",     targetdir = "/var/www/html/",
-    delay = 0,                    -- 変更後すぐに同期(遅延ゼロ)+    delay = 1,                    -- 変更後1秒で同期
     rsync = {     rsync = {
         archive = true,         archive = true,
行 66: 行 66:
     host = "root@192.168.10.11",     host = "root@192.168.10.11",
     targetdir = "/var/www/html/",     targetdir = "/var/www/html/",
-    delay = 0,                    -- 変更後すぐに同期(遅延ゼロ)+    delay = 1,                    -- 変更後1秒で同期
     rsync = {     rsync = {
         archive = true,         archive = true,
行 73: 行 73:
 } }
 </code> </code>
 +
 +==== 4.起動と自動起動設定 ====
 +
 +<code>
 +sudo systemctl start lsyncd
 +sudo systemctl enable lsyncd
 +</code>
 +
 {{tag>日記 lsyncd rsync}} {{tag>日記 lsyncd rsync}}
50_dialy/2024/10/04.1728009591.txt.gz · 最終更新: 2024/10/04 02:39 by matsui