bash
[root@client aa]# rsync -av --delete root@192.168.235.9:/aa/ /test
root@192.168.235.9's password:
receiving incremental file list
deleting aa/
deleting 11/
deleting file9.java
deleting file8.java
deleting file7.java
deleting file4.java
deleting file3.java
deleting file2.java
deleting file12.java
deleting file1.java
deleting 4.txt
deleting 3.txt
deleting 27.txt
deleting 2.txt
deleting 1.txt
deleting .bash_history
./
sent 27 bytes received 43 bytes 20.00 bytes/sec
total size is 0 speedup is 0.00
[root@client aa]# ls /test
bash
[root@slave ~]# ls aa
11 27.txt file12.java
[root@slave ~]#

192.168.235.200
bash
caozx26@192.168.235.200's password:
┌────────────────────────────────────────────────────────────────────┐
│ • MobaXterm 20.0 • │
│ (SSH client, X-server and networking tools) │
│ │
│ ➤ SSH session to caozx26@192.168.235.200 │
│ • SSH compression : ✘ │
│ • SSH-browser : ✔ │
│ • X11-forwarding : ✔ (remote display is forwarded through SSH) │
│ • DISPLAY : ✔ (automatically set on remote server) │
│ │
│ ➤ For more info, ctrl+click on help or visit our website │
└────────────────────────────────────────────────────────────────────┘
Last login: Sat Jul 5 18:33:29 2025
[caozx26@client ~]$ ls
1828.txt 1.java 2.java 3.java 5.java app1 inotify-tools-3.13.tar.gz 模板 图片 下载 桌面
1837.txt 2041 35.txt 4.java app inotify-tools-3.13 公共 视频 文档 音乐
[caozx26@client ~]$ mkdir /a /b
mkdir: 无法创建目录"/a": 权限不够
mkdir: 无法创建目录"/b": 权限不够
[caozx26@client ~]$ sudo su
[sudo] caozx26 的密码:
[root@client caozx26]# mkdir /a /b
[root@client caozx26]# ls
1828.txt 1.java 2.java 3.java 5.java app1 inotify-tools-3.13.tar.gz 模板 图片 下载 桌面
1837.txt 2041 35.txt 4.java app inotify-tools-3.13 公共 视频 文档 音乐
[root@client caozx26]# cd /
[root@client /]# ls
a b backup bin boot code dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
[root@client /]# cd a
[root@client a]# touch {1..4}.txt
[root@client a]# ls
1.txt 2.txt 3.txt 4.txt
[root@client a]# cd /b
[root@client b]# dd if=/dev/sr0 of=26.java bs=2M count=1
记录了1+0 的读入
记录了1+0 的写出
2097152字节(2.1 MB)已复制,0.231153 秒,9.1 MB/秒
[root@client b]# ls
26.java
[root@client b]# cd /
[root@client /]# rsync -a /a /b
[root@client /]# cd /a
[root@client a]# ls
1.txt 2.txt 3.txt 4.txt
[root@client a]# cd /b
[root@client b]# ls
26.java a
[root@client b]# cd /b
[root@client b]# ls
26.java a
[root@client b]# cd a
[root@client a]# ls
1.txt 2.txt 3.txt 4.txt
[root@client a]# cd/
bash: cd/: 没有那个文件或目录
[root@client a]# cd /
[root@client /]# rsync -a /a/ /b
[root@client /]# cd /a
[root@client a]# ls a
ls: 无法访问a: 没有那个文件或目录
[root@client a]# ls
1.txt 2.txt 3.txt 4.txt
[root@client a]# ls /b/
1.txt 26.java 2.txt 3.txt 4.txt a
[root@client a]# mkdir /c
[root@client a]# cd c
bash: cd: c: 没有那个文件或目录
[root@client a]# cd /c
[root@client c]# ls
[root@client c]# touch file{2..4}.java
[root@client c]# ls
file2.java file3.java file4.java
[root@client c]# cd /
[root@client /]# rsync -aR /a/ /c
[root@client /]# ls c
a file2.java file3.java file4.java
[root@client /]# mkdir /d /e
[root@client /]# ls
a b backup bin boot c code d dev e etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
[root@client /]# cd /d
[root@client d]# touch "
> ^C
[root@client d]# touch file{1..4}.java
[root@client d]# cd /e
[root@client e]# touch {2..3}.txt
[root@client e]# ls
2.txt 3.txt
[root@client e]# cd /d
[root@client d]# ls
file1.java file2.java file3.java file4.java
[root@client d]# ls /a
1.txt 2.txt 3.txt 4.txt
[root@client d]# ls /d
file1.java file2.java file3.java file4.java
[root@client d]# ls /e
2.txt 3.txt
[root@client d]# mkdir /f
[root@client d]# touch file{7..9}.java
[root@client d]# ls /f
[root@client d]# rsync -av /a/ /d
sending incremental file list
./
1.txt
2.txt
3.txt
4.txt
sent 266 bytes received 95 bytes 722.00 bytes/sec
total size is 0 speedup is 0.00
[root@client d]# ls /d
1.txt 2.txt 3.txt 4.txt file1.java file2.java file3.java file4.java file7.java file8.java file9.java
[root@client d]# rsync -av /a /e
sending incremental file list
a/
a/1.txt
a/2.txt
a/3.txt
a/4.txt
sent 279 bytes received 96 bytes 750.00 bytes/sec
total size is 0 speedup is 0.00
[root@client d]# ls
1.txt 2.txt 3.txt 4.txt file1.java file2.java file3.java file4.java file7.java file8.java file9.java
[root@client d]# ls /e
2.txt 3.txt a
[root@client d]# rsync -avR /a/ /f
sending incremental file list
/a/
/a/1.txt
/a/2.txt
/a/3.txt
/a/4.txt
sent 280 bytes received 96 bytes 752.00 bytes/sec
total size is 0 speedup is 0.00
[root@client d]# ls /f
a
[root@client d]# mkdir /g
[root@client d]# cd /f
[root@client f]# ls
a
[root@client f]# cd a
[root@client a]# ls
1.txt 2.txt 3.txt 4.txt
[root@client a]# cd /g
[root@client g]# ls
[root@client g]# dd if=/dev/sro of=920.txt bs=3M count=1
dd: 打开"/dev/sro" 失败: 没有那个文件或目录
[root@client g]# dd if=/dev/sr0 of=920.txt bs=3M count=1
记录了1+0 的读入
记录了1+0 的写出
3145728字节(3.1 MB)已复制,0.0920796 秒,34.2 MB/秒
[root@client g]# ls
920.txt
[root@client g]# cd /
[root@client /]# rsync -avR /a/ /g
sending incremental file list
/a/
/a/1.txt
/a/2.txt
/a/3.txt
/a/4.txt
sent 280 bytes received 96 bytes 752.00 bytes/sec
total size is 0 speedup is 0.00
[root@client /]# ls /g
920.txt a
[root@client /]# ls /a
1.txt 2.txt 3.txt 4.txt
[root@client /]# ls /b
1.txt 26.java 2.txt 3.txt 4.txt a
[root@client /]# rsync -av --delete /a /b
sending incremental file list
sent 120 bytes received 17 bytes 274.00 bytes/sec
total size is 0 speedup is 0.00
[root@client /]# ls /a
1.txt 2.txt 3.txt 4.txt
[root@client /]# ls /b
1.txt 26.java 2.txt 3.txt 4.txt a
[root@client /]# rsync -av --delete /a/ /b
sending incremental file list
deleting a/4.txt
deleting a/3.txt
deleting a/2.txt
deleting a/1.txt
deleting a/
deleting 26.java
sent 103 bytes received 73 bytes 352.00 bytes/sec
total size is 0 speedup is 0.00
[root@client /]# ls /a
1.txt 2.txt 3.txt 4.txt
[root@client /]# ls /b
1.txt 2.txt 3.txt 4.txt
[root@client /]# ls /b
1.txt 2.txt 3.txt 4.txt
[root@client /]# mkdir /k
[root@client /]# dd if=/dev/sr0 of=123.txt bs=3M count=1
记录了1+0 的读入
记录了1+0 的写出
3145728字节(3.1 MB)已复制,0.0032219 秒,976 MB/秒
[root@client /]# ls /f
a
[root@client /]# ls /k
[root@client /]# cd /k
[root@client k]# dd if=/dev/sr0 of=132.txt bs=5M count=1
记录了1+0 的读入
记录了1+0 的写出
5242880字节(5.2 MB)已复制,0.0522998 秒,100 MB/秒
[root@client k]# ls
132.txt
[root@client k]# ls /a
1.txt 2.txt 3.txt 4.txt
[root@client k]# ls /k
132.txt
[root@client k]# rsync -av --delete /a /k
sending incremental file list
a/
a/1.txt
a/2.txt
a/3.txt
a/4.txt
sent 279 bytes received 96 bytes 750.00 bytes/sec
total size is 0 speedup is 0.00
[root@client k]# ls /k
132.txt a
[root@client k]# rsync -av --delete /a/ /k
sending incremental file list
deleting a/4.txt
deleting a/3.txt
deleting a/2.txt
deleting a/1.txt
deleting a/
deleting 132.txt
./
1.txt
2.txt
3.txt
4.txt
sent 266 bytes received 156 bytes 844.00 bytes/sec
total size is 0 speedup is 0.00
[root@client k]# ls /k
1.txt 2.txt 3.txt 4.txt
[root@client k]# ls /a
1.txt 2.txt 3.txt 4.txt
[root@client k]# cd /
[root@client /]# ls
123.txt b bin c d e f home lib media opt root sbin sys usr
a backup boot code dev etc g k lib64 mnt proc run srv tmp var
[root@client /]# rsync -av 123.txt
sending incremental file list
-rw-r--r-- 3,145,728 2025/07/06 09:40:31 123.txt
sent 46 bytes received 70 bytes 232.00 bytes/sec
total size is 3,145,728 speedup is 27,118.34
[root@client /]# rsync -av a root@192.168.235.9:/root
The authenticity of host '192.168.235.9 (192.168.235.9)' can't be established.
ECDSA key fingerprint is SHA256:l7oqyOLFBOYXfikXWZ6nAea7yct7UK3lp7zJ4/b5EDI.
ECDSA key fingerprint is MD5:7b:8c:da:2e:04:dc:6b:ec:12:6e:44:75:11:30:40:02.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.235.9' (ECDSA) to the list of known hosts.
root@192.168.235.9's password:
sending incremental file list
a/
a/1.txt
a/2.txt
a/3.txt
a/4.txt
sent 279 bytes received 96 bytes 32.61 bytes/sec
total size is 0 speedup is 0.00
[root@client /]# rsync -av root@192.168.235.9:/etc/hosts ./
root@192.168.235.9's password:
receiving incremental file list
hosts
sent 43 bytes received 243 bytes 52.00 bytes/sec
total size is 158 speedup is 0.55
[root@client /]# ls
123.txt b bin c d e f home k lib64 mnt proc run srv tmp var
a backup boot code dev etc g hosts lib media opt root sbin sys usr
[root@client /]# cd /etc
[root@client etc]# ls
abrt default gssproxy mail.rc profile ssh
adjtime depmod.d host.conf makedumpfile.conf.sample profile.d ssl
aliases dhcp hostname man_db.conf protocols sssd
aliases.db DIR_COLORS hosts maven pulse statetab
alsa DIR_COLORS.256color hosts.allow mime.types purple statetab.d
alternatives DIR_COLORS.lightbgcolor hosts.deny mke2fs.conf python subgid
anacrontab dleyna-server-service.conf hp modprobe.d qemu-ga subgid-
asound.conf dnsmasq.conf httpd modules-load.d qemu-kvm subuid
at.deny dnsmasq.d idmapd.conf motd radvd.conf subuid-
audisp dracut.conf init.d mtab rc0.d subversion
audit dracut.conf.d inittab mtools.conf rc1.d sudo.conf
autofs.conf e2fsck.conf inputrc multipath rc2.d sudoers
autofs_ldap_auth.conf egl ipa my.cnf rc3.d sudoers.d
auto.master elinks.conf iproute2 my.cnf.d rc4.d sudo-ldap.conf
auto.master.d enscript.cfg ipsec.conf nanorc rc5.d sysconfig
auto.misc environment ipsec.d ndctl rc6.d sysctl.conf
auto.net ethertypes ipsec.secrets netconfig rc.d sysctl.d
auto.smb exports iscsi NetworkManager rc.local systemd
avahi exports.d issue networks rdma system-release
bash_completion.d favicon.png issue.net nfs.conf redhat-release system-release-cpe
bashrc fcoe java nfsmount.conf request-key.conf target
binfmt.d festival jvm nsswitch.conf request-key.d tcsd.conf
bluetooth filesystems jvm-commmon nsswitch.conf.bak resolv.conf terminfo
brltty firefox kdump.conf ntp resolv.conf.save tmpfiles.d
brltty.conf firewalld kernel ntp.conf rpc trusted-key.key
centos-release flatpak krb5.conf numad.conf rpm tuned
centos-release-upstream fonts krb5.conf.d oddjob rsyncd.conf udev
certmonger fprintd.conf ksmtuned.conf oddjobd.conf rsyslog.conf udisks2
cgconfig.conf fstab ld.so.cache oddjobd.conf.d rsyslog.d unbound
cgconfig.d fuse.conf ld.so.conf openldap rwtab updatedb.conf
cgrules.conf fwupd ld.so.conf.d opt rwtab.d UPower
cgsnapshot_blacklist.conf gconf lftp.conf os-release samba usb_modeswitch.conf
chkconfig.d gcrypt libaudit.conf PackageKit sane.d vconsole.conf
chrony.conf gdbinit libblockdev pam.d sasl2 vimrc
chrony.keys gdbinit.d libibverbs.d papersize scl virc
cifs-utils gdm libnl passwd securetty vmware-tools
cron.d geoclue libpaper.d passwd- security vsftpd
cron.daily GeoIP.conf libreport pbm2ppa.conf selinux wgetrc
cron.deny ghostscript libuser.conf pinforc services wpa_supplicant
cron.hourly glvnd libvirt pkcs11 sestatus.conf wvdial.conf
cron.monthly gnupg locale.conf pki setroubleshoot X11
crontab GREP_COLORS localtime plymouth setuptool.d xdg
cron.weekly groff login.defs pm sgml xinetd.d
crypttab group logrotate.conf pnm2ppa.conf shadow xml
csh.cshrc group- logrotate.d polkit-1 shadow- yum
csh.login grub2.cfg lsm popt.d shells yum.conf
cups grub.d lvm postfix skel yum.repos.d
cupshelpers gshadow machine-id ppp smartmontools
dbus-1 gshadow- magic prelink.conf.d sos.conf
dconf gss mailcap printcap speech-dispatcher
[root@client etc]# cd /
[root@client /]#
[root@client /]# ls
123.txt b bin c d e f home k lib64 mnt proc run srv tmp var
a backup boot code dev etc g hosts lib media opt root sbin sys usr
[root@client /]# rsync -av root@192.168.235.9:/76 ./
root@192.168.235.9's password:
receiving incremental file list
76/
76/1015/
sent 32 bytes received 80 bytes 32.00 bytes/sec
total size is 0 speedup is 0.00
[root@client /]# ls
123.txt a backup boot code dev etc g hosts lib media opt root sbin sys usr
76 b bin c d e f home k lib64 mnt proc run srv tmp var
[root@client /]# ls 76
1015
[root@client /]# rsync -av b root@192.168.235.9:./
root@192.168.235.9's password:
sending incremental file list
b/
b/1.txt
b/2.txt
b/3.txt
b/4.txt
sent 279 bytes received 96 bytes 107.14 bytes/sec
total size is 0 speedup is 0.00
[root@client /]# ls /c
a file2.java file3.java file4.java
[root@client /]# rsync -av /c/ root@192.168.235.9:./
root@192.168.235.9's password:
sending incremental file list
./
file2.java
file3.java
file4.java
sent 329 bytes received 77 bytes 162.40 bytes/sec
total size is 0 speedup is 0.00
[root@client /]# rsync -av --delete d root@192.168.235.9:./
root@192.168.235.9's password:
sending incremental file list
d/
d/1.txt
d/2.txt
d/3.txt
d/4.txt
d/file1.java
d/file2.java
d/file3.java
d/file4.java
d/file7.java
d/file8.java
d/file9.java
sent 695 bytes received 229 bytes 264.00 bytes/sec
total size is 0 speedup is 0.00
[root@client /]# rsync -av --delete /d/ root@192.168.235.9:./
root@192.168.235.9's password:
sending incremental file list
deleting d/file9.java
deleting d/file8.java
deleting d/file7.java
deleting d/file4.java
deleting d/file3.java
deleting d/file2.java
deleting d/file1.java
deleting d/4.txt
deleting d/3.txt
deleting d/2.txt
deleting d/1.txt
deleting d/
deleting b/4.txt
deleting b/3.txt
deleting b/2.txt
deleting b/1.txt
deleting b/
deleting a/4.txt
deleting a/3.txt
deleting a/2.txt
deleting a/1.txt
deleting a/
deleting .ssh/known_hosts
deleting .ssh/
deleting .dbus/session-bus/014dfc3f6c044629ba6347eac06affeb-9
deleting .dbus/session-bus/
deleting .dbus/
deleting .config/abrt/
deleting .config/
deleting .cache/dconf/user
deleting .cache/dconf/
deleting .cache/abrt/lastnotification
deleting .cache/abrt/
deleting .cache/
deleting initial-setup-ks.cfg
deleting anaconda-ks.cfg
deleting .xauthFMrn83
deleting .viminfo
deleting .tcshrc
deleting .cshrc
deleting .bashrc
deleting .bash_profile
deleting .bash_logout
deleting .bash_history
deleting .Xauthority
./
1.txt
2.txt
3.txt
4.txt
file1.java
file2.java
file3.java
file4.java
file7.java
file8.java
file9.java
sent 681 bytes received 901 bytes 452.00 bytes/sec
total size is 0 speedup is 0.00
[root@client /]# mkdir /test
[root@client /]# ls
123.txt a backup boot code dev etc g hosts lib media opt root sbin sys tmp var
76 b bin c d e f home k lib64 mnt proc run srv test usr
[root@client /]# cd /test
[root@client test]# mkdir test1
[root@client test]# touch file1.java
[root@client test]# cd /
[root@client /]# ls
123.txt a backup boot code dev etc g hosts lib media opt root sbin sys tmp var
76 b bin c d e f home k lib64 mnt proc run srv test usr
[root@client /]# ls test
file1.java test1
[root@client /]# rsync -av root@192.168.235.9:./ /test
root@192.168.235.9's password:
receiving incremental file list
./
.bash_history
1.txt
2.txt
3.txt
4.txt
file1.java
file2.java
file3.java
file4.java
file7.java
file8.java
file9.java
sent 255 bytes received 963 bytes 270.67 bytes/sec
total size is 203 speedup is 0.17
[root@client /]# ls /test
1.txt 2.txt 3.txt 4.txt file1.java file2.java file3.java file4.java file7.java file8.java file9.java test1
[root@client /]# ll /test
总用量 0
-rw-r--r-- 1 root root 0 7月 6 08:54 1.txt
-rw-r--r-- 1 root root 0 7月 6 08:54 2.txt
-rw-r--r-- 1 root root 0 7月 6 08:54 3.txt
-rw-r--r-- 1 root root 0 7月 6 08:54 4.txt
-rw-r--r-- 1 root root 0 7月 6 09:11 file1.java
-rw-r--r-- 1 root root 0 7月 6 09:11 file2.java
-rw-r--r-- 1 root root 0 7月 6 09:11 file3.java
-rw-r--r-- 1 root root 0 7月 6 09:11 file4.java
-rw-r--r-- 1 root root 0 7月 6 09:14 file7.java
-rw-r--r-- 1 root root 0 7月 6 09:14 file8.java
-rw-r--r-- 1 root root 0 7月 6 09:14 file9.java
drwxr-xr-x 2 root root 6 7月 6 11:10 test1
[root@client /]# rsync -av --delete root@192.168.235.9:./ /test
root@192.168.235.9's password:
receiving incremental file list
deleting test1/
sent 20 bytes received 281 bytes 120.40 bytes/sec
total size is 203 speedup is 0.67
[root@client /]# ls
123.txt a backup boot code dev etc g hosts lib media opt root sbin sys tmp var
76 b bin c d e f home k lib64 mnt proc run srv test usr
[root@client /]# ls /test
1.txt 2.txt 3.txt 4.txt file1.java file2.java file3.java file4.java file7.java file8.java file9.java
[root@client /]# rsync -av root@192.168.235.9:./aa /test
root@192.168.235.9's password:
receiving incremental file list
aa/
aa/27.txt
aa/file12.java
aa/11/
sent 74 bytes received 4,195,544 bytes 1,678,247.20 bytes/sec
total size is 4,194,304 speedup is 1.00
[root@client /]# ls /test
1.txt 2.txt 3.txt 4.txt aa file1.java file2.java file3.java file4.java file7.java file8.java file9.java
[root@client /]# rsync -av root@192.168.235.9:./aa/ /test
root@192.168.235.9's password:
receiving incremental file list
./
27.txt
file12.java
11/
sent 73 bytes received 4,195,535 bytes 239,749.03 bytes/sec
total size is 4,194,304 speedup is 1.00
[root@client /]# ls /test
11 27.txt 3.txt aa file1.java file3.java file7.java file9.java
1.txt 2.txt 4.txt file12.java file2.java file4.java file8.java
[root@client /]# rsync -av --delete root@192.168.235.9:/aa /test
root@192.168.235.9's password:
receiving incremental file list
deleting aa/11/
deleting aa/file12.java
deleting aa/27.txt
aa/
sent 28 bytes received 56 bytes 24.00 bytes/sec
total size is 0 speedup is 0.00
[root@client /]# ls /test
11 27.txt 3.txt aa file1.java file3.java file7.java file9.java
1.txt 2.txt 4.txt file12.java file2.java file4.java file8.java
[root@client /]# ls /test/aa
[root@client /]# ls
123.txt a backup boot code dev etc g hosts lib media opt root sbin sys tmp var
76 b bin c d e f home k lib64 mnt proc run srv test usr
[root@client /]# cd /test/aa
[root@client aa]# ls
[root@client aa]# rsync -av --delete root@192.168.235.9:/aa/ /test
root@192.168.235.9's password:
receiving incremental file list
deleting aa/
deleting 11/
deleting file9.java
deleting file8.java
deleting file7.java
deleting file4.java
deleting file3.java
deleting file2.java
deleting file12.java
deleting file1.java
deleting 4.txt
deleting 3.txt
deleting 27.txt
deleting 2.txt
deleting 1.txt
deleting .bash_history
./
sent 27 bytes received 43 bytes 20.00 bytes/sec
total size is 0 speedup is 0.00
[root@client aa]# ls /test
[root@client aa]# cd /
[root@client /]# ls
123.txt a backup boot code dev etc g hosts lib media opt root sbin sys tmp var
76 b bin c d e f home k lib64 mnt proc run srv test usr
[root@client /]# cd test
[root@client test]# ls
[root@client test]# ls /test
[root@client test]# ls
[root@client test]# ll -d test
ls: 无法访问test: 没有那个文件或目录
[root@client test]# ll -d /test
drwxr-xr-x 2 root root 6 7月 6 11:27 /test
[root@client test]# rsync -av --delete root@192.168.235.9:/aa/ /test
root@192.168.235.9's password:
receiving incremental file list
sent 20 bytes received 40 bytes 17.14 bytes/sec
total size is 0 speedup is 0.00
[root@client test]# rsync -av --delete root@192.168.235.9:/aa/ /test/
root@192.168.235.9's password:
receiving incremental file list
sent 20 bytes received 40 bytes 24.00 bytes/sec
total size is 0 speedup is 0.00
[root@client test]# ls test
ls: 无法访问test: 没有那个文件或目录
[root@client test]# ls /test
[root@client test]# cd /test
[root@client test]# ls
[root@client test]# touch file25.java
[root@client test]# ls
file25.java
[root@client test]# rsync -av --delete root@192.168.235.9:./aa/ /test
root@192.168.235.9's password:
receiving incremental file list
deleting file25.java
./
27.txt
file12.java
11/
sent 73 bytes received 4,195,535 bytes 1,678,243.20 bytes/sec
total size is 4,194,304 speedup is 1.00
[root@client test]# ls
11 27.txt file12.java
[root@client test]# rsync -av --delete root@192.168.235.9 root@192.168.235.9:/aa /test
Unexpected remote arg: root@192.168.235.9:/aa
rsync error: syntax or usage error (code 1) at main.c(1344) [sender=3.1.2]
[root@client test]# rsync -av --delete root@192.168.235.9:./aa /test
root@192.168.235.9's password:
Authentication failed.
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(226) [Receiver=3.1.2]
[root@client test]# rsync -av --delete root@192.168.235.9:./aa /test
root@192.168.235.9's password:
receiving incremental file list
aa/
aa/27.txt
aa/file12.java
aa/11/
sent 74 bytes received 4,195,544 bytes 1,198,748.00 bytes/sec
total size is 4,194,304 speedup is 1.00
[root@client test]# ls
11 27.txt aa file12.java
[root@client test]# rsync -av --delete root@192.168.235.9:./aa/ /test
root@192.168.235.9's password:
receiving incremental file list
deleting aa/11/
deleting aa/file12.java
deleting aa/27.txt
deleting aa/
./
sent 28 bytes received 130 bytes 63.20 bytes/sec
total size is 4,194,304 speedup is 26,546.23
[root@client test]# ls
11 27.txt file12.java
[root@client test]#
192.168.235.9
bash
root@192.168.235.9's password:
┌────────────────────────────────────────────────────────────────────┐
│ • MobaXterm 20.0 • │
│ (SSH client, X-server and networking tools) │
│ │
│ ➤ SSH session to root@192.168.235.9 │
│ • SSH compression : ✘ │
│ • SSH-browser : ✔ │
│ • X11-forwarding : ✔ (remote display is forwarded through SSH) │
│ • DISPLAY : ✔ (automatically set on remote server) │
│ │
│ ➤ For more info, ctrl+click on help or visit our website │
└────────────────────────────────────────────────────────────────────┘
Last login: Sat Jul 5 17:30:55 2025 from 192.168.235.1
[root@slave ~]# ls
a anaconda-ks.cfg initial-setup-ks.cfg
[root@slave ~]# ls a
1.txt 2.txt 3.txt 4.txt
[root@slave ~]# cd /
[root@slave /]# ks
bash: ks: 未找到命令...
[root@slave /]# ls
bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
[root@slave /]# mkdir -p /76/1015
[root@slave /]# ls
76 bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
[root@slave /]# cd 76
[root@slave 76]# ls
1015
[root@slave 76]# cd .
[root@slave 76]# ks
bash: ks: 未找到命令...
[root@slave 76]# ls
1015
[root@slave 76]# cd /
[root@slave /]# ls
76 bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
[root@slave /]# cd /root
[root@slave ~]# ls
a anaconda-ks.cfg b initial-setup-ks.cfg
[root@slave ~]# ls
a anaconda-ks.cfg b file2.java file3.java file4.java initial-setup-ks.cfg
[root@slave ~]# ls
a anaconda-ks.cfg b d file2.java file3.java file4.java initial-setup-ks.cfg
[root@slave ~]# ls
a anaconda-ks.cfg b d file2.java file3.java file4.java initial-setup-ks.cfg
[root@slave ~]# ls
1.txt 2.txt 3.txt 4.txt file1.java file2.java file3.java file4.java file7.java file8.java file9.java
[root@slave ~]# cd /
[root@slave /]# ls
76 bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
[root@slave /]# cd /
[root@slave /]# ls
76 bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
[root@slave /]# cd ~
[root@slave ~]# ls
1.txt 2.txt 3.txt 4.txt file1.java file2.java file3.java file4.java file7.java file8.java file9.java
[root@slave ~]# mkdir /aa
[root@slave ~]# ls
1.txt 2.txt 3.txt 4.txt file1.java file2.java file3.java file4.java file7.java file8.java file9.java
[root@slave ~]# mkdir aa
[root@slave ~]# ls
1.txt 2.txt 3.txt 4.txt aa file1.java file2.java file3.java file4.java file7.java file8.java file9.java
[root@slave ~]# cd aa
[root@slave aa]# dd if=/dev/sr0 of=27.txt bs=4M count=1
记录了1+0 的读入
记录了1+0 的写出
4194304字节(4.2 MB)已复制,0.100902 秒,41.6 MB/秒
[root@slave aa]# LS
bash: LS: 未找到命令...
相似命令是: 'ls'
[root@slave aa]# LS
bash: LS: 未找到命令...
相似命令是: 'ls'
[root@slave aa]# ls
27.txt
[root@slave aa]# mkdir 11
[root@slave aa]# ls
11 27.txt
[root@slave aa]# touch file12.java
[root@slave aa]# ls
11 27.txt file12.java
[root@slave aa]# ls aa
ls: 无法访问aa: 没有那个文件或目录
[root@slave aa]# cd ~
[root@slave ~]# ls
1.txt 2.txt 3.txt 4.txt aa file1.java file2.java file3.java file4.java file7.java file8.java file9.java
[root@slave ~]# ls aa
11 27.txt file12.java
[root@slave ~]# ls
1.txt 2.txt 3.txt 4.txt aa file1.java file2.java file3.java file4.java file7.java file8.java file9.java
[root@slave ~]# ls aa
11 27.txt file12.java
[root@slave ~]# ls aa
11 27.txt file12.java
[root@slave ~]# cd /aa
[root@slave aa]# ls
[root@slave aa]# cd
rsync

netstat -tnlp: Lists all TCP (-t) sockets in numeric format (-n) that are in LISTEN state (-l), along with their process IDs (-p)
bash
[root@code java_project]# jobs
[1]+ Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
bash
[root@code inotify-tools-3.13]# nohup ./inotify.sh &
[2] 49332
[root@code inotify-tools-3.13]# nohup: ignoring input and appending output to 'nohup.out'
JOBS
-bash: JOBS: command not found
[root@code inotify-tools-3.13]# jobs
[1]+ Stopped nohup ./inotify.sh
[2]- Running nohup ./inotify.sh &
[root@code inotify-tools-3.13]# cd /app/java_project/
[root@code java_project]# ls
aa1 aa2 aa3 bb file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[root@code java_project]# cat /var/log/rsync.log
2025/07/06 07:36:12 [18398] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 07:36:12 [18398] building file list
2025/07/06 07:36:12 [18398] sent 664 bytes received 219 bytes total size 0
2025/07/06 08:01:37 [18802] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:01:37 [18802] building file list
2025/07/06 08:01:37 [18802] rsync error: error in file IO (code 11) at io.c(1633) [sender=3.1.2]
2025/07/06 08:02:10 [18811] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:02:10 [18811] building file list
2025/07/06 08:02:10 [18811] sent 293 bytes received 28 bytes total size 0
[root@code java_project]# cd /app/java_project/
[root@code java_project]# ls
aa1 aa2 aa3 bb file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[root@code java_project]# mkdir cc
[root@code java_project]# ls
aa1 aa2 aa3 bb cc file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[2]+ Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
(wd now: /app/java_project)
[root@code java_project]# cat /var/log/rsync.log
2025/07/06 07:36:12 [18398] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 07:36:12 [18398] building file list
2025/07/06 07:36:12 [18398] sent 664 bytes received 219 bytes total size 0
2025/07/06 08:01:37 [18802] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:01:37 [18802] building file list
2025/07/06 08:01:37 [18802] rsync error: error in file IO (code 11) at io.c(1633) [sender=3.1.2]
2025/07/06 08:02:10 [18811] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:02:10 [18811] building file list
2025/07/06 08:02:10 [18811] sent 293 bytes received 28 bytes total size 0
[root@code java_project]# jobs
[1]- Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
[2]+ Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
bash
[root@code java_project]# jobs
[1]- Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
[2]+ Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
[root@code java_project]# ls
aa1 aa2 aa3 bb cc file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[root@code java_project]# cd /usr/local
-bash: $'\344\274\240cd': command not found
[root@code java_project]# cd /usr
[root@code usr]# cd local
[root@code local]# ls
apache2 apr bin etc games include inotify-tools-3.13 lib lib64 libexec mysql php sbin share src var
[root@code local]# cd inotify-tools-3.13/
[root@code inotify-tools-3.13]# ls
AUTHORS Makefile README config.h config.status depcomp libtool nohup.out
COPYING Makefile.am aclocal.m4 config.h.in config.sub inotify.sh ltmain.sh src
ChangeLog Makefile.in autom4te.cache config.h.in~ configure install-sh man stamp-h1
INSTALL NEWS config.guess config.log configure.ac libinotifytools missing
[root@code inotify-tools-3.13]# cat inotify.sh
/usr/local/bin/inotifywait -mrq -e modify,delete,create,attrib,move /app/java_project |while read events
do
rsync -av --delete /app/java_project/ root@192.168.235.200:/backup/app1_java
echo "$(date '+%F %T') happen$events">>/var/log/rsync.log 2>&1
done
[root@code inotify-tools-3.13]# cd bin
-bash: cd: bin: No such file or directory
[root@code inotify-tools-3.13]# ls
AUTHORS Makefile README config.h config.status depcomp libtool nohup.out
COPYING Makefile.am aclocal.m4 config.h.in config.sub inotify.sh ltmain.sh src
ChangeLog Makefile.in autom4te.cache config.h.in~ configure install-sh man stamp-h1
INSTALL NEWS config.guess config.log configure.ac libinotifytools missing
[root@code inotify-tools-3.13]# cd /usr/local/bin
[root@code bin]# ls
inotifywait inotifywatch pear peardev pecl phar phar.phar php php-cgi php-config phpdbg phpize
[root@code bin]# cd /usr/local
[root@code local]# ls
apache2 apr bin etc games include inotify-tools-3.13 lib lib64 libexec mysql php sbin share src var
[root@code local]# cd inotify-tools-3.13/
[root@code inotify-tools-3.13]# ls
AUTHORS Makefile README config.h config.status depcomp libtool nohup.out
COPYING Makefile.am aclocal.m4 config.h.in config.sub inotify.sh ltmain.sh src
ChangeLog Makefile.in autom4te.cache config.h.in~ configure install-sh man stamp-h1
INSTALL NEWS config.guess config.log configure.ac libinotifytools missing
[root@code inotify-tools-3.13]# jobs
[1]- Stopped nohup ./inotify.sh
[2]+ Stopped nohup ./inotify.sh
[root@code inotify-tools-3.13]#
192.168.235.9
bash
root@192.168.235.5's password:
┌────────────────────────────────────────────────────────────────────┐
│ • MobaXterm 20.0 • │
│ (SSH client, X-server and networking tools) │
│ │
│ ➤ SSH session to root@192.168.235.5 │
│ • SSH compression : ✘ │
│ • SSH-browser : ✔ │
│ • X11-forwarding : ✔ (remote display is forwarded through SSH) │
│ • DISPLAY : ✔ (automatically set on remote server) │
│ │
│ ➤ For more info, ctrl+click on help or visit our website │
└────────────────────────────────────────────────────────────────────┘
Last login: Fri Jul 4 19:19:08 2025 from 192.168.235.1
[root@code ~]# cat /etc/ssh/sshd_config
# $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/local/bin:/usr/bin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
# If you want to change the port on a SELinux system, you have to tell
# SELinux about this change.
# semanage port -a -t ssh_port_t -p tcp #PORTNUMBER
#
#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
# Ciphers and keying
#RekeyLimit default none
# Logging
#SyslogFacility AUTH
SyslogFacility AUTHPRIV
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
#PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
#PubkeyAuthentication yes
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile .ssh/authorized_keys
#AuthorizedPrincipalsFile none
#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
PasswordAuthentication yes
# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes
ChallengeResponseAuthentication no
# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no
#KerberosUseKuserok yes
# GSSAPI options
GSSAPIAuthentication yes
GSSAPICleanupCredentials no
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no
#GSSAPIEnablek5users no
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
# WARNING: 'UsePAM no' is not supported in Red Hat Enterprise Linux and may cause several
# problems.
UsePAM yes
#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation sandbox
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#ShowPatchLevel no
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none
# no default banner path
#Banner none
# Accept locale-related environment variables
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
AcceptEnv XMODIFIERS
# override default of no subsystems
Subsystem sftp /usr/libexec/openssh/sftp-server
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
[root@code ~]# ls
1828.txt apr-1.5.2.tar.bz2 httpd-2.4.37 mysql-5.6.31 php-7.2.17.tar.xz
anaconda-ks.cfg apr-util-1.5.4 httpd-2.4.37.tar.bz2 mysql-5.6.31.tar.gz wordpress-4.7.3-zh_CN.tar.gz
apr-1.5.2 apr-util-1.5.4.tar.bz2 initial-setup-ks.cfg php-7.2.17
[root@code ~]# ll 1828.txt
-bash: ll: command not found
[root@code ~]# ls 1828.txt
1828.txt
[root@code ~]# ls -a 1828.txt
1828.txt
[root@code ~]# ll -a 1828.txt
-bash: ll: command not found
[root@code ~]# ls -l 1828.txt
-rw-r--r-- 1 caozx26 caozx26 5242880 Jun 15 18:31 1828.txt
[root@code ~]# systemctl stop firewalld
[root@code ~]# systemctl disable firewalld
[root@code ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
[root@code ~]# setenforce 0
setenforce: SELinux is disabled
[root@code ~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
[root@code ~]# hostname
code
[root@code ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:2a:70:8a brd ff:ff:ff:ff:ff:ff
inet 192.168.235.5/24 brd 192.168.235.255 scope global ens33
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fe2a:708a/64 scope link
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:5b:77:d5 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000
link/ether 52:54:00:5b:77:d5 brd ff:ff:ff:ff:ff:ff
[root@code ~]# systemctl status NetworkManager
● NetworkManager.service - Network Manager
Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:NetworkManager(8)
[root@code ~]# ntpdate cn.ntp.org.cn
6 Jul 15:06:53 ntpdate[7706]: adjust time server 120.25.115.20 offset 0.005198 sec
[root@code ~]# ls
1828.txt apr-1.5.2.tar.bz2 httpd-2.4.37 mysql-5.6.31 php-7.2.17.tar.xz
anaconda-ks.cfg apr-util-1.5.4 httpd-2.4.37.tar.bz2 mysql-5.6.31.tar.gz wordpress-4.7.3-zh_CN.tar.gz
apr-1.5.2 apr-util-1.5.4.tar.bz2 initial-setup-ks.cfg php-7.2.17
[root@code ~]# mkdir /app/java_project -p
[root@code ~]# mkdir /app/java_project/aa{1..3}
[root@code ~]# touch /app/java_project/file{1..9}.java
[root@code ~]# systemctk status rsyncd
-bash: systemctk: command not found
[root@code ~]# systemctl status rsyncd
● rsyncd.service - fast remote file copy program daemon
Loaded: loaded (/usr/lib/systemd/system/rsyncd.service; disabled; vendor preset: disabled)
Active: inactive (dead)
[root@code ~]# vim /etc/rsyncd.conf
[root@code ~]# cat /etc/rsyncd.conf
# /etc/rsyncd: configuration file for rsync daemon mode
# See rsyncd.conf man page for more options.
# configuration example:
# uid = nobody
# gid = nobody
# use chroot = yes
# max connections = 4
# pid file = /var/run/rsyncd.pid
# exclude = lost+found/
# transfer logging = yes
# timeout = 900
# ignore nonreadable = yes
# dont compress = *.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2
# [ftp]
# path = /home/ftp
# comment = ftp export a
[app]
path=/app/java_project
log file=/var/log/rsync.log
[root@code ~]# systemctl start rsyncd
[root@code ~]# ps -ef|grep rsync
root 9476 1 0 15:12 ? 00:00:00 /usr/bin/rsync --daemon --no-detach
root 9532 3558 0 15:12 pts/2 00:00:00 grep rsync
[root@code ~]# netstat -tnlp |grep rsync
tcp 0 0 0.0.0.0:873 0.0.0.0:* LISTEN 9476/rsync
tcp6 0 0 :::873 :::* LISTEN 9476/rsync
[root@code ~]# ls
1828.txt apr-1.5.2.tar.bz2 httpd-2.4.37 mysql-5.6.31 php-7.2.17.tar.xz
anaconda-ks.cfg apr-util-1.5.4 httpd-2.4.37.tar.bz2 mysql-5.6.31.tar.gz wordpress-4.7.3-zh_CN.tar.gz
apr-1.5.2 apr-util-1.5.4.tar.bz2 initial-setup-ks.cfg php-7.2.17
[root@code ~]# cd /
[root@code /]# ls
app bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var www
[root@code /]# ls
app bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var www
[root@code /]# cd .
[root@code /]# cd /
[root@code /]# ls
app bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var www
[root@code /]# cd ~
[root@code ~]# ls
1828.txt apr-1.5.2.tar.bz2 httpd-2.4.37 mysql-5.6.31 php-7.2.17.tar.xz
anaconda-ks.cfg apr-util-1.5.4 httpd-2.4.37.tar.bz2 mysql-5.6.31.tar.gz wordpress-4.7.3-zh_CN.tar.gz
apr-1.5.2 apr-util-1.5.4.tar.bz2 initial-setup-ks.cfg php-7.2.17
[root@code ~]# cd /app
[root@code app]# ls
java_project
[root@code app]# ls
java_project
[root@code app]# cd !
-bash: cd: !: No such file or directory
[root@code app]# netstat -tnlp |grep rsync
tcp 0 0 0.0.0.0:873 0.0.0.0:* LISTEN 9476/rsync
tcp6 0 0 :::873 :::* LISTEN 9476/rsync
[root@code app]# rsync -a root@192.168.235.200::
rsync: getaddrinfo: 192.168.235.200\#357 873: Name or service not known
rsync error: error in socket IO (code 10) at clientserver.c(125) [Receiver=3.1.2]
[root@code app]# rsync -av root@192.168.235.200::app /backup/app1_java
@ERROR: Unknown module 'app'
rsync error: error starting client-server protocol (code 5) at main.c(1649) [Receiver=3.1.2]
[root@code app]# rsync -av root@191.168.235.200::app /backup/app1_java
rsync: failed to connect to 191.168.235.200 (191.168.235.200): Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(125) [Receiver=3.1.2]
[root@code app]# rsync -av root@192.168.235.200::app /backup/app1_java
@ERROR: Unknown module 'app'
rsync error: error starting client-server protocol (code 5) at main.c(1649) [Receiver=3.1.2]
[root@code app]# ls
java_project
[root@code app]# cd java_project/
[root@code java_project]# ls
aa1 aa2 aa3 file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[root@code java_project]# ps -ef|grep rsync
root 9476 1 0 15:12 ? 00:00:00 /usr/bin/rsync --daemon --no-detach
root 21542 3558 0 16:23 pts/2 00:00:00 grep rsync
[root@code java_project]# netstat -tnlp |grep rsync
tcp 0 0 0.0.0.0:873 0.0.0.0:* LISTEN 9476/rsync
tcp6 0 0 :::873 :::* LISTEN 9476/rsync
[root@code java_project]# cd /
[root@code /]# ls
app boot etc inotify-tools-3.13.tar.gz lib64 mnt proc run srv tmp var
bin dev home lib media opt root sbin sys usr www
[root@code /]# tar xf inotify-tools-3.13.tar.gz -C /usr/local/
[root@code /]# cd /usr/local/inotify-tools-3.13/
[root@code inotify-tools-3.13]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for correct ltmain.sh version... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... no
checking if gfortran supports -c -o file.o... yes
checking whether the gfortran linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for doxygen... /usr/bin/doxygen
checking sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking mcheck.h usability... yes
checking mcheck.h presence... yes
checking for mcheck.h... yes
checking whether sys/inotify.h actually works... yup
checking for an ANSI C-conforming const... yes
checking for inline... inline
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating man/Makefile
config.status: creating libinotifytools/Makefile
config.status: creating libinotifytools/src/Makefile
config.status: creating libinotifytools/src/inotifytools/Makefile
config.status: creating config.h
config.status: creating libinotifytools/src/inotifytools/inotify.h
config.status: executing depfiles commands
[root@code inotify-tools-3.13]# make && make install
make all-recursive
make[1]: Entering directory `/usr/local/inotify-tools-3.13'
Making all in libinotifytools
make[2]: Entering directory `/usr/local/inotify-tools-3.13/libinotifytools'
make[3]: Entering directory `/usr/local/inotify-tools-3.13'
make[3]: Leaving directory `/usr/local/inotify-tools-3.13'
Making all in src
make[3]: Entering directory `/usr/local/inotify-tools-3.13/libinotifytools/src'
make[4]: Entering directory `/usr/local/inotify-tools-3.13'
make[4]: Leaving directory `/usr/local/inotify-tools-3.13'
Making all in inotifytools
make[4]: Entering directory `/usr/local/inotify-tools-3.13/libinotifytools/src/inotifytools'
make[5]: Entering directory `/usr/local/inotify-tools-3.13'
make[5]: Leaving directory `/usr/local/inotify-tools-3.13'
cd ../../.. && /bin/sh /usr/local/inotify-tools-3.13/missing --run autoheader
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:681: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:2759: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:2758: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:726: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:2759: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:2758: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
aclocal.m4:340: _LT_AC_SYS_LIBPATH_AIX is expanded from...
aclocal.m4:5533: AC_LIBTOOL_PROG_LD_SHLIBS is expanded from...
aclocal.m4:2759: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:2758: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
aclocal.m4:340: _LT_AC_SYS_LIBPATH_AIX is expanded from...
aclocal.m4:2836: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2835: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:681: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:2836: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2835: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:726: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:2836: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2835: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:681: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:4054: _LT_AC_LANG_F77_CONFIG is expanded from...
aclocal.m4:4053: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:726: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:4054: _LT_AC_LANG_F77_CONFIG is expanded from...
aclocal.m4:4053: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:681: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:4163: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:4162: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:726: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:4163: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:4162: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
aclocal.m4:340: _LT_AC_SYS_LIBPATH_AIX is expanded from...
aclocal.m4:5533: AC_LIBTOOL_PROG_LD_SHLIBS is expanded from...
aclocal.m4:4163: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:4162: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:48: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2729: _AC_RUN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2748: AC_RUN_IFELSE is expanded from...
configure.ac:48: the top level
rm -f stamp-h2
touch inotify.h.in
cd ../../.. && /bin/sh ./config.status libinotifytools/src/inotifytools/inotify.h
config.status: creating libinotifytools/src/inotifytools/inotify.h
config.status: libinotifytools/src/inotifytools/inotify.h is unchanged
make all-am
make[5]: Entering directory `/usr/local/inotify-tools-3.13/libinotifytools/src/inotifytools'
make[6]: Entering directory `/usr/local/inotify-tools-3.13'
make[6]: Leaving directory `/usr/local/inotify-tools-3.13'
make[5]: Leaving directory `/usr/local/inotify-tools-3.13/libinotifytools/src/inotifytools'
make[4]: Leaving directory `/usr/local/inotify-tools-3.13/libinotifytools/src/inotifytools'
make[4]: Entering directory `/usr/local/inotify-tools-3.13/libinotifytools/src'
make[5]: Entering directory `/usr/local/inotify-tools-3.13'
make[5]: Leaving directory `/usr/local/inotify-tools-3.13'
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF ".deps/inotifytools.Tpo" -c -o inotifytools.lo inotifytools.c; \
then mv -f ".deps/inotifytools.Tpo" ".deps/inotifytools.Plo"; else rm -f ".deps/inotifytools.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c inotifytools.c -fPIC -DPIC -o .libs/inotifytools.o
inotifytools.c: In function 'event_compare':
inotifytools.c:2027:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
int sort_event = (int)config;
^
inotifytools.c: In function 'inotifytools_wd_sorted_by_event':
inotifytools.c:2048:45: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
struct rbtree *ret = rbinit(event_compare, (void*)sort_event);
^
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c inotifytools.c -o inotifytools.o >/dev/null 2>&1
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT redblack.lo -MD -MP -MF ".deps/redblack.Tpo" -c -o redblack.lo redblack.c; \
then mv -f ".deps/redblack.Tpo" ".deps/redblack.Plo"; else rm -f ".deps/redblack.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT redblack.lo -MD -MP -MF .deps/redblack.Tpo -c redblack.c -fPIC -DPIC -o .libs/redblack.o
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT redblack.lo -MD -MP -MF .deps/redblack.Tpo -c redblack.c -o redblack.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CC --mode=link gcc -std=c99 -g -O2 -o libinotifytools.la -rpath /usr/local/lib -version-info 4:1:4 inotifytools.lo redblack.lo
gcc -shared .libs/inotifytools.o .libs/redblack.o -Wl,-soname -Wl,libinotifytools.so.0 -o .libs/libinotifytools.so.0.4.1
(cd .libs && rm -f libinotifytools.so.0 && ln -s libinotifytools.so.0.4.1 libinotifytools.so.0)
(cd .libs && rm -f libinotifytools.so && ln -s libinotifytools.so.0.4.1 libinotifytools.so)
ar cru .libs/libinotifytools.a inotifytools.o redblack.o
ranlib .libs/libinotifytools.a
creating libinotifytools.la
(cd .libs && rm -f libinotifytools.la && ln -s ../libinotifytools.la libinotifytools.la)
/usr/bin/doxygen
Warning: Tag `USE_WINDOWS_ENCODING' at line 64 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `DETAILS_AT_TOP' at line 156 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `SHOW_DIRECTORIES' at line 390 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `HTML_ALIGN_MEMBERS' at line 674 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `MAX_DOT_GRAPH_WIDTH' at line 1196 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `MAX_DOT_GRAPH_HEIGHT' at line 1204 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Notice: Output directory `doc' does not exist. I have created it for you.
Searching for include files...
Searching for example files...
Searching for files in directory /usr/local/inotify-tools-3.13/libinotifytools/src
Searching for images...
Searching for dot files...
Searching for msc files...
Searching for files to exclude
Searching for files to process...
Reading and parsing tag files
Parsing files
Preprocessing /usr/local/inotify-tools-3.13/libinotifytools/src/inotifytools/inotifytools.h...
Parsing file /usr/local/inotify-tools-3.13/libinotifytools/src/inotifytools/inotifytools.h...
Preprocessing /usr/local/inotify-tools-3.13/libinotifytools/src/inotifytools.c...
Parsing file /usr/local/inotify-tools-3.13/libinotifytools/src/inotifytools.c...
Building group list...
Building directory list...
Building namespace list...
Building file list...
Building class list...
Associating documentation with classes...
Computing nesting relations for classes...
Building example list...
Searching for enumerations...
Searching for documented typedefs...
Searching for members imported via using declarations...
Searching for included using directives...
Searching for documented variables...
Building interface member list...
Building member list...
Searching for friends...
Searching for documented defines...
Computing class inheritance relations...
Computing class usage relations...
Flushing cached template relations that have become invalid...
Creating members for template instances...
Computing class relations...
Add enum values to enums...
Searching for member function documentation...
Building page list...
Search for main page...
Computing page relations...
Determining the scope of groups...
Sorting lists...
Freeing entry tree
Determining which enums are documented
Computing member relations...
Building full member lists recursively...
Adding members to member groups.
Computing member references...
Inheriting documentation...
Generating disk names...
Adding source references...
Adding xrefitems...
Sorting member lists...
Computing dependencies between directories...
Generating citations page...
Counting data structures...
Resolving user defined references...
Finding anchors and sections in the documentation...
Transferring function references...
Combining using relations...
Adding members to index pages...
Generating style sheet...
Generating example documentation...
Generating file sources...
Generating code for file inotifytools.c...
Generating code for file inotifytools/inotifytools.h...
Generating file documentation...
Generating docs for file inotifytools/inotifytools.h...
Generating page documentation...
Generating docs for page todo...
Generating group documentation...
Generating class documentation...
Generating namespace index...
Generating graph info page...
Generating directory documentation...
Generating index page...
Generating page index...
Generating module index...
Generating namespace index...
Generating namespace member index...
Generating annotated compound index...
Generating alphabetical compound index...
Generating hierarchical class index...
Generating member index...
Generating file index...
Generating file member index...
Generating example index...
finalizing index lists...
lookup cache used 84/65536 hits=301 misses=84
finished...
make[4]: Leaving directory `/usr/local/inotify-tools-3.13/libinotifytools/src'
make[3]: Leaving directory `/usr/local/inotify-tools-3.13/libinotifytools/src'
make[3]: Entering directory `/usr/local/inotify-tools-3.13/libinotifytools'
make[4]: Entering directory `/usr/local/inotify-tools-3.13'
make[4]: Leaving directory `/usr/local/inotify-tools-3.13'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/local/inotify-tools-3.13/libinotifytools'
make[2]: Leaving directory `/usr/local/inotify-tools-3.13/libinotifytools'
Making all in src
make[2]: Entering directory `/usr/local/inotify-tools-3.13/src'
make[3]: Entering directory `/usr/local/inotify-tools-3.13'
make[3]: Leaving directory `/usr/local/inotify-tools-3.13'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotifywait.o -MD -MP -MF ".deps/inotifywait.Tpo" -c -o inotifywait.o inotifywait.c; \
then mv -f ".deps/inotifywait.Tpo" ".deps/inotifywait.Po"; else rm -f ".deps/inotifywait.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT common.o -MD -MP -MF ".deps/common.Tpo" -c -o common.o common.c; \
then mv -f ".deps/common.Tpo" ".deps/common.Po"; else rm -f ".deps/common.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -o inotifywait inotifywait.o common.o ../libinotifytools/src/libinotifytools.la
mkdir .libs
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywait inotifywait.o common.o -L/usr/local/inotify-tools-3.13/libinotifytools/src ../libinotifytools/src/.libs/libinotifytools.so -Wl,--rpath -Wl,/usr/local/lib
creating inotifywait
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotifywatch.o -MD -MP -MF ".deps/inotifywatch.Tpo" -c -o inotifywatch.o inotifywatch.c; \
then mv -f ".deps/inotifywatch.Tpo" ".deps/inotifywatch.Po"; else rm -f ".deps/inotifywatch.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -o inotifywatch inotifywatch.o common.o ../libinotifytools/src/libinotifytools.la
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywatch inotifywatch.o common.o -L/usr/local/inotify-tools-3.13/libinotifytools/src ../libinotifytools/src/.libs/libinotifytools.so -Wl,--rpath -Wl,/usr/local/lib
creating inotifywatch
make[2]: Leaving directory `/usr/local/inotify-tools-3.13/src'
Making all in man
make[2]: Entering directory `/usr/local/inotify-tools-3.13/man'
make[3]: Entering directory `/usr/local/inotify-tools-3.13'
make[3]: Leaving directory `/usr/local/inotify-tools-3.13'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/inotify-tools-3.13/man'
make[2]: Entering directory `/usr/local/inotify-tools-3.13'
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
make[2]: Leaving directory `/usr/local/inotify-tools-3.13'
make[1]: Leaving directory `/usr/local/inotify-tools-3.13'
Making install in libinotifytools
make[1]: Entering directory `/usr/local/inotify-tools-3.13/libinotifytools'
make[2]: Entering directory `/usr/local/inotify-tools-3.13'
make[2]: Leaving directory `/usr/local/inotify-tools-3.13'
Making install in src
make[2]: Entering directory `/usr/local/inotify-tools-3.13/libinotifytools/src'
make[3]: Entering directory `/usr/local/inotify-tools-3.13'
make[3]: Leaving directory `/usr/local/inotify-tools-3.13'
Making install in inotifytools
make[3]: Entering directory `/usr/local/inotify-tools-3.13/libinotifytools/src/inotifytools'
make[4]: Entering directory `/usr/local/inotify-tools-3.13'
make[4]: Leaving directory `/usr/local/inotify-tools-3.13'
make[4]: Entering directory `/usr/local/inotify-tools-3.13/libinotifytools/src/inotifytools'
make[5]: Entering directory `/usr/local/inotify-tools-3.13'
make[5]: Leaving directory `/usr/local/inotify-tools-3.13'
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
make[4]: Leaving directory `/usr/local/inotify-tools-3.13/libinotifytools/src/inotifytools'
make[3]: Leaving directory `/usr/local/inotify-tools-3.13/libinotifytools/src/inotifytools'
make[3]: Entering directory `/usr/local/inotify-tools-3.13/libinotifytools/src'
make[4]: Entering directory `/usr/local/inotify-tools-3.13'
make[4]: Leaving directory `/usr/local/inotify-tools-3.13'
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF ".deps/inotifytools.Tpo" -c -o inotifytools.lo inotifytools.c; \
then mv -f ".deps/inotifytools.Tpo" ".deps/inotifytools.Plo"; else rm -f ".deps/inotifytools.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c inotifytools.c -fPIC -DPIC -o .libs/inotifytools.o
inotifytools.c: In function 'event_compare':
inotifytools.c:2027:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
int sort_event = (int)config;
^
inotifytools.c: In function 'inotifytools_wd_sorted_by_event':
inotifytools.c:2048:45: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
struct rbtree *ret = rbinit(event_compare, (void*)sort_event);
^
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c inotifytools.c -o inotifytools.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CC --mode=link gcc -std=c99 -g -O2 -o libinotifytools.la -rpath /usr/local/lib -version-info 4:1:4 inotifytools.lo redblack.lo
rm -fr .libs/libinotifytools.a .libs/libinotifytools.la .libs/libinotifytools.lai .libs/libinotifytools.so .libs/libinotifytools.so.0 .libs/libinotifytools.so.0.4.1
gcc -shared .libs/inotifytools.o .libs/redblack.o -Wl,-soname -Wl,libinotifytools.so.0 -o .libs/libinotifytools.so.0.4.1
(cd .libs && rm -f libinotifytools.so.0 && ln -s libinotifytools.so.0.4.1 libinotifytools.so.0)
(cd .libs && rm -f libinotifytools.so && ln -s libinotifytools.so.0.4.1 libinotifytools.so)
ar cru .libs/libinotifytools.a inotifytools.o redblack.o
ranlib .libs/libinotifytools.a
creating libinotifytools.la
(cd .libs && rm -f libinotifytools.la && ln -s ../libinotifytools.la libinotifytools.la)
make[4]: Entering directory `/usr/local/inotify-tools-3.13/libinotifytools/src'
make[5]: Entering directory `/usr/local/inotify-tools-3.13'
make[5]: Leaving directory `/usr/local/inotify-tools-3.13'
test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib"
/bin/sh ../../libtool --mode=install /usr/bin/install -c 'libinotifytools.la' '/usr/local/lib/libinotifytools.la'
/usr/bin/install -c .libs/libinotifytools.so.0.4.1 /usr/local/lib/libinotifytools.so.0.4.1
(cd /usr/local/lib && { ln -s -f libinotifytools.so.0.4.1 libinotifytools.so.0 || { rm -f libinotifytools.so.0 && ln -s libinotifytools.so.0.4.1 libinotifytools.so.0; }; })
(cd /usr/local/lib && { ln -s -f libinotifytools.so.0.4.1 libinotifytools.so || { rm -f libinotifytools.so && ln -s libinotifytools.so.0.4.1 libinotifytools.so; }; })
/usr/bin/install -c .libs/libinotifytools.lai /usr/local/lib/libinotifytools.la
/usr/bin/install -c .libs/libinotifytools.a /usr/local/lib/libinotifytools.a
chmod 644 /usr/local/lib/libinotifytools.a
ranlib /usr/local/lib/libinotifytools.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/share/doc/inotify-tools" || mkdir -p -- "/usr/local/share/doc/inotify-tools"
/usr/bin/install -c -m 644 'doc/html/bc_s.png' '/usr/local/share/doc/inotify-tools/bc_s.png'
/usr/bin/install -c -m 644 'doc/html/bdwn.png' '/usr/local/share/doc/inotify-tools/bdwn.png'
/usr/bin/install -c -m 644 'doc/html/closed.png' '/usr/local/share/doc/inotify-tools/closed.png'
/usr/bin/install -c -m 644 'doc/html/dir_6f9162800bb6dbbe5c86171e8602f383.html' '/usr/local/share/doc/inotify-tools/dir_6f9162800bb6dbbe5c86171e8602f383.html'
/usr/bin/install -c -m 644 'doc/html/doxygen.css' '/usr/local/share/doc/inotify-tools/doxygen.css'
/usr/bin/install -c -m 644 'doc/html/doxygen.png' '/usr/local/share/doc/inotify-tools/doxygen.png'
/usr/bin/install -c -m 644 'doc/html/dynsections.js' '/usr/local/share/doc/inotify-tools/dynsections.js'
/usr/bin/install -c -m 644 'doc/html/files.html' '/usr/local/share/doc/inotify-tools/files.html'
/usr/bin/install -c -m 644 'doc/html/ftv2blank.png' '/usr/local/share/doc/inotify-tools/ftv2blank.png'
/usr/bin/install -c -m 644 'doc/html/ftv2cl.png' '/usr/local/share/doc/inotify-tools/ftv2cl.png'
/usr/bin/install -c -m 644 'doc/html/ftv2doc.png' '/usr/local/share/doc/inotify-tools/ftv2doc.png'
/usr/bin/install -c -m 644 'doc/html/ftv2folderclosed.png' '/usr/local/share/doc/inotify-tools/ftv2folderclosed.png'
/usr/bin/install -c -m 644 'doc/html/ftv2folderopen.png' '/usr/local/share/doc/inotify-tools/ftv2folderopen.png'
/usr/bin/install -c -m 644 'doc/html/ftv2lastnode.png' '/usr/local/share/doc/inotify-tools/ftv2lastnode.png'
/usr/bin/install -c -m 644 'doc/html/ftv2link.png' '/usr/local/share/doc/inotify-tools/ftv2link.png'
/usr/bin/install -c -m 644 'doc/html/ftv2mlastnode.png' '/usr/local/share/doc/inotify-tools/ftv2mlastnode.png'
/usr/bin/install -c -m 644 'doc/html/ftv2mnode.png' '/usr/local/share/doc/inotify-tools/ftv2mnode.png'
/usr/bin/install -c -m 644 'doc/html/ftv2mo.png' '/usr/local/share/doc/inotify-tools/ftv2mo.png'
/usr/bin/install -c -m 644 'doc/html/ftv2node.png' '/usr/local/share/doc/inotify-tools/ftv2node.png'
/usr/bin/install -c -m 644 'doc/html/ftv2ns.png' '/usr/local/share/doc/inotify-tools/ftv2ns.png'
/usr/bin/install -c -m 644 'doc/html/ftv2plastnode.png' '/usr/local/share/doc/inotify-tools/ftv2plastnode.png'
/usr/bin/install -c -m 644 'doc/html/ftv2pnode.png' '/usr/local/share/doc/inotify-tools/ftv2pnode.png'
/usr/bin/install -c -m 644 'doc/html/ftv2splitbar.png' '/usr/local/share/doc/inotify-tools/ftv2splitbar.png'
/usr/bin/install -c -m 644 'doc/html/ftv2vertline.png' '/usr/local/share/doc/inotify-tools/ftv2vertline.png'
/usr/bin/install -c -m 644 'doc/html/globals.html' '/usr/local/share/doc/inotify-tools/globals.html'
/usr/bin/install -c -m 644 'doc/html/globals_func.html' '/usr/local/share/doc/inotify-tools/globals_func.html'
/usr/bin/install -c -m 644 'doc/html/index.html' '/usr/local/share/doc/inotify-tools/index.html'
/usr/bin/install -c -m 644 'doc/html/inotifytools_8c_source.html' '/usr/local/share/doc/inotify-tools/inotifytools_8c_source.html'
/usr/bin/install -c -m 644 'doc/html/inotifytools_8h.html' '/usr/local/share/doc/inotify-tools/inotifytools_8h.html'
/usr/bin/install -c -m 644 'doc/html/inotifytools_8h_source.html' '/usr/local/share/doc/inotify-tools/inotifytools_8h_source.html'
/usr/bin/install -c -m 644 'doc/html/jquery.js' '/usr/local/share/doc/inotify-tools/jquery.js'
/usr/bin/install -c -m 644 'doc/html/nav_f.png' '/usr/local/share/doc/inotify-tools/nav_f.png'
/usr/bin/install -c -m 644 'doc/html/nav_g.png' '/usr/local/share/doc/inotify-tools/nav_g.png'
/usr/bin/install -c -m 644 'doc/html/nav_h.png' '/usr/local/share/doc/inotify-tools/nav_h.png'
/usr/bin/install -c -m 644 'doc/html/open.png' '/usr/local/share/doc/inotify-tools/open.png'
/usr/bin/install -c -m 644 'doc/html/pages.html' '/usr/local/share/doc/inotify-tools/pages.html'
/usr/bin/install -c -m 644 'doc/html/sync_off.png' '/usr/local/share/doc/inotify-tools/sync_off.png'
/usr/bin/install -c -m 644 'doc/html/sync_on.png' '/usr/local/share/doc/inotify-tools/sync_on.png'
/usr/bin/install -c -m 644 'doc/html/tab_a.png' '/usr/local/share/doc/inotify-tools/tab_a.png'
/usr/bin/install -c -m 644 'doc/html/tab_b.png' '/usr/local/share/doc/inotify-tools/tab_b.png'
/usr/bin/install -c -m 644 'doc/html/tab_h.png' '/usr/local/share/doc/inotify-tools/tab_h.png'
/usr/bin/install -c -m 644 'doc/html/tab_s.png' '/usr/local/share/doc/inotify-tools/tab_s.png'
/usr/bin/install -c -m 644 'doc/html/tabs.css' '/usr/local/share/doc/inotify-tools/tabs.css'
/usr/bin/install -c -m 644 'doc/html/todo.html' '/usr/local/share/doc/inotify-tools/todo.html'
test -z "/usr/local/include" || mkdir -p -- "/usr/local/include"
/usr/local/inotify-tools-3.13/install-sh -c -m 644 'inotifytools/inotifytools.h' '/usr/local/include/inotifytools/inotifytools.h'
/usr/local/inotify-tools-3.13/install-sh -c -m 644 'inotifytools/inotify-nosys.h' '/usr/local/include/inotifytools/inotify-nosys.h'
/usr/local/inotify-tools-3.13/install-sh -c -m 644 'inotifytools/inotify.h' '/usr/local/include/inotifytools/inotify.h'
make[4]: Leaving directory `/usr/local/inotify-tools-3.13/libinotifytools/src'
make[3]: Leaving directory `/usr/local/inotify-tools-3.13/libinotifytools/src'
make[2]: Leaving directory `/usr/local/inotify-tools-3.13/libinotifytools/src'
make[2]: Entering directory `/usr/local/inotify-tools-3.13/libinotifytools'
make[3]: Entering directory `/usr/local/inotify-tools-3.13'
make[3]: Leaving directory `/usr/local/inotify-tools-3.13'
make[3]: Entering directory `/usr/local/inotify-tools-3.13/libinotifytools'
make[4]: Entering directory `/usr/local/inotify-tools-3.13'
make[4]: Leaving directory `/usr/local/inotify-tools-3.13'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/usr/local/inotify-tools-3.13/libinotifytools'
make[2]: Leaving directory `/usr/local/inotify-tools-3.13/libinotifytools'
make[1]: Leaving directory `/usr/local/inotify-tools-3.13/libinotifytools'
Making install in src
make[1]: Entering directory `/usr/local/inotify-tools-3.13/src'
make[2]: Entering directory `/usr/local/inotify-tools-3.13'
make[2]: Leaving directory `/usr/local/inotify-tools-3.13'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotifywait.o -MD -MP -MF ".deps/inotifywait.Tpo" -c -o inotifywait.o inotifywait.c; \
then mv -f ".deps/inotifywait.Tpo" ".deps/inotifywait.Po"; else rm -f ".deps/inotifywait.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT common.o -MD -MP -MF ".deps/common.Tpo" -c -o common.o common.c; \
then mv -f ".deps/common.Tpo" ".deps/common.Po"; else rm -f ".deps/common.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -o inotifywait inotifywait.o common.o ../libinotifytools/src/libinotifytools.la
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywait inotifywait.o common.o -L/usr/local/inotify-tools-3.13/libinotifytools/src ../libinotifytools/src/.libs/libinotifytools.so -Wl,--rpath -Wl,/usr/local/lib
creating inotifywait
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotifywatch.o -MD -MP -MF ".deps/inotifywatch.Tpo" -c -o inotifywatch.o inotifywatch.c; \
then mv -f ".deps/inotifywatch.Tpo" ".deps/inotifywatch.Po"; else rm -f ".deps/inotifywatch.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -o inotifywatch inotifywatch.o common.o ../libinotifytools/src/libinotifytools.la
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywatch inotifywatch.o common.o -L/usr/local/inotify-tools-3.13/libinotifytools/src ../libinotifytools/src/.libs/libinotifytools.so -Wl,--rpath -Wl,/usr/local/lib
creating inotifywatch
make[2]: Entering directory `/usr/local/inotify-tools-3.13/src'
make[3]: Entering directory `/usr/local/inotify-tools-3.13'
make[3]: Leaving directory `/usr/local/inotify-tools-3.13'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/bin/sh ../libtool --mode=install /usr/bin/install -c 'inotifywait' '/usr/local/bin/inotifywait'
/usr/bin/install -c .libs/inotifywait /usr/local/bin/inotifywait
/bin/sh ../libtool --mode=install /usr/bin/install -c 'inotifywatch' '/usr/local/bin/inotifywatch'
/usr/bin/install -c .libs/inotifywatch /usr/local/bin/inotifywatch
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/local/inotify-tools-3.13/src'
make[1]: Leaving directory `/usr/local/inotify-tools-3.13/src'
Making install in man
make[1]: Entering directory `/usr/local/inotify-tools-3.13/man'
make[2]: Entering directory `/usr/local/inotify-tools-3.13'
make[2]: Leaving directory `/usr/local/inotify-tools-3.13'
make[2]: Entering directory `/usr/local/inotify-tools-3.13/man'
make[3]: Entering directory `/usr/local/inotify-tools-3.13'
make[3]: Leaving directory `/usr/local/inotify-tools-3.13'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/man/man1" || mkdir -p -- "/usr/local/share/man/man1"
/usr/bin/install -c -m 644 './inotifywait.1' '/usr/local/share/man/man1/inotifywait.1'
/usr/bin/install -c -m 644 './inotifywatch.1' '/usr/local/share/man/man1/inotifywatch.1'
make[2]: Leaving directory `/usr/local/inotify-tools-3.13/man'
make[1]: Leaving directory `/usr/local/inotify-tools-3.13/man'
make[1]: Entering directory `/usr/local/inotify-tools-3.13'
make[2]: Entering directory `/usr/local/inotify-tools-3.13'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/usr/local/inotify-tools-3.13'
make[1]: Leaving directory `/usr/local/inotify-tools-3.13'
[root@code inotify-tools-3.13]# ls
AUTHORS INSTALL Makefile.in aclocal.m4 config.h config.log configure install-sh ltmain.sh src
COPYING Makefile NEWS autom4te.cache config.h.in config.status configure.ac libinotifytools man stamp-h1
ChangeLog Makefile.am README config.guess config.h.in~ config.sub depcomp libtool missing
[root@code inotify-tools-3.13]# vim inotify.sh
[root@code inotify-tools-3.13]# cat inotify.sh
/usr/local/bin/inotifywait -mrq -e modify,delete,create,attrib,move /app/java_project |while read events
do
rsync -av --delete /app/java_project/ root@192.168.235.200:/backup/app1_java
echo "$(date '+%F %T') happen$events">>/var/log/rsync.log 2>&1
done
[root@code inotify-tools-3.13]# chmod +x inotify.sh
[root@code inotify-tools-3.13]# ll inotify.sh
-bash: ll: command not found
[root@code inotify-tools-3.13]# ls -l inotify.sh
-rwxr-xr-x 1 root root 268 Jul 6 17:07 inotify.sh
[root@code inotify-tools-3.13]# nohup ./inotify.sh &
[1] 44831
[root@code inotify-tools-3.13]# nohup: ignoring input and appending output to 'nohup.out'
jobs
[1]+ Running nohup ./inotify.sh &
[root@code inotify-tools-3.13]# cat /var/log/rsync.log
2025/07/06 07:36:12 [18398] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 07:36:12 [18398] building file list
2025/07/06 07:36:12 [18398] sent 664 bytes received 219 bytes total size 0
2025/07/06 08:01:37 [18802] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:01:37 [18802] building file list
2025/07/06 08:01:37 [18802] rsync error: error in file IO (code 11) at io.c(1633) [sender=3.1.2]
2025/07/06 08:02:10 [18811] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:02:10 [18811] building file list
2025/07/06 08:02:10 [18811] sent 293 bytes received 28 bytes total size 0
[root@code inotify-tools-3.13]# cd /app
[root@code app]# ls
java_project
[root@code app]# ls java_project/
aa1 aa2 aa3 file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[root@code app]# touch bb1
[root@code app]# ls
bb1 java_project
[root@code app]# cd java_project/
[root@code java_project]# ls
aa1 aa2 aa3 file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[root@code java_project]# touch bb
[root@code java_project]# ls
aa1 aa2 aa3 bb file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[1]+ Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
(wd now: /app/java_project)
[root@code java_project]# jobs
[1]+ Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
[root@code java_project]# cd /usr/local
[root@code local]# ls
apache2 apr bin etc games include inotify-tools-3.13 lib lib64 libexec mysql php sbin share src var
[root@code local]# cd inotify-tools-3.13/
[root@code inotify-tools-3.13]# ls
AUTHORS Makefile README config.h config.status depcomp libtool nohup.out
COPYING Makefile.am aclocal.m4 config.h.in config.sub inotify.sh ltmain.sh src
ChangeLog Makefile.in autom4te.cache config.h.in~ configure install-sh man stamp-h1
INSTALL NEWS config.guess config.log configure.ac libinotifytools missing
[root@code inotify-tools-3.13]# ll
-bash: ll: command not found
[root@code inotify-tools-3.13]# ls -l
total 1684
-rw-r--r-- 1 caozx26 users 39 Dec 30 2007 AUTHORS
-rw-r--r-- 1 caozx26 users 18002 Dec 30 2007 COPYING
-rw-r--r-- 1 caozx26 users 11301 Dec 30 2007 ChangeLog
-rw-r--r-- 1 caozx26 users 9498 Dec 30 2007 INSTALL
-rw-r--r-- 1 root root 19565 Jul 6 16:51 Makefile
-rw-r--r-- 1 caozx26 users 191 Dec 30 2007 Makefile.am
-rw-r--r-- 1 caozx26 users 19389 Dec 30 2007 Makefile.in
-rw-r--r-- 1 caozx26 users 48 Dec 30 2007 NEWS
-rw-r--r-- 1 caozx26 users 246 Dec 30 2007 README
-rw-r--r-- 1 caozx26 users 267482 Dec 30 2007 aclocal.m4
drwxr-xr-x 2 root root 54 Jul 6 16:52 autom4te.cache
-rwxr-xr-x 1 caozx26 users 45126 Dec 30 2007 config.guess
-rw-r--r-- 1 root root 2327 Jul 6 16:52 config.h
-rw-r--r-- 1 root root 2093 Jul 6 16:52 config.h.in
-rw-r--r-- 1 caozx26 users 2025 Dec 30 2007 config.h.in~
-rw-r--r-- 1 root root 33629 Jul 6 16:52 config.log
-rwxr-xr-x 1 root root 31400 Jul 6 16:51 config.status
-rwxr-xr-x 1 caozx26 users 32931 Dec 30 2007 config.sub
-rwxr-xr-x 1 caozx26 users 690681 Dec 30 2007 configure
-rw-r--r-- 1 caozx26 users 1829 Dec 30 2007 configure.ac
-rwxr-xr-x 1 caozx26 users 15936 Dec 30 2007 depcomp
-rwxr-xr-x 1 root root 268 Jul 6 17:07 inotify.sh
-rwxr-xr-x 1 caozx26 users 9233 Dec 30 2007 install-sh
drwxrwxrwx 3 caozx26 users 71 Jul 6 16:51 libinotifytools
-rwxr-xr-x 1 root root 230691 Jul 6 16:51 libtool
-rw-r--r-- 1 caozx26 users 201510 Dec 30 2007 ltmain.sh
drwxrwxrwx 2 caozx26 users 103 Jul 6 16:51 man
-rwxr-xr-x 1 caozx26 users 11014 Dec 30 2007 missing
-rw------- 1 root root 0 Jul 6 17:11 nohup.out
drwxrwxrwx 4 caozx26 users 259 Jul 6 16:52 src
-rw-r--r-- 1 root root 23 Jul 6 16:52 stamp-h1
[root@code inotify-tools-3.13]# nohup ./inotify.sh &
[2] 49332
[root@code inotify-tools-3.13]# nohup: ignoring input and appending output to 'nohup.out'
JOBS
-bash: JOBS: command not found
[root@code inotify-tools-3.13]# jobs
[1]+ Stopped nohup ./inotify.sh
[2]- Running nohup ./inotify.sh &
[root@code inotify-tools-3.13]# cd /app/java_project/
[root@code java_project]# ls
aa1 aa2 aa3 bb file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[root@code java_project]# cat /var/log/rsync.log
2025/07/06 07:36:12 [18398] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 07:36:12 [18398] building file list
2025/07/06 07:36:12 [18398] sent 664 bytes received 219 bytes total size 0
2025/07/06 08:01:37 [18802] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:01:37 [18802] building file list
2025/07/06 08:01:37 [18802] rsync error: error in file IO (code 11) at io.c(1633) [sender=3.1.2]
2025/07/06 08:02:10 [18811] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:02:10 [18811] building file list
2025/07/06 08:02:10 [18811] sent 293 bytes received 28 bytes total size 0
[root@code java_project]# cd /app/java_project/
[root@code java_project]# ls
aa1 aa2 aa3 bb file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[root@code java_project]# mkdir cc
[root@code java_project]# ls
aa1 aa2 aa3 bb cc file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[2]+ Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
(wd now: /app/java_project)
[root@code java_project]# cat /var/log/rsync.log
2025/07/06 07:36:12 [18398] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 07:36:12 [18398] building file list
2025/07/06 07:36:12 [18398] sent 664 bytes received 219 bytes total size 0
2025/07/06 08:01:37 [18802] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:01:37 [18802] building file list
2025/07/06 08:01:37 [18802] rsync error: error in file IO (code 11) at io.c(1633) [sender=3.1.2]
2025/07/06 08:02:10 [18811] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:02:10 [18811] building file list
2025/07/06 08:02:10 [18811] sent 293 bytes received 28 bytes total size 0
[root@code java_project]# jobs
[1]- Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
[2]+ Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
[root@code java_project]# ls
aa1 aa2 aa3 bb cc file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[root@code java_project]# cd /usr/local
-bash: $'\344\274\240cd': command not found
[root@code java_project]# cd /usr
[root@code usr]# cd local
[root@code local]# ls
apache2 apr bin etc games include inotify-tools-3.13 lib lib64 libexec mysql php sbin share src var
[root@code local]# cd inotify-tools-3.13/
[root@code inotify-tools-3.13]# ls
AUTHORS Makefile README config.h config.status depcomp libtool nohup.out
COPYING Makefile.am aclocal.m4 config.h.in config.sub inotify.sh ltmain.sh src
ChangeLog Makefile.in autom4te.cache config.h.in~ configure install-sh man stamp-h1
INSTALL NEWS config.guess config.log configure.ac libinotifytools missing
[root@code inotify-tools-3.13]# cat inotify.sh
/usr/local/bin/inotifywait -mrq -e modify,delete,create,attrib,move /app/java_project |while read events
do
rsync -av --delete /app/java_project/ root@192.168.235.200:/backup/app1_java
echo "$(date '+%F %T') happen$events">>/var/log/rsync.log 2>&1
done
[root@code inotify-tools-3.13]# cd bin
-bash: cd: bin: No such file or directory
[root@code inotify-tools-3.13]# ls
AUTHORS Makefile README config.h config.status depcomp libtool nohup.out
COPYING Makefile.am aclocal.m4 config.h.in config.sub inotify.sh ltmain.sh src
ChangeLog Makefile.in autom4te.cache config.h.in~ configure install-sh man stamp-h1
INSTALL NEWS config.guess config.log configure.ac libinotifytools missing
[root@code inotify-tools-3.13]# cd /usr/local/bin
[root@code bin]# ls
inotifywait inotifywatch pear peardev pecl phar phar.phar php php-cgi php-config phpdbg phpize
[root@code bin]# cd /usr/local
[root@code local]# ls
apache2 apr bin etc games include inotify-tools-3.13 lib lib64 libexec mysql php sbin share src var
[root@code local]# cd inotify-tools-3.13/
[root@code inotify-tools-3.13]# ls
AUTHORS Makefile README config.h config.status depcomp libtool nohup.out
COPYING Makefile.am aclocal.m4 config.h.in config.sub inotify.sh ltmain.sh src
ChangeLog Makefile.in autom4te.cache config.h.in~ configure install-sh man stamp-h1
INSTALL NEWS config.guess config.log configure.ac libinotifytools missing
[root@code inotify-tools-3.13]# jobs
[1]- Stopped nohup ./inotify.sh
[2]+ Stopped nohup ./inotify.sh
[root@code inotify-tools-3.13]# cat /var/rsyncd.log
cat: /var/rsyncd.log: No such file or directory
[root@code inotify-tools-3.13]# cat /var/log/rsync.log
2025/07/06 07:36:12 [18398] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 07:36:12 [18398] building file list
2025/07/06 07:36:12 [18398] sent 664 bytes received 219 bytes total size 0
2025/07/06 08:01:37 [18802] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:01:37 [18802] building file list
2025/07/06 08:01:37 [18802] rsync error: error in file IO (code 11) at io.c(1633) [sender=3.1.2]
2025/07/06 08:02:10 [18811] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:02:10 [18811] building file list
2025/07/06 08:02:10 [18811] sent 293 bytes received 28 bytes total size 0
[root@code inotify-tools-3.13]# ls
AUTHORS Makefile README config.h config.status depcomp libtool nohup.out
COPYING Makefile.am aclocal.m4 config.h.in config.sub inotify.sh ltmain.sh src
ChangeLog Makefile.in autom4te.cache config.h.in~ configure install-sh man stamp-h1
INSTALL NEWS config.guess config.log configure.ac libinotifytools missing
[root@code inotify-tools-3.13]# mv inotify.sh ./
mv: 'inotify.sh' and './inotify.sh' are the same file
[root@code inotify-tools-3.13]# cd ./
[root@code inotify-tools-3.13]# ls
AUTHORS Makefile README config.h config.status depcomp libtool nohup.out
COPYING Makefile.am aclocal.m4 config.h.in config.sub inotify.sh ltmain.sh src
ChangeLog Makefile.in autom4te.cache config.h.in~ configure install-sh man stamp-h1
INSTALL NEWS config.guess config.log configure.ac libinotifytools missing
[root@code inotify-tools-3.13]# cd /
[root@code /]# ls
app boot etc inotify-tools-3.13.tar.gz lib64 mnt proc run srv tmp var
bin dev home lib media opt root sbin sys usr www
[root@code /]# cd ~
[root@code ~]# ls
1828.txt apr-1.5.2.tar.bz2 httpd-2.4.37 mysql-5.6.31 php-7.2.17.tar.xz
anaconda-ks.cfg apr-util-1.5.4 httpd-2.4.37.tar.bz2 mysql-5.6.31.tar.gz wordpress-4.7.3-zh_CN.tar.gz
apr-1.5.2 apr-util-1.5.4.tar.bz2 initial-setup-ks.cfg php-7.2.17
[root@code ~]# cd /
[root@code /]# ls
app boot etc inotify-tools-3.13.tar.gz lib64 mnt proc run srv tmp var
bin dev home lib media opt root sbin sys usr www
[root@code /]# cd /usr/local/inotify-tools-3.13/
[root@code inotify-tools-3.13]# ls
AUTHORS Makefile README config.h config.status depcomp libtool nohup.out
COPYING Makefile.am aclocal.m4 config.h.in config.sub inotify.sh ltmain.sh src
ChangeLog Makefile.in autom4te.cache config.h.in~ configure install-sh man stamp-h1
INSTALL NEWS config.guess config.log configure.ac libinotifytools missing
[root@code inotify-tools-3.13]# cp inotify.sh ./
cp: 'inotify.sh' and './inotify.sh' are the same file
[root@code inotify-tools-3.13]# cp inotify.sh /root
[root@code inotify-tools-3.13]# cd /root
[root@code ~]# ls
1828.txt apr-1.5.2.tar.bz2 httpd-2.4.37 inotify.sh php-7.2.17
anaconda-ks.cfg apr-util-1.5.4 httpd-2.4.37.tar.bz2 mysql-5.6.31 php-7.2.17.tar.xz
apr-1.5.2 apr-util-1.5.4.tar.bz2 initial-setup-ks.cfg mysql-5.6.31.tar.gz wordpress-4.7.3-zh_CN.tar.gz
[root@code ~]# ll
-bash: ll: command not found
[root@code ~]# ls -l
total 64992
-rw-r--r-- 1 caozx26 caozx26 5242880 Jun 15 18:31 1828.txt
-rw-------. 1 root root 1813 May 28 03:38 anaconda-ks.cfg
drwxr-xr-x. 28 caozx26 caozx26 4096 Jul 2 20:21 apr-1.5.2
-rw-r--r--. 1 root root 826885 Jul 2 19:41 apr-1.5.2.tar.bz2
drwxr-xr-x. 20 caozx26 caozx26 4096 Jul 2 20:24 apr-util-1.5.4
-rw-r--r--. 1 root root 694427 Jul 2 19:41 apr-util-1.5.4.tar.bz2
drwxr-sr-x. 12 root dip 4096 Jul 2 20:34 httpd-2.4.37
-rw-r--r--. 1 root root 7031632 Jul 2 19:41 httpd-2.4.37.tar.bz2
-rw-r--r--. 1 root root 1861 May 28 03:49 initial-setup-ks.cfg
-rwxr-xr-x 1 root root 268 Jul 6 17:56 inotify.sh
drwxr-xr-x. 35 7161 31415 4096 Jul 2 20:08 mysql-5.6.31
-rw-r--r--. 1 root root 32098698 Jul 2 19:41 mysql-5.6.31.tar.gz
drwxrwxr-x. 18 root root 4096 Jul 2 21:11 php-7.2.17
-rw-r--r--. 1 root root 12144120 Jul 2 19:41 php-7.2.17.tar.xz
-rw-r--r--. 1 root root 8473348 Jul 2 19:41 wordpress-4.7.3-zh_CN.tar.gz
[root@code ~]# cat rsync.sh
cat: rsync.sh: No such file or directory
[root@code ~]# cat inotify.sh
/usr/local/bin/inotifywait -mrq -e modify,delete,create,attrib,move /app/java_project |while read events
do
rsync -av --delete /app/java_project/ root@192.168.235.200:/backup/app1_java
echo "$(date '+%F %T') happen$events">>/var/log/rsync.log 2>&1
done
[root@code ~]# cd /usr/local/inotify-tools-3.13/
[root@code inotify-tools-3.13]# ls
AUTHORS Makefile README config.h config.status depcomp libtool nohup.out
COPYING Makefile.am aclocal.m4 config.h.in config.sub inotify.sh ltmain.sh src
ChangeLog Makefile.in autom4te.cache config.h.in~ configure install-sh man stamp-h1
INSTALL NEWS config.guess config.log configure.ac libinotifytools missing
[root@code inotify-tools-3.13]# rm -f inotify.sh
[root@code inotify-tools-3.13]# cd ~
[root@code ~]# ls
1828.txt apr-1.5.2.tar.bz2 httpd-2.4.37 inotify.sh php-7.2.17
anaconda-ks.cfg apr-util-1.5.4 httpd-2.4.37.tar.bz2 mysql-5.6.31 php-7.2.17.tar.xz
apr-1.5.2 apr-util-1.5.4.tar.bz2 initial-setup-ks.cfg mysql-5.6.31.tar.gz wordpress-4.7.3-zh_CN.tar.gz
[root@code ~]# nohup ./inotify.sh &
[3] 65246
[root@code ~]# nohup: ignoring input and appending output to 'nohup.out'
jobs
[1]- Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
[2]+ Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
[3] Running nohup ./inotify.sh &
[root@code ~]# cat /var/l
lib/ local/ lock/ log/
[root@code ~]# cat /var/log/rsync.log
2025/07/06 07:36:12 [18398] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 07:36:12 [18398] building file list
2025/07/06 07:36:12 [18398] sent 664 bytes received 219 bytes total size 0
2025/07/06 08:01:37 [18802] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:01:37 [18802] building file list
2025/07/06 08:01:37 [18802] rsync error: error in file IO (code 11) at io.c(1633) [sender=3.1.2]
2025/07/06 08:02:10 [18811] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:02:10 [18811] building file list
2025/07/06 08:02:10 [18811] sent 293 bytes received 28 bytes total size 0
[root@code ~]# cd /app/java_project/
[root@code java_project]# ls
aa1 aa2 aa3 bb cc file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[root@code java_project]# mkdir dd
[root@code java_project]# ls
aa1 aa2 aa3 bb cc dd file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[3]+ Stopped nohup ./inotify.sh (wd: ~)
(wd now: /app/java_project)
[root@code java_project]# cat ./inotify.sh
cat: ./inotify.sh: No such file or directory
[root@code java_project]# cd ./
[root@code java_project]# cd /
[root@code /]# ls
app boot etc inotify-tools-3.13.tar.gz lib64 mnt proc run srv tmp var
bin dev home lib media opt root sbin sys usr www
[root@code /]# cd ~
[root@code ~]# ls
1828.txt apr-1.5.2.tar.bz2 httpd-2.4.37 inotify.sh nohup.out wordpress-4.7.3-zh_CN.tar.gz
anaconda-ks.cfg apr-util-1.5.4 httpd-2.4.37.tar.bz2 mysql-5.6.31 php-7.2.17
apr-1.5.2 apr-util-1.5.4.tar.bz2 initial-setup-ks.cfg mysql-5.6.31.tar.gz php-7.2.17.tar.xz
[root@code ~]# cat inotify.sh
/usr/local/bin/inotifywait -mrq -e modify,delete,create,attrib,move /app/java_project |while read events
do
rsync -av --delete /app/java_project/ root@192.168.235.200:/backup/app1_java
echo "$(date '+%F %T') happen$events">>/var/log/rsync.log 2>&1
done
[root@code ~]# cat /var/log/rsync.log
2025/07/06 07:36:12 [18398] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 07:36:12 [18398] building file list
2025/07/06 07:36:12 [18398] sent 664 bytes received 219 bytes total size 0
2025/07/06 08:01:37 [18802] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:01:37 [18802] building file list
2025/07/06 08:01:37 [18802] rsync error: error in file IO (code 11) at io.c(1633) [sender=3.1.2]
2025/07/06 08:02:10 [18811] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:02:10 [18811] building file list
2025/07/06 08:02:10 [18811] sent 293 bytes received 28 bytes total size 0
[root@code ~]# jobs
[1] Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
[2]- Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
[3]+ Stopped nohup ./inotify.sh
[root@code ~]# cat /proc/sys/fs/inotify/max_user_watches
8192
[root@code ~]# rsync -av --delete /app/java_project/ root@192.168.235.200:/backup/app1_java
The authenticity of host '192.168.235.200 (192.168.235.200)' can't be established.
ECDSA key fingerprint is SHA256:khlI72dk6xtaBObBlZbZT4+Z+s+1c1tjmHg3nZVV8G4.
ECDSA key fingerprint is MD5:59:e9:91:40:a4:ca:21:a9:c2:92:39:b8:d4:7f:5f:2f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.235.200' (ECDSA) to the list of known hosts.
root@192.168.235.200's password:
sending incremental file list
./
bb
cc/
dd/
sent 400 bytes received 53 bytes 21.07 bytes/sec
total size is 0 speedup is 0.00
[root@code ~]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:Gq/FiHlfI9ahe5CU/rjDncGVRYT5w3vwcVr32+6GPDo root@code
The key's randomart image is:
+---[RSA 2048]----+
| =o |
| o . |
| . = |
| o o =.+|
| .oSo.. B=|
| o *+oo. o +|
| o +.B=+o . oo|
| . =++=.E +.o|
| . ++ .o =o|
+----[SHA256]-----+
[root@code ~]# ssh-copy-id root@192.168.235.200
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@192.168.235.200's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'root@192.168.235.200'"
and check to make sure that only the key(s) you wanted were added.
[root@code ~]# rsync -av --delete /app/java_project/ root@192.168.235.200:/backup/app1_java
sending incremental file list
sent 344 bytes received 17 bytes 722.00 bytes/sec
total size is 0 speedup is 0.00
[root@code ~]# cd /app/java_project/
[root@code java_project]# ls
aa1 aa2 aa3 bb cc dd file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[root@code java_project]# mkdir ee
[root@code java_project]# cat /etc/lo
locale.conf localtime login.defs logrotate.conf logrotate.d/
[root@code java_project]# cat /var/log/rsync.log
2025/07/06 07:36:12 [18398] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 07:36:12 [18398] building file list
2025/07/06 07:36:12 [18398] sent 664 bytes received 219 bytes total size 0
2025/07/06 08:01:37 [18802] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:01:37 [18802] building file list
2025/07/06 08:01:37 [18802] rsync error: error in file IO (code 11) at io.c(1633) [sender=3.1.2]
2025/07/06 08:02:10 [18811] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:02:10 [18811] building file list
2025/07/06 08:02:10 [18811] sent 293 bytes received 28 bytes total size 0
[root@code java_project]# ntpdata cn.ntp.org.cn
-bash: ntpdata: command not found
[root@code java_project]# ntpdate cn.ntp.org.cn
6 Jul 18:27:21 ntpdate[72177]: no server suitable for synchronization found
[root@code java_project]# cd /app/java_project/
[root@code java_project]# ls
aa1 aa2 aa3 bb cc dd ee file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[root@code java_project]# mkdir ff
[root@code java_project]# ;s
-bash: syntax error near unexpected token `;'
[root@code java_project]# ls
aa1 aa3 cc ee file1.java file3.java file5.java file7.java file9.java
aa2 bb dd ff file2.java file4.java file6.java file8.java
[root@code java_project]# cat /var/log/rsync.log
2025/07/06 07:36:12 [18398] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 07:36:12 [18398] building file list
2025/07/06 07:36:12 [18398] sent 664 bytes received 219 bytes total size 0
2025/07/06 08:01:37 [18802] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:01:37 [18802] building file list
2025/07/06 08:01:37 [18802] rsync error: error in file IO (code 11) at io.c(1633) [sender=3.1.2]
2025/07/06 08:02:10 [18811] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:02:10 [18811] building file list
2025/07/06 08:02:10 [18811] sent 293 bytes received 28 bytes total size 0
[root@code java_project]# cd ~
[root@code ~]# ls
1828.txt apr-1.5.2.tar.bz2 httpd-2.4.37 inotify.sh nohup.out wordpress-4.7.3-zh_CN.tar.gz
anaconda-ks.cfg apr-util-1.5.4 httpd-2.4.37.tar.bz2 mysql-5.6.31 php-7.2.17
apr-1.5.2 apr-util-1.5.4.tar.bz2 initial-setup-ks.cfg mysql-5.6.31.tar.gz php-7.2.17.tar.xz
[root@code ~]# cat inotify.sh
/usr/local/bin/inotifywait -mrq -e modify,delete,create,attrib,move /app/java_project |while read events
do
rsync -av --delete /app/java_project/ root@192.168.235.200:/backup/app1_java
echo "$(date '+%F %T') happen$events">>/var/log/rsync.log 2>&1
done
[root@code ~]# cd /usr/local/bin
[root@code bin]# ls
inotifywait inotifywatch pear peardev pecl phar phar.phar php php-cgi php-config phpdbg phpize
[root@code bin]# jobs
[1] Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
[2]- Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
[3]+ Stopped nohup ./inotify.sh (wd: ~)
[root@code bin]# cd /usr/local/
[root@code local]# ls
apache2 apr bin etc games include inotify-tools-3.13 lib lib64 libexec mysql php sbin share src var
[root@code local]# cd bin
[root@code bin]# ls
inotifywait inotifywatch pear peardev pecl phar phar.phar php php-cgi php-config phpdbg phpize
[root@code bin]# cat ./inotify.sh
cat: ./inotify.sh: No such file or directory
[root@code bin]# cat /root/inotify.sh
/usr/local/bin/inotifywait -mrq -e modify,delete,create,attrib,move /app/java_project |while read events
do
rsync -av --delete /app/java_project/ root@192.168.235.200:/backup/app1_java
echo "$(date '+%F %T') happen$events">>/var/log/rsync.log 2>&1
done
[root@code bin]# which inotifywait
/usr/local/bin/inotifywait
[root@code bin]#/usr/local/bin/inotifywait -mrq -e modify,delete,create,attrib,move /app/java_project
-bash: ▒/usr/local/bin/inotifywait: No such file or directory
[root@code bin]# /usr/local/bin/inotifywait -mrq -e modify,delete,create,attrib,move /app/java_project
^C
[root@code bin]# rsync -av --delete /app/java_project/ root@192.168.235.200:/backup/app1_java
sending incremental file list
./
ee/
ff/
sent 397 bytes received 32 bytes 286.00 bytes/sec
total size is 0 speedup is 0.00
[root@code bin]# echo "$(date '+%F %T')happen$events">>/var/log/rsync.log 2>&1
[root@code bin]# cat /var/log/rsync.log
2025/07/06 07:36:12 [18398] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 07:36:12 [18398] building file list
2025/07/06 07:36:12 [18398] sent 664 bytes received 219 bytes total size 0
2025/07/06 08:01:37 [18802] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:01:37 [18802] building file list
2025/07/06 08:01:37 [18802] rsync error: error in file IO (code 11) at io.c(1633) [sender=3.1.2]
2025/07/06 08:02:10 [18811] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:02:10 [18811] building file list
2025/07/06 08:02:10 [18811] sent 293 bytes received 28 bytes total size 0
2025-07-06 18:58:44happen
[root@code bin]# jobs
[1] Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
[2]- Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
[3]+ Stopped nohup ./inotify.sh (wd: ~)
[root@code bin]# cd /usr/local
[root@code local]# ls
apache2 apr bin etc games include inotify-tools-3.13 lib lib64 libexec mysql php sbin share src var
[root@code local]# cd inotify-tools-3.13/
[root@code inotify-tools-3.13]# ls
AUTHORS INSTALL Makefile.in aclocal.m4 config.h config.log configure install-sh ltmain.sh nohup.out
COPYING Makefile NEWS autom4te.cache config.h.in config.status configure.ac libinotifytools man src
ChangeLog Makefile.am README config.guess config.h.in~ config.sub depcomp libtool missing stamp-h1
[root@code inotify-tools-3.13]# cat nohup.out
[root@code inotify-tools-3.13]# rm -f nohup.out
[root@code inotify-tools-3.13]# cd /
[root@code /]# ls
app boot etc inotify-tools-3.13.tar.gz lib64 mnt proc run srv tmp var
bin dev home lib media opt root sbin sys usr www
[root@code /]# cd ~
[root@code ~]# ls
1828.txt apr-1.5.2.tar.bz2 httpd-2.4.37 inotify.sh nohup.out wordpress-4.7.3-zh_CN.tar.gz
anaconda-ks.cfg apr-util-1.5.4 httpd-2.4.37.tar.bz2 mysql-5.6.31 php-7.2.17
apr-1.5.2 apr-util-1.5.4.tar.bz2 initial-setup-ks.cfg mysql-5.6.31.tar.gz php-7.2.17.tar.xz
[root@code ~]# cat nohup.out
[root@code ~]# nohup ./inotify.sh &
[4] 76051
[root@code ~]# nohup: ignoring input and appending output to 'nohup.out'
jobs
[1] Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
[2]- Stopped nohup ./inotify.sh (wd: /usr/local/inotify-tools-3.13)
[3]+ Stopped nohup ./inotify.sh
[4] Running nohup ./inotify.sh &
[root@code ~]# cd /app/java_project/
[root@code java_project]# mkdir gg
[root@code java_project]# ls
aa1 aa3 cc ee file1.java file3.java file5.java file7.java file9.java
aa2 bb dd ff file2.java file4.java file6.java file8.java gg
[root@code java_project]# cat /var/log/rsync.log
2025/07/06 07:36:12 [18398] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 07:36:12 [18398] building file list
2025/07/06 07:36:12 [18398] sent 664 bytes received 219 bytes total size 0
2025/07/06 08:01:37 [18802] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:01:37 [18802] building file list
2025/07/06 08:01:37 [18802] rsync error: error in file IO (code 11) at io.c(1633) [sender=3.1.2]
2025/07/06 08:02:10 [18811] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:02:10 [18811] building file list
2025/07/06 08:02:10 [18811] sent 293 bytes received 28 bytes total size 0
2025-07-06 18:58:44happen
2025-07-06 19:04:55 happen/app/java_project/ CREATE,ISDIR gg
[root@code java_project]# cat /etc/rsyncd.conf
# /etc/rsyncd: configuration file for rsync daemon mode
# See rsyncd.conf man page for more options.
# configuration example:
# uid = nobody
# gid = nobody
# use chroot = yes
# max connections = 4
# pid file = /var/run/rsyncd.pid
# exclude = lost+found/
# transfer logging = yes
# timeout = 900
# ignore nonreadable = yes
# dont compress = *.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2
# [ftp]
# path = /home/ftp
# comment = ftp export a
[app]
path=/app/java_project
log file=/var/log/rsync.log
[root@code java_project]# vim /etc/rsyncd.conf
[root@code java_project]# cat /etc/rsyncd.conf
# /etc/rsyncd: configuration file for rsync daemon mode
# See rsyncd.conf man page for more options.
# configuration example:
# uid = nobody
# gid = nobody
# use chroot = yes
# max connections = 4
# pid file = /var/run/rsyncd.pid
# exclude = lost+found/
# transfer logging = yes
# timeout = 900
# ignore nonreadable = yes
# dont compress = *.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2
# [ftp]
# path = /home/ftp
# comment = ftp export a
[app]
path=/app/java_project
log file=/var/log/rsync.log
authusers=user1,user2
secrets file=/etc/rsyncd.secrets
[root@code java_project]# vim /etc/rsyncd.conf
[root@code java_project]# cat /etc/rsyncd.conf
# /etc/rsyncd: configuration file for rsync daemon mode
# See rsyncd.conf man page for more options.
# configuration example:
# uid = nobody
# gid = nobody
# use chroot = yes
# max connections = 4
# pid file = /var/run/rsyncd.pid
# exclude = lost+found/
# transfer logging = yes
# timeout = 900
# ignore nonreadable = yes
# dont compress = *.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2
# [ftp]
# path = /home/ftp
# comment = ftp export a
[app]
path=/app/java_project
log file=/var/log/rsync.log
auth users = user1,user2
secrets file = /etc/rsyncd.secrets
[root@code java_project]# cd /etc
[root@code etc]# vim rsyncd.secrets
[root@code etc]# cat rsyncd.secrets
user1:123
user2:123
[root@code etc]# ls -l rsyncd.secrets
-rw-r--r-- 1 root root 20 Jul 6 19:27 rsyncd.secrets
[root@code etc]# chmod 600 /etc/rsyncd.secrets
[root@code etc]# ls -l rsyncd.secrets
-rw------- 1 root root 20 Jul 6 19:27 rsyncd.secrets
[root@code etc]# systemctl restart rsyncd
[root@code etc]# systemctl status rsyncd
● rsyncd.service - fast remote file copy program daemon
Loaded: loaded (/usr/lib/systemd/system/rsyncd.service; disabled; vendor preset: disabled)
Active: active (running) since Sun 2025-07-06 19:28:39 CST; 10min ago
Main PID: 84617 (rsync)
Tasks: 1
CGroup: /system.slice/rsyncd.service
└─84617 /usr/bin/rsync --daemon --no-detach
Jul 06 19:28:39 code systemd[1]: Started fast remote file copy program daemon.
Jul 06 19:28:39 code rsyncd[84617]: rsyncd version 3.1.2 starting, listening on port 873
Jul 06 19:37:02 code rsyncd[85251]: name lookup failed for 192.168.235.200: Name or service not known
Jul 06 19:37:02 code rsyncd[85251]: connect from UNKNOWN (192.168.235.200)
[root@code etc]# cat /var/log/rsync.log
2025/07/06 07:36:12 [18398] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 07:36:12 [18398] building file list
2025/07/06 07:36:12 [18398] sent 664 bytes received 219 bytes total size 0
2025/07/06 08:01:37 [18802] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:01:37 [18802] building file list
2025/07/06 08:01:37 [18802] rsync error: error in file IO (code 11) at io.c(1633) [sender=3.1.2]
2025/07/06 08:02:10 [18811] rsync on app/ from UNKNOWN (192.168.235.200)
2025/07/06 08:02:10 [18811] building file list
2025/07/06 08:02:10 [18811] sent 293 bytes received 28 bytes total size 0
2025-07-06 18:58:44happen
2025-07-06 19:04:55 happen/app/java_project/ CREATE,ISDIR gg
2025/07/06 11:47:21 [87626] rsync on app/ from user1@UNKNOWN (192.168.235.200)
2025/07/06 11:47:21 [87626] building file list
2025/07/06 11:47:21 [87626] sent 416 bytes received 33 bytes total size 0
[root@code etc]# yum install xinetd -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package xinetd.x86_64 2:2.3.15-14.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================================
Installing:
xinetd x86_64 2:2.3.15-14.el7 local 128 k
Transaction Summary
==========================================================================================================================================
Install 1 Package
Total download size: 128 k
Installed size: 261 k
Downloading packages:
y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 2:xinetd-2.3.15-14.el7.x86_64 1/1
Verifying : 2:xinetd-2.3.15-14.el7.x86_64 1/1
Installed:
xinetd.x86_64 2:2.3.15-14.el7
Complete!
[root@code etc]# y
-bash: y: command not found
[root@code etc]# rpm -ql xinetd
/etc/sysconfig/xinetd
/etc/xinetd.conf
/etc/xinetd.d/chargen-dgram
/etc/xinetd.d/chargen-stream
/etc/xinetd.d/daytime-dgram
/etc/xinetd.d/daytime-stream
/etc/xinetd.d/discard-dgram
/etc/xinetd.d/discard-stream
/etc/xinetd.d/echo-dgram
/etc/xinetd.d/echo-stream
/etc/xinetd.d/tcpmux-server
/etc/xinetd.d/time-dgram
/etc/xinetd.d/time-stream
/usr/lib/systemd/system/xinetd.service
/usr/sbin/xinetd
/usr/share/doc/xinetd-2.3.15
/usr/share/doc/xinetd-2.3.15/CHANGELOG
/usr/share/doc/xinetd-2.3.15/COPYRIGHT
/usr/share/doc/xinetd-2.3.15/README
/usr/share/doc/xinetd-2.3.15/empty.conf
/usr/share/doc/xinetd-2.3.15/sample.conf
/usr/share/man/man5/xinetd.conf.5.gz
/usr/share/man/man5/xinetd.log.5.gz
/usr/share/man/man8/xinetd.8.gz
[root@code etc]# cat /etc/xinetd.conf
#
# This is the master xinetd configuration file. Settings in the
# default section will be inherited by all service configurations
# unless explicitly overridden in the service configuration. See
# xinetd.conf in the man pages for a more detailed explanation of
# these attributes.
defaults
{
# The next two items are intended to be a quick access place to
# temporarily enable or disable services.
#
# enabled =
# disabled =
# Define general logging characteristics.
log_type = SYSLOG daemon info
log_on_failure = HOST
log_on_success = PID HOST DURATION EXIT
# Define access restriction defaults
#
# no_access =
# only_from =
# max_load = 0
cps = 50 10
instances = 50
per_source = 10
# Address and networking defaults
#
# bind =
# mdns = yes
v6only = no
# setup environmental attributes
#
# passenv =
groups = yes
umask = 002
# Generally, banners are not used. This sets up their global defaults
#
# banner =
# banner_fail =
# banner_success =
}
includedir /etc/xinetd.d
[root@code etc]# cat /etc/xinetd.d
cat: /etc/xinetd.d: Is a directory
[root@code etc]# cd /etc/xinetd.d
[root@code xinetd.d]# ls
chargen-dgram daytime-dgram discard-dgram echo-dgram tcpmux-server time-stream
chargen-stream daytime-stream discard-stream echo-stream time-dgram
[root@code xinetd.d]# vim rsync
[root@code xinetd.d]# cat rsync
service rsync
{
disable = no
flags = IPV6
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
log_on_failure += USERID
}
[root@code xinetd.d]# pkill rsync
[root@code xinetd.d]# systemctl restart xinetd
[root@code xinetd.d]# ss -naltp| grep 873
-bash: $'\350\277\207grep': command not found
[root@code xinetd.d]# ss -naltp| grep 873
-bash: $'\350\277grep': command not found
[root@code xinetd.d]# ss -naltp|grep 873
-bash: $'\350grep': command not found
[root@code xinetd.d]# ss -naltp |grep 873
LISTEN 0 64 [::]:873 [::]:* users:(("xinetd",pid=96709,fd=5))
[root@code xinetd.d]#
bash
[root@code xinetd.d]# yum install vsftpd
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
local | 3.6 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.x86_64 0:3.0.2-28.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================================
Installing:
vsftpd x86_64 3.0.2-28.el7 local 172 k
Transaction Summary
==========================================================================================================================================
Install 1 Package
Total download size: 172 k
Installed size: 353 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : vsftpd-3.0.2-28.el7.x86_64 1/1
Verifying : vsftpd-3.0.2-28.el7.x86_64 1/1
Installed:
vsftpd.x86_64 0:3.0.2-28.el7
Complete!
[root@code xinetd.d]# systemctl start vsftpd
[root@code xinetd.d]# systemctl enable vsftpd
Created symlink from /etc/systemd/system/multi-user.target.wants/vsftpd.service to /usr/lib/systemd/system/vsftpd.service.
[root@code xinetd.d]# ifcfg ens33
Missing IP address argument.
[root@code xinetd.d]# ifcfg ens34
Missing IP address argument.
[root@code xinetd.d]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:2a:70:8a brd ff:ff:ff:ff:ff:ff
inet 192.168.235.5/24 brd 192.168.235.255 scope global ens33
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fe2a:708a/64 scope link
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:5b:77:d5 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000
link/ether 52:54:00:5b:77:d5 brd ff:ff:ff:ff:ff:ff
[root@code xinetd.d]# ifconfig ens33
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.235.5 netmask 255.255.255.0 broadcast 192.168.235.255
inet6 fe80::20c:29ff:fe2a:708a prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:2a:70:8a txqueuelen 1000 (Ethernet)
RX packets 78584 bytes 13587068 (12.9 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 121253 bytes 46341407 (44.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@code xinetd.d]# rpm -ql vsftpd
/etc/logrotate.d/vsftpd
/etc/pam.d/vsftpd
/etc/vsftpd
/etc/vsftpd/ftpusers
/etc/vsftpd/user_list
/etc/vsftpd/vsftpd.conf
/etc/vsftpd/vsftpd_conf_migrate.sh
/usr/lib/systemd/system-generators/vsftpd-generator
/usr/lib/systemd/system/vsftpd.service
/usr/lib/systemd/system/vsftpd.target
/usr/lib/systemd/system/vsftpd@.service
/usr/sbin/vsftpd
/usr/share/doc/vsftpd-3.0.2
/usr/share/doc/vsftpd-3.0.2/AUDIT
/usr/share/doc/vsftpd-3.0.2/BENCHMARKS
/usr/share/doc/vsftpd-3.0.2/BUGS
/usr/share/doc/vsftpd-3.0.2/COPYING
/usr/share/doc/vsftpd-3.0.2/Changelog
/usr/share/doc/vsftpd-3.0.2/EXAMPLE
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/INTERNET_SITE
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/INTERNET_SITE/README
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/INTERNET_SITE/README.configuration
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/INTERNET_SITE/vsftpd.conf
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/INTERNET_SITE/vsftpd.xinetd
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/INTERNET_SITE_NOINETD
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/INTERNET_SITE_NOINETD/README
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/INTERNET_SITE_NOINETD/README.configuration
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/INTERNET_SITE_NOINETD/vsftpd.conf
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/PER_IP_CONFIG
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/PER_IP_CONFIG/README
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/PER_IP_CONFIG/README.configuration
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/PER_IP_CONFIG/hosts.allow
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/README
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_HOSTS
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_HOSTS/README
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS/README
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS/README.configuration
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS/logins.txt
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS/vsftpd.conf
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS/vsftpd.pam
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS_2
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS_2/README
/usr/share/doc/vsftpd-3.0.2/FAQ
/usr/share/doc/vsftpd-3.0.2/INSTALL
/usr/share/doc/vsftpd-3.0.2/LICENSE
/usr/share/doc/vsftpd-3.0.2/README
/usr/share/doc/vsftpd-3.0.2/README.security
/usr/share/doc/vsftpd-3.0.2/REWARD
/usr/share/doc/vsftpd-3.0.2/SECURITY
/usr/share/doc/vsftpd-3.0.2/SECURITY/DESIGN
/usr/share/doc/vsftpd-3.0.2/SECURITY/IMPLEMENTATION
/usr/share/doc/vsftpd-3.0.2/SECURITY/OVERVIEW
/usr/share/doc/vsftpd-3.0.2/SECURITY/TRUST
/usr/share/doc/vsftpd-3.0.2/SIZE
/usr/share/doc/vsftpd-3.0.2/SPEED
/usr/share/doc/vsftpd-3.0.2/TODO
/usr/share/doc/vsftpd-3.0.2/TUNING
/usr/share/doc/vsftpd-3.0.2/vsftpd.xinetd
/usr/share/man/man5/vsftpd.conf.5.gz
/usr/share/man/man8/vsftpd.8.gz
/var/ftp
/var/ftp/pub
[root@code xinetd.d]# ftp kefu@192.168.235.200
-bash: ftp: command not found
[root@code xinetd.d]# rpm -ql vsftpd
/etc/logrotate.d/vsftpd
/etc/pam.d/vsftpd
/etc/vsftpd
/etc/vsftpd/ftpusers
/etc/vsftpd/user_list
/etc/vsftpd/vsftpd.conf
/etc/vsftpd/vsftpd_conf_migrate.sh
/usr/lib/systemd/system-generators/vsftpd-generator
/usr/lib/systemd/system/vsftpd.service
/usr/lib/systemd/system/vsftpd.target
/usr/lib/systemd/system/vsftpd@.service
/usr/sbin/vsftpd
/usr/share/doc/vsftpd-3.0.2
/usr/share/doc/vsftpd-3.0.2/AUDIT
/usr/share/doc/vsftpd-3.0.2/BENCHMARKS
/usr/share/doc/vsftpd-3.0.2/BUGS
/usr/share/doc/vsftpd-3.0.2/COPYING
/usr/share/doc/vsftpd-3.0.2/Changelog
/usr/share/doc/vsftpd-3.0.2/EXAMPLE
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/INTERNET_SITE
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/INTERNET_SITE/README
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/INTERNET_SITE/README.configuration
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/INTERNET_SITE/vsftpd.conf
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/INTERNET_SITE/vsftpd.xinetd
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/INTERNET_SITE_NOINETD
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/INTERNET_SITE_NOINETD/README
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/INTERNET_SITE_NOINETD/README.configuration
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/INTERNET_SITE_NOINETD/vsftpd.conf
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/PER_IP_CONFIG
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/PER_IP_CONFIG/README
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/PER_IP_CONFIG/README.configuration
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/PER_IP_CONFIG/hosts.allow
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/README
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_HOSTS
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_HOSTS/README
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS/README
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS/README.configuration
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS/logins.txt
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS/vsftpd.conf
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS/vsftpd.pam
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS_2
/usr/share/doc/vsftpd-3.0.2/EXAMPLE/VIRTUAL_USERS_2/README
/usr/share/doc/vsftpd-3.0.2/FAQ
/usr/share/doc/vsftpd-3.0.2/INSTALL
/usr/share/doc/vsftpd-3.0.2/LICENSE
/usr/share/doc/vsftpd-3.0.2/README
/usr/share/doc/vsftpd-3.0.2/README.security
/usr/share/doc/vsftpd-3.0.2/REWARD
/usr/share/doc/vsftpd-3.0.2/SECURITY
/usr/share/doc/vsftpd-3.0.2/SECURITY/DESIGN
/usr/share/doc/vsftpd-3.0.2/SECURITY/IMPLEMENTATION
/usr/share/doc/vsftpd-3.0.2/SECURITY/OVERVIEW
/usr/share/doc/vsftpd-3.0.2/SECURITY/TRUST
/usr/share/doc/vsftpd-3.0.2/SIZE
/usr/share/doc/vsftpd-3.0.2/SPEED
/usr/share/doc/vsftpd-3.0.2/TODO
/usr/share/doc/vsftpd-3.0.2/TUNING
/usr/share/doc/vsftpd-3.0.2/vsftpd.xinetd
/usr/share/man/man5/vsftpd.conf.5.gz
/usr/share/man/man8/vsftpd.8.gz
/var/ftp
/var/ftp/pub
[root@code xinetd.d]# ifconfig ens33
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.235.5 netmask 255.255.255.0 broadcast 192.168.235.255
inet6 fe80::20c:29ff:fe2a:708a prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:2a:70:8a txqueuelen 1000 (Ethernet)
RX packets 79313 bytes 13644918 (13.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 122291 bytes 46741627 (44.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@code xinetd.d]# ftp 192.168.235.200
-bash: ftp: command not found
[root@code xinetd.d]# yum install vsftpd -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Package vsftpd-3.0.2-28.el7.x86_64 already installed and latest version
Nothing to do
[root@code xinetd.d]# which ftp
which: no ftp in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/mysql/bin:/root/bin)
[root@code xinetd.d]# which vsftpd
/usr/sbin/vsftpd
[root@code xinetd.d]# cd /usr/sbin/vsftpd
-bash: cd: /usr/sbin/vsftpd: Not a directory
[root@code xinetd.d]# yum install ftp
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package ftp.x86_64 0:0.17-67.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================================
Installing:
ftp x86_64 0.17-67.el7 local 61 k
Transaction Summary
==========================================================================================================================================
Install 1 Package
Total download size: 61 k
Installed size: 96 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : ftp-0.17-67.el7.x86_64 1/1
Verifying : ftp-0.17-67.el7.x86_64 1/1
Installed:
ftp.x86_64 0:0.17-67.el7
Complete!
[root@code xinetd.d]# ftp 192.168.235.200
Connected to 192.168.235.200 (192.168.235.200).
220 (vsFTPd 3.0.2)
Name (192.168.235.200:root): kefu
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (192,168,235,200,41,132).
150 Here comes the directory listing.
226 Directory send OK.
ftp> ls
227 Entering Passive Mode (192,168,235,200,22,184).
150 Here comes the directory listing.
226 Directory send OK.
ftp> cd /
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (192,168,235,200,135,80).
150 Here comes the directory listing.
226 Directory send OK.
ftp> cd ~
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (192,168,235,200,184,174).
150 Here comes the directory listing.
226 Directory send OK.
ftp>
192.168.235.200
bash
caozx26@192.168.235.200's password:
▒▒▒ʱ▒▒ܾ▒
caozx26@192.168.235.200's password:
┌────────────────────────────────────────────────────────────────────┐
│ • MobaXterm 20.0 • │
│ (SSH client, X-server and networking tools) │
│ │
│ ➤ SSH session to caozx26@192.168.235.200 │
│ • SSH compression : ✘ │
│ • SSH-browser : ✔ │
│ • X11-forwarding : ✔ (remote display is forwarded through SSH) │
│ • DISPLAY : ✔ (automatically set on remote server) │
│ │
│ ➤ For more info, ctrl+click on help or visit our website │
└────────────────────────────────────────────────────────────────────┘
Last failed login: Sun Jul 6 14:27:39 CST 2025 from 192.168.235.1 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Sun Jul 6 08:52:19 2025 from 192.168.235.1
[caozx26@client ~]$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/caozx26/.ssh/id_rsa):
Created directory '/home/caozx26/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/caozx26/.ssh/id_rsa.
Your public key has been saved in /home/caozx26/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:66MZTJjHeX87iqRptcUAdHAp5nbWAzD6b6C1DmbfjJk caozx26@client.backup.cn
The key's randomart image is:
+---[RSA 2048]----+
| .=oo. |
| .++o |
| .o o o |
| =o.+ o |
| o.OoSo . |
| * =.oo |
| = +.=o. . |
| o +.#o. ... |
| .E.=..... |
+----[SHA256]-----+
[caozx26@client ~]$ ssh-copy-id root@192.168.235.5
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/caozx26/.ssh/id_rsa.pub"
The authenticity of host '192.168.235.5 (192.168.235.5)' can't be established.
ECDSA key fingerprint is SHA256:MYr/+N1Qd4SwhoayBA7pt7wLQ6fMwVNylGNsxaRjJ0Q.
ECDSA key fingerprint is MD5:30:60:01:87:b2:0d:2b:4a:7e:72:35:89:91:1a:6d:d6.
Are you sure you want to continue connecting (yes/no)?
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
The authenticity of host '192.168.235.5 (192.168.235.5)' can't be established.
ECDSA key fingerprint is SHA256:MYr/+N1Qd4SwhoayBA7pt7wLQ6fMwVNylGNsxaRjJ0Q.
ECDSA key fingerprint is MD5:30:60:01:87:b2:0d:2b:4a:7e:72:35:89:91:1a:6d:d6.
Are you sure you want to continue connecting (yes/no)? yea
Please type 'yes' or 'no': yes
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@192.168.235.5's password:
Permission denied, please try again.
root@192.168.235.5's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'root@192.168.235.5'"
and check to make sure that only the key(s) you wanted were added.
[caozx26@client ~]$ ssh root@192.168.235.5
Last failed login: Sun Jul 6 14:42:43 CST 2025 from 192.168.235.200 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Sun Jul 6 14:39:59 2025 from 192.168.235.1
[root@code ~]# ^C
[root@code ~]# exit
登出
Connection to 192.168.235.5 closed.
[caozx26@client ~]$ ls
1828.txt 1.java 2.java 3.java 5.java app1 inotify-tools-3.13.tar.gz 模板 图片 下载 桌面
1837.txt 2041 35.txt 4.java app inotify-tools-3.13 公共 视频 文档 音乐
[caozx26@client ~]$ rsync -av 1828.txt root@192.168.235.5:./
sending incremental file list
1828.txt
sent 5,244,264 bytes received 35 bytes 3,496,199.33 bytes/sec
total size is 5,242,880 speedup is 1.00
[caozx26@client ~]$ systemctl start rsyncd
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to manage system services or units.
Authenticating as: caozx26
Password:
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATION FAILED ===
Failed to start rsyncd.service: Access denied
See system logs and 'systemctl status rsyncd.service' for details.
[caozx26@client ~]$ systemctl start rsyncd
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to manage system services or units.
Authenticating as: caozx26
Password:
==== AUTHENTICATION COMPLETE ===
[caozx26@client ~]$ systemctl ststus rsyncd
Unknown operation 'ststus'.
[caozx26@client ~]$ systemctl status rsyncd
● rsyncd.service - fast remote file copy program daemon
Loaded: loaded (/usr/lib/systemd/system/rsyncd.service; disabled; vendor preset: disabled)
Active: active (running) since 日 2025-07-06 14:54:35 CST; 1min 54s ago
Main PID: 1921 (rsync)
Tasks: 1
CGroup: /system.slice/rsyncd.service
└─1921 /usr/bin/rsync --daemon --no-detach
7月 06 14:54:35 client.backup.cn systemd[1]: Started fast remote file copy program daemon.
7月 06 14:54:35 client.backup.cn rsyncd[1921]: rsyncd version 3.1.2 starting, listening on port 873
[caozx26@client ~]$ systemctl stop firewalld
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to manage system services or units.
Authenticating as: caozx26
Password:
==== AUTHENTICATION COMPLETE ===
[caozx26@client ~]$ sudo su
[sudo] caozx26 的密码:
[root@client caozx26]# systemctl stop firewalld
[root@client caozx26]# systemctl disable firewalld
[root@client caozx26]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
[root@client caozx26]# setenforce 0
setenforce: SELinux is disabled
[root@client caozx26]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
[root@client caozx26]# hostname
client.backup.cn
[root@client caozx26]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:d2:84:d0 brd ff:ff:ff:ff:ff:ff
inet 192.168.235.200/24 brd 192.168.235.255 scope global noprefixroute ens33
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fed2:84d0/64 scope link
valid_lft forever preferred_lft forever
3: ens34: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:d2:84:da brd ff:ff:ff:ff:ff:ff
inet 11.1.1.10/24 brd 11.1.1.255 scope global noprefixroute ens34
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fed2:84da/64 scope link
valid_lft forever preferred_lft forever
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:2b:f9:1b brd ff:ff:ff:ff:ff:ff
5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000
link/ether 52:54:00:2b:f9:1b brd ff:ff:ff:ff:ff:ff
[root@client caozx26]# systemctl stop NetworkManager
[root@client caozx26]# systemctl disable NetworkManager
Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service.
Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service.
Removed symlink /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service.
[root@client caozx26]# systemctl status NetworkManager
● NetworkManager.service - Network Manager
Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)
Active: inactive (dead) since 日 2025-07-06 15:06:02 CST; 19s ago
Docs: man:NetworkManager(8)
Main PID: 726 (code=exited, status=0/SUCCESS)
7月 06 14:25:47 client.backup.cn NetworkManager[726]: <info> [1751783147.3507] device (ens34): state change: config -> ip-confi...aged')
7月 06 14:25:47 client.backup.cn NetworkManager[726]: <info> [1751783147.3518] device (ens34): state change: ip-config -> ip-ch...aged')
7月 06 14:25:47 client.backup.cn NetworkManager[726]: <info> [1751783147.3522] device (ens34): state change: ip-check -> second...aged')
7月 06 14:25:47 client.backup.cn NetworkManager[726]: <info> [1751783147.3525] device (ens34): state change: secondaries -> act...aged')
7月 06 14:25:47 client.backup.cn NetworkManager[726]: <info> [1751783147.3836] device (ens34): Activation: successful, device activated.
7月 06 15:06:02 client.backup.cn systemd[1]: Stopping Network Manager...
7月 06 15:06:02 client.backup.cn NetworkManager[726]: <info> [1751785562.2427] caught SIGTERM, shutting down normally.
7月 06 15:06:02 client.backup.cn NetworkManager[726]: <info> [1751785562.2435] manager: NetworkManager state is now CONNECTED_SITE
7月 06 15:06:02 client.backup.cn NetworkManager[726]: <info> [1751785562.2852] exiting (success)
7月 06 15:06:02 client.backup.cn systemd[1]: Stopped Network Manager.
Hint: Some lines were ellipsized, use -l to show in full.
[root@client caozx26]# ntpdate cn.ntp.org.cn
6 Jul 15:07:11 ntpdate[6185]: adjust time server 203.107.6.88 offset 0.473269 sec
[root@client caozx26]# ls
1828.txt 1.java 2.java 3.java 5.java app1 inotify-tools-3.13.tar.gz 模板 图片 下载 桌面
1837.txt 2041 35.txt 4.java app inotify-tools-3.13 公共 视频 文档 音乐
[root@client caozx26]# hostname
client.backup.cn
[root@client caozx26]# cd /
[root@client /]# ls
123.txt a backup boot code dev etc g hosts lib media opt root sbin sys tmp var
76 b bin c d e f home k lib64 mnt proc run srv test usr
[root@client /]# cd backup/
[root@client backup]# ;ls
bash: 未预期的符号 `;' 附近有语法错误
[root@client backup]# ls
123.jpg 1.txt 2.txt share.mp4
[root@client backup]# mkdir /backup/app1_java -p
[root@client backup]# rsync -a root@192.168.235.5::
app
[root@client backup]# systemctl start rsyncd
[root@client backup]# rsync -av root@192.168.235.5::app /backup/app1_java
receiving incremental file list
./
file1.java
file2.java
file3.java
file4.java
file5.java
file6.java
file7.java
file8.java
file9.java
aa1/
aa2/
aa3/
sent 214 bytes received 644 bytes 1,716.00 bytes/sec
total size is 0 speedup is 0.00
[root@client backup]# crontab -e
no crontab for root - using an empty one
crontab: installing new crontab
[root@client backup]# crontab -l
45 15 * * * /root/rsync_java.sh
[root@client backup]# ls
123.jpg 1.txt 2.txt app1_java share.mp4
[root@client backup]# cd ~
[root@client ~]# ls
anaconda-ks.cfg initial-setup-ks.cfg
[root@client ~]# vim rsync_java.sh
[root@client ~]# cat rsync_java.sh
!/bin/bash
rsync -av root@192.168.235.5::app /backup/app1_java >/dev/null 2>&1
[root@client ~]# rsync -av root@192.168.235.5::app /backup/app1_java/dev/null 2>&1
receiving incremental file list
rsync: mkdir "/backup/app1_java/dev/null" failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(657) [Receiver=3.1.2]
[root@client ~]# rsync -av root@192.168.235.5::app /backup/app1_java>dev/null 2>&1
bash: dev/null: 没有那个文件或目录
[root@client ~]# rsync -av root@192.168.235.5::app /backup/app1_java>/dev/null 2>&1
[root@client ~]# chmod +x rsync.sh
chmod: 无法访问"rsync.sh": 没有那个文件或目录
[root@client ~]# chmod +x rsync_java.sh
[root@client ~]# ls
anaconda-ks.cfg initial-setup-ks.cfg rsync_java.sh
[root@client ~]# cd /backup/app1_java/
[root@client app1_java]# ls
aa1 aa2 aa3 file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[root@client app1_java]# ls
aa1 aa2 aa3 bb cc dd file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[root@client app1_java]# ls
aa1 aa2 aa3 bb cc dd file1.java file2.java file3.java file4.java file5.java file6.java file7.java file8.java file9.java
[root@client app1_java]# ls
aa1 aa3 cc ee file1.java file3.java file5.java file7.java file9.java
aa2 bb dd ff file2.java file4.java file6.java file8.java gg
[root@client app1_java]# rsync -av /app/java_project user1@192.168.235.5:/backup/app1_java
The authenticity of host '192.168.235.5 (192.168.235.5)' can't be established.
ECDSA key fingerprint is SHA256:MYr/+N1Qd4SwhoayBA7pt7wLQ6fMwVNylGNsxaRjJ0Q.
ECDSA key fingerprint is MD5:30:60:01:87:b2:0d:2b:4a:7e:72:35:89:91:1a:6d:d6.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.235.5' (ECDSA) to the list of known hosts.
user1@192.168.235.5's password:
Permission denied, please try again.
user1@192.168.235.5's password:
Permission denied, please try again.
user1@192.168.235.5's password:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.2]
[root@client app1_java]# rsync -av /app/java_projcet user1@192.168.235.5:/backup/app1_java
user1@192.168.235.5's password:
Permission denied, please try again.
user1@192.168.235.5's password:
Permission denied, please try again.
user1@192.168.235.5's password:
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(638) [sender=3.1.2]
[root@client app1_java]# rsync -av /app/java_projcet user2@192.168.235.5:/backup/app1_java
user2@192.168.235.5's password:
Permission denied, please try again.
user2@192.168.235.5's password:
Permission denied, please try again.
user2@192.168.235.5's password:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.2]
[root@client app1_java]# rsync -a user1@192.168.235.5::
app
[root@client app1_java]# rsync -av /app/java_projcet user2@192.168.235.5:/backup/app1_java
user2@192.168.235.5's password:
Permission denied, please try again.
user2@192.168.235.5's password:
Authentication failed.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.2]
[root@client app1_java]# rsync -av user1@192.168.235.5::/backup/app1_java
ERROR: The remote path must start with a module name not a /
rsync error: error starting client-server protocol (code 5) at main.c(1649) [Receiver=3.1.2]
[root@client app1_java]# rsync -av user1@192.168.235.5::app /backup/app1_java
Password:
receiving incremental file list
sent 28 bytes received 396 bytes 282.67 bytes/sec
total size is 0 speedup is 0.00
[root@client app1_java]# rsync -av user1@192.168.235.5::app /backup/app1_java
Password:
receiving incremental file list
sent 28 bytes received 396 bytes 169.60 bytes/sec
total size is 0 speedup is 0.00
[root@client app1_java]#
bash
已加载插件:fastestmirror, langpacks
没有该命令:insatall。请使用 /bin/yum --help
[root@client app1_java]# yum install vsftpd -y
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
local | 3.6 kB 00:00:00
软件包 vsftpd-3.0.2-28.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@client app1_java]# grep -v ^# /etc/vsftpd/vsftpd.conf
anonymous_enable=YES
local_enable=YES
chroot_local_user=YES
allow_writeable_chroot=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=NO
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
local_max_rate=0
[root@client app1_java]# useradd kefu
[root@client app1_java]# echo 123|passwd --stdin kefu
更改用户 kefu 的密码 。
passwd:所有的身份验证令牌已经成功更新。
[root@client app1_java]# vim /etc/vsftod/vsftpd.conf
[root@client app1_java]# vim /etc/vsftpd/vsftpd.conf
[root@client app1_java]# grep -v ^# /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
local_enable=YES
chroot_local_user=YES
allow_writeable_chroot=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=NO
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
local_max_rate=0
[root@client app1_java]# systemctl restart vsftpd
[root@client app1_java]# mkdir /data/kefu -p
[root@client app1_java]# vim /etc/vsftpd/vsftpd.conf
[root@client app1_java]# grep -v ^# /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
local_enable=YES
local_root=/data/kefu
chroot_local_user=YES
allow_writeable_chroot=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
listen=NO
listen_ipv6=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
local_max_rate=0
[root@client app1_java]# vim /etc/vsftpd/vsftpd.conf
[root@client app1_java]# systemctl restart vsftod
Failed to restart vsftod.service: Unit not found.
[root@client app1_java]# systemctl restart vsftpd
[root@client app1_java]# ifconfig ens33
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.235.200 netmask 255.255.255.0 broadcast 192.168.235.255
inet6 fe80::20c:29ff:fed2:84d0 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:d2:84:d0 txqueuelen 1000 (Ethernet)
RX packets 160310 bytes 32612551 (31.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 268259 bytes 113093626 (107.8 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@client app1_java]#