From 19f3207ae0420191c868cdf7b67859a01ddbaeae Mon Sep 17 00:00:00 2001 From: tianci li Date: Wed, 3 Aug 2022 18:08:53 +0800 Subject: [PATCH] Unify the warning information and delete the exclamation point --- docs/books/learning_rsync/01_rsync_overview.md | 2 +- docs/books/learning_rsync/02_rsync_demo01.md | 4 ++-- docs/books/learning_rsync/03_rsync_demo02.md | 2 +- .../learning_rsync/05_rsync_authentication-free_login.md | 4 ++-- docs/books/learning_rsync/06_rsync_inotify.md | 6 +++--- docs/books/learning_rsync/07_rsync_unison_use.md | 8 ++++---- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/books/learning_rsync/01_rsync_overview.md b/docs/books/learning_rsync/01_rsync_overview.md index 052d061585..65de5db319 100644 --- a/docs/books/learning_rsync/01_rsync_overview.md +++ b/docs/books/learning_rsync/01_rsync_overview.md @@ -44,7 +44,7 @@ The original `rsync` was maintained by the Australian programmer |pull/download|RockyLinux8; ## Demonstration based on SSH protocol -!!! tip "Attention!" +!!! tip "tip" Here, both Rocky Linux 8 and Fedora 34 use the root user to log in. Fedora 34 is the client and Rocky Linux 8 is the server. @@ -92,7 +92,7 @@ aabbcc ``` The transfer was successful. -!!! tip "Attention" +!!! tip "tip" If the server's SSH port is not the default 22, you can specify the port in a similar way---`rsync -avz -e 'ssh -p [port]' `. diff --git a/docs/books/learning_rsync/03_rsync_demo02.md b/docs/books/learning_rsync/03_rsync_demo02.md index 0311c6bafa..75d251d8bb 100644 --- a/docs/books/learning_rsync/03_rsync_demo02.md +++ b/docs/books/learning_rsync/03_rsync_demo02.md @@ -33,7 +33,7 @@ Some parameters and values ​​of this file are as follows, [ here ](04_rsync_ | auth users = li| Enable virtual users and define what a virtual user is called. Need to create it yourself| | secrets file = /etc/rsyncd_users.db | Used to specify the location of the virtual user's password file, which must end in .db. The content format of the file is "Username: Password", one per line | -!!! tip "Attention!" +!!! tip "tip" The permission of the password file must be 600 diff --git a/docs/books/learning_rsync/05_rsync_authentication-free_login.md b/docs/books/learning_rsync/05_rsync_authentication-free_login.md index ef78634c84..fa30e04ecc 100644 --- a/docs/books/learning_rsync/05_rsync_authentication-free_login.md +++ b/docs/books/learning_rsync/05_rsync_authentication-free_login.md @@ -59,7 +59,7 @@ Last login: Tue Nov 2 21:42:44 2021 from 192.168.100.5 [testrsync@Rocky ~]$ ``` -!!! tip "Attention!" +!!! tip "tip" The server configuration file **/etc/ssh/sshd_config** should be opened PubkeyAuthentication yes @@ -95,6 +95,6 @@ sent 30 bytes received 193 bytes 148.67 bytes/sec total size is 883 speedup is 3.96 ``` -!!! tip "tip!" +!!! tip "tip" You can write this variable into **/etc/profile** to make it take effect permanently. The content is: `export RSYNC_PASSWORD=13579` diff --git a/docs/books/learning_rsync/06_rsync_inotify.md b/docs/books/learning_rsync/06_rsync_inotify.md index 3f26cfafca..692b3a22e3 100644 --- a/docs/books/learning_rsync/06_rsync_inotify.md +++ b/docs/books/learning_rsync/06_rsync_inotify.md @@ -121,7 +121,7 @@ Back to the first terminal pts/0, the output information is as follows: ## Combination of `inotifywait` and `rsync` -!!! tip "Attention!" +!!! tip "tip" We are operating in Rocky Linux 8 server, using SSH protocol for demonstration. @@ -142,12 +142,12 @@ $a | while read directory event file [root@Rocky ~]# bash /root/rsync_inotify.sh & ``` -!!! tip "emphasize again!" +!!! tip "tip" When using the SSH protocol for data synchronization transmission, if the SSH service port of the target machine is not 22, you can use a method similar to this—— `b="/usr/bin/rsync -avz -e 'ssh -p [port-number]' /rsync/* testfedora@192.168.100.5:/home/testfedora/"` -!!! tip "Attention!" +!!! tip "tip" If you want to start this script at boot `[root@Rocky ~]# echo "bash /root/rsync_inotify.sh &" >> /etc/rc.local` diff --git a/docs/books/learning_rsync/07_rsync_unison_use.md b/docs/books/learning_rsync/07_rsync_unison_use.md index 901ed88ae1..61a1dd0efe 100644 --- a/docs/books/learning_rsync/07_rsync_unison_use.md +++ b/docs/books/learning_rsync/07_rsync_unison_use.md @@ -33,7 +33,7 @@ Last login: Wed Nov 3 22:07:18 2021 from 192.168.100.5 [testrsync@Rocky ~]$ ``` -!!! tip "Attention" +!!! tip "tip" The configuration files of the two machines **/etc/ssh/sshd_config** should be opened PubkeyAuthentication yes @@ -132,16 +132,16 @@ done [root@fedora ~]# jobs -l ``` -!!! tip "Attention!" +!!! tip "tip" For two-way synchronization, the scripts of both machines must be started, otherwise an error will be reported. -!!! tip "Attention!" +!!! tip "tip" If you want to start this script at boot `[root@Rocky ~]# echo "bash /root/unison1.sh &" >> /etc/rc.local` `[root@Rocky ~]# chmod +x /etc/rc.local` -!!! tip "Attention!" +!!! tip "tip" If you want to stop the corresponding process of this script, you can find it in the `htop` command and then **kill**