当前位置: 首页 > news >正文

LINUX621 NFS 同步 ;FTP;samba环境

NFS

httpd协议

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

视频显示

在这里插入图片描述

ftp

因nfs未使用root登录,无法传视频;考虑使用ftp get backup 中的文件

[root@nfs caozx26]# systemctl start vsftpd
[root@nfs caozx26]# systemctl enable vsftpd
Created symlink from /etc/systemd/system/multi-user.target.wants/vsftpd.service to /usr/lib/systemd/system/vsftpd.service.
[root@nfs caozx26]# ftp 192.168.235.100
bash: ftp: 未找到命令...
[root@nfs caozx26]# ftp:192.168.235.100
bash: ftp:192.168.235.100: 未找到命令...
[root@nfs caozx26]# ftp 192.168.235.100
bash: ftp: 未找到命令...

在这里插入图片描述
nfs.cn

[root@nfs caozx26]# ftp 192.168.235.100
bash: ftp: 未找到命令...
[root@nfs caozx26]# which ftp
/usr/bin/which: no ftp in (/sbin:/bin:/usr/sbin:/usr/bin)
[root@nfs caozx26]# rpm -qa|grep ftp
vsftpd-3.0.2-29.el7_9.x86_64
[root@nfs caozx26]# rpm -q ftp
未安装软件包 ftp
[root@nfs caozx26]# yum install ftp
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile* base: mirrors.aliyun.com* extras: mirrors.aliyun.com* updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 ftp.x86_64.0.0.17-67.el7 将被 安装
--> 解决依赖关系完成依赖关系解决===============================================================================Package        架构              版本                   源               大小
===============================================================================
正在安装:ftp            x86_64            0.17-67.el7            base             61 k事务概要
===============================================================================
安装  1 软件包总下载量:61 k
安装大小:96 k
Is this ok [y/d/N]: y
Downloading packages:
ftp-0.17-67.el7.x86_64.rpm                                |  61 kB   00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction正在安装    : ftp-0.17-67.el7.x86_64                                     1/1验证中      : ftp-0.17-67.el7.x86_64                                     1/1已安装:ftp.x86_64 0:0.17-67.el7完毕!
[root@nfs caozx26]# which ftp
/bin/ftp
[root@nfs caozx26]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): root
530 Permission denied.
Login failed.
ftp> bye
221 Goodbye.
root失败

web.cn

[root@backup /]# grep -v ^# /etc/vsftpd/vsftpd.conf
anonymous_enable=YES
local_enable=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=YESpam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
[root@backup /]# cat /etc/ftpusers
cat: /etc/ftpusers: 没有那个文件或目录
[root@backup /]# cat /etc/vsftpd/ftpusers
# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
[root@backup /]# cat /etc/vsftpd/user_list
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
[root@backup /]# vim /etc/vsftpd/ftpusers
[root@backup /]# cat /etc/vsftpd/ftpusers
# Users that are not allowed to login via ftp
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
[root@backup /]# vim /etc/vsftpd/ftpusers
[root@backup /]# vim /etc/vsftpd/user_list
[root@backup /]# cat /etc/vsftpd/user_list
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
[root@backup /]#
ftp get命令

在这里插入图片描述

[root@nfs caozx26]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): root
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (192,168,235,100,34,189).
150 Here comes the directory listing.
-rw-r--r--    1 0        0         6291456 May 15 13:30 2.java
drwxr-xr-x    2 0        0              38 May 13 12:19 2010
-rw-r--r--    1 0        0         4194304 May 13 12:09 23.txt
drwxr-xr-x    2 0        0               6 May 15 12:51 aa1
drwxr-xr-x    2 0        0               6 May 15 12:51 aa2
drwxr-xr-x    2 0        0               6 May 15 12:51 aa3
-rw-------    1 0        0            1827 Apr 16 21:53 anaconda-ks.cfg
-rw-r--r--    1 0        0               0 May 15 12:54 file1.java
-rw-r--r--    1 0        0               0 May 15 12:54 file2.java
-rw-r--r--    1 0        0               0 May 15 12:54 file3.java
-rw-r--r--    1 0        0               0 May 15 12:54 file4.java
-rw-r--r--    1 0        0               0 May 15 12:54 file5.java
-rw-r--r--    1 0        0               0 May 15 12:54 file6.java
-rw-r--r--    1 0        0               0 May 15 12:54 file7.java
-rw-r--r--    1 0        0               0 May 15 12:54 file8.java
-rw-r--r--    1 0        0               0 May 15 12:54 file9.java
-rw-r--r--    1 0        0            1875 Apr 16 22:04 initial-setup-ks.cfg
-rw-r--r--    1 0        0         4194304 May 13 10:57 linux.txt
drwxr-xr-x    2 0        0               6 May 13 12:37 q
-rwxr-xr-x    1 0        0              83 Jun 01 13:39 rsync_java.sh
drwxr-xr-x    2 0        0               6 May 13 12:02 shop
226 Directory send OK.
ftp> cd /
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (192,168,235,100,211,154).
150 Here comes the directory listing.
-rw-r--r--    1 0        0            8330 Jun 21 02:20 1.jpg
drwxr-xr-x    2 0        0               6 May 13 12:10 2010
drwxr-xr-x    4 0        0              39 Jun 01 13:10 backup
lrwxrwxrwx    1 0        0               7 Apr 16 21:40 bin -> usr/bin
dr-xr-xr-x    5 0        0            4096 Apr 16 21:53 boot
drwxr-xr-x   20 0        0            3300 Jun 20 20:33 dev
drwxr-xr-x  146 0        0            8192 Jun 21 02:39 etc
drwxr-xr-x    4 0        0              35 May 14 15:03 home
lrwxrwxrwx    1 0        0               7 Apr 16 21:40 lib -> usr/lib
lrwxrwxrwx    1 0        0               9 Apr 16 21:40 lib64 -> usr/lib64
drwxr-xr-x    2 0        0               6 Apr 11  2018 media
drwxr-xr-x    8 1001     1001         2048 Nov 04  2020 mnt
drwxr-xr-x    3 0        0              16 Apr 16 21:46 opt
dr-xr-xr-x  231 0        0               0 Jun 20 20:33 proc
drwxr-xr-x   12 0        0            4096 Jun 21 03:25 root
drwxr-xr-x   41 0        0            1220 Jun 21 03:18 run
lrwxrwxrwx    1 0        0               8 Apr 16 21:40 sbin -> usr/sbin
drwxr-xr-x    2 0        0               6 Apr 11  2018 srv
dr-xr-xr-x   13 0        0               0 Jun 20 20:33 sys
drwxrwxrwt   17 0        0            4096 Jun 21 03:18 tmp
drwxr-xr-x   13 0        0             155 Apr 16 21:40 usr
drwxr-xr-x   22 0        0            4096 Jun 21 02:39 var
226 Directory send OK.
ftp> get 1.jpg
local: 1.jpg remote: 1.jpg
227 Entering Passive Mode (192,168,235,100,219,72).
150 Opening BINARY mode data connection for 1.jpg (8330 bytes).
226 Transfer complete.
8330 bytes received in 0.00999 secs (833.75 Kbytes/sec)
ftp> bye
221 Goodbye.
[root@nfs caozx26]# cd /
[root@nfs /]# ls
bin   code  etc   lib    media  opt   root  sbin   srv  tmp  var
boot  dev   home  lib64  mnt    proc  run   share  sys  usr
[root@nfs /]# find / -name 1.jpg
find: ‘/run/user/1000/gvfs’: 权限不够
/home/caozx26/1.jpg
[root@nfs /]# mv /home/caozx26/1.jpg /
[root@nfs /]# ls
1.jpg  boot  dev  home  lib64  mnt  proc  run   share  sys  usr
bin    code  etc  lib   media  opt  root  sbin  srv    tmp  var
[root@nfs /]# mv 1.jpg /share
[root@nfs /]# cd /share
[root@nfs share]# ls
1.jpg
[root@nfs share]#

web

Last login: Sat Jun 21 08:42:20 2025 from 192.168.235.1
[code@web ~]$ ll /var/www/html/media
总用量 12
-rw-r--r--. 1 root root 8330 621 11:30 1.jpg
[code@web ~]$

html网页中如何调用图片在这里插入图片描述

图片

[root@web /]# cd /var/www/html/
[root@web html]# ls
index.html  media  meida
[root@web html]# cat index.html
NFS666
[root@web html]# vim index.html
[root@web html]# cat index.html
<img src="/share/1.jpg" alt="芒果" width="200" height="100">
[root@web html]#

在这里插入图片描述

[root@web caozx26]# cd /var/www/html
[root@web html]# ls
index.html  media  meida
[root@web html]# cat index.html
<img src="/share/1.jpg" alt="芒果" width="200" height="100">
[root@web html]# ll media
总用量 12
-rw-r--r--. 1 root root 8330 621 11:30 1.jpg
[root@web html]# vim index.html
[root@web html]# cat index.html
<img src="media/1.jpg" alt="芒果" width="200" height="100">
[root@web html]#

在这里插入图片描述

视频

nfs

[root@nfs share]# ls
1.jpg  2.mp4
[root@nfs share]#

web

[root@web media]# ls
1.jpg  2.mp4
[root@web media]# cd ~
[root@web ~]# ls
2010      anaconda-ks.cfg       linux.txt  root@192.168.0.25
2011.txt  initial-setup-ks.cfg  q          shop
[root@web ~]# cd /var/www/html
[root@web html]# ls
index.html  media  meida
[root@web html]# cat index.html
<img src="media/1.jpg" alt="芒果" width="200" height="100">
[root@web html]# vim index.html
[root@web html]# cat index.html
<img src="media/1.jpg" alt="芒果" width="200" height="100">
<video width="900" height="450" controls><source src="media/2.mp4">
</video>
[root@web html]#

在这里插入图片描述

实时备份

在这里插入图片描述

[root@nfs /]# ls
bin   dev   lib    mnt        proc      run    srv  usr
boot  etc   lib64  nohup.out  root      sbin   sys  var
code  home  media  opt        rsync.sh  share  tmp
[root@nfs /]# nohup rsync.sh &
[1] 109025
[root@nfs /]# nohup: 忽略输入并把输出追加到"nohup.out"
nohup: 无法运行命令"rsync.sh": 没有那个文件或目录
jobs
[1]+  退出 127              nohup rsync.sh
[root@nfs /]# ls
bin   dev   lib    mnt        proc      run    srv  usr
boot  etc   lib64  nohup.out  root      sbin   sys  var
code  home  media  opt        rsync.sh  share  tmp
[root@nfs /]# jobs
[root@nfs /]#

在这里插入图片描述

下载 inotify

nfs

ftp> ls
227 Entering Passive Mode (192,168,235,100,179,106).
150 Here comes the directory listing.
-rw-r--r--    1 0        0         6291456 May 15 13:30 2.java
drwxr-xr-x    2 0        0              38 May 13 12:19 2010
-rw-r--r--    1 0        0         4194304 May 13 12:09 23.txt
drwxr-xr-x    2 0        0               6 May 15 12:51 aa1
drwxr-xr-x    2 0        0               6 May 15 12:51 aa2
drwxr-xr-x    2 0        0               6 May 15 12:51 aa3
-rw-------    1 0        0            1827 Apr 16 21:53 anaconda-ks.cfg
-rw-r--r--    1 0        0               0 May 15 12:54 file1.java
-rw-r--r--    1 0        0               0 May 15 12:54 file2.java
-rw-r--r--    1 0        0               0 May 15 12:54 file3.java
-rw-r--r--    1 0        0               0 May 15 12:54 file4.java
-rw-r--r--    1 0        0               0 May 15 12:54 file5.java
-rw-r--r--    1 0        0               0 May 15 12:54 file6.java
-rw-r--r--    1 0        0               0 May 15 12:54 file7.java
-rw-r--r--    1 0        0               0 May 15 12:54 file8.java
-rw-r--r--    1 0        0               0 May 15 12:54 file9.java
-rw-r--r--    1 0        0            1875 Apr 16 22:04 initial-setup-ks.
-rw-r--r--    1 0        0         4194304 May 13 10:57 linux.txt
drwxr-xr-x    2 0        0               6 May 13 12:37 q
-rwxr-xr-x    1 0        0              83 Jun 01 13:39 rsync_java.sh
drwxr-xr-x    2 0        0               6 May 13 12:02 shop
226 Directory send OK.
ftp> cd .
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (192,168,235,100,176,83).
150 Here comes the directory listing.
-rw-r--r--    1 0        0         6291456 May 15 13:30 2.java
drwxr-xr-x    2 0        0              38 May 13 12:19 2010
-rw-r--r--    1 0        0         4194304 May 13 12:09 23.txt
drwxr-xr-x    2 0        0               6 May 15 12:51 aa1
drwxr-xr-x    2 0        0               6 May 15 12:51 aa2
drwxr-xr-x    2 0        0               6 May 15 12:51 aa3
-rw-------    1 0        0            1827 Apr 16 21:53 anaconda-ks.cfg
-rw-r--r--    1 0        0               0 May 15 12:54 file1.java
-rw-r--r--    1 0        0               0 May 15 12:54 file2.java
-rw-r--r--    1 0        0               0 May 15 12:54 file3.java
-rw-r--r--    1 0        0               0 May 15 12:54 file4.java
-rw-r--r--    1 0        0               0 May 15 12:54 file5.java
-rw-r--r--    1 0        0               0 May 15 12:54 file6.java
-rw-r--r--    1 0        0               0 May 15 12:54 file7.java
-rw-r--r--    1 0        0               0 May 15 12:54 file8.java
-rw-r--r--    1 0        0               0 May 15 12:54 file9.java
-rw-r--r--    1 0        0            1875 Apr 16 22:04 initial-setup-ks.
-rw-r--r--    1 0        0         4194304 May 13 10:57 linux.txt
drwxr-xr-x    2 0        0               6 May 13 12:37 q
-rwxr-xr-x    1 0        0              83 Jun 01 13:39 rsync_java.sh
drwxr-xr-x    2 0        0               6 May 13 12:02 shop
226 Directory send OK.
ftp> cd /
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (192,168,235,100,175,1).
150 Here comes the directory listing.
-rw-r--r--    1 0        0            8330 Jun 21 02:20 1.jpg
-rw-r--r--    1 0        0         7803714 Jun 21 04:57 2.mp4
drwxr-xr-x    2 0        0               6 May 13 12:10 2010
drwxr-xr-x    4 0        0              39 Jun 01 13:10 backup
lrwxrwxrwx    1 0        0               7 Apr 16 21:40 bin -> usr/bin
dr-xr-xr-x    5 0        0            4096 Apr 16 21:53 boot
drwxr-xr-x   20 0        0            3300 Jun 20 20:33 dev
drwxr-xr-x  146 0        0            8192 Jun 21 02:39 etc
drwxr-xr-x    4 0        0              35 May 14 15:03 home
-rw-r--r--    1 0        0          389473 Jun 21 08:22 inotify-tools-3.1gz
lrwxrwxrwx    1 0        0               7 Apr 16 21:40 lib -> usr/lib
lrwxrwxrwx    1 0        0               9 Apr 16 21:40 lib64 -> usr/lib6
drwxr-xr-x    2 0        0               6 Apr 11  2018 media
drwxr-xr-x    8 1001     1001         2048 Nov 04  2020 mnt
drwxr-xr-x    3 0        0              16 Apr 16 21:46 opt
dr-xr-xr-x  237 0        0               0 Jun 20 20:33 proc
drwxr-xr-x   12 0        0            4096 Jun 21 08:21 root
drwxr-xr-x   41 0        0            1220 Jun 21 03:18 run
lrwxrwxrwx    1 0        0               8 Apr 16 21:40 sbin -> usr/sbin
drwxr-xr-x    2 0        0               6 Apr 11  2018 srv
dr-xr-xr-x   13 0        0               0 Jun 20 20:33 sys
drwxrwxrwt   17 0        0            4096 Jun 21 08:25 tmp
drwxr-xr-x   13 0        0             155 Apr 16 21:40 usr
drwxr-xr-x   22 0        0            4096 Jun 21 02:39 var
226 Directory send OK.
ftp> get inotify-tools-3.13.tar.gz
local: inotify-tools-3.13.tar.gz remote: inotify-tools-3.13.tar.gz
227 Entering Passive Mode (192,168,235,100,81,21).
150 Opening BINARY mode data connection for inotify-tools-3.13.tar.gz (38ytes).
226 Transfer complete.
389473 bytes received in 0.00304 secs (128073.98 Kbytes/sec)
ftp> !ls
anaconda-ks.cfg  initial-setup-ks.cfg  inotify-tools-3.13.tar.gz
ftp> lcd /
Local directory now /
ftp> !ls
bin   code  etc   lib    media  opt   root  sbin   srv  tmp  var
boot  dev   home  lib64  mnt    proc  run   share  sys  usr
ftp> lcd /root
Local directory now /root
ftp> !ls
anaconda-ks.cfg  initial-setup-ks.cfg  inotify-tools-3.13.tar.gz
ftp> bye
221 Goodbye.
[root@nfs ~]# ls
anaconda-ks.cfg  initial-setup-ks.cfg  inotify-tools-3.13.tar.gz
[root@nfs ~]# tar -xf inotify-tools-3.13.tar.gz
[root@nfs ~]# ls
anaconda-ks.cfg       inotify-tools-3.13
initial-setup-ks.cfg  inotify-tools-3.13.tar.gz
[root@nfs ~]# cd inotify-tools-3.13/
[root@nfs 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 sharraries... 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 sharraries... 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 sharraries... 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) supportsd 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@nfs inotify-tools-3.13]# make
make  all-recursive
make[1]: 进入目录“/root/inotify-tools-3.13”
Making all in libinotifytools
make[2]: 进入目录“/root/inotify-tools-3.13/libinotifytools”
make[3]: 进入目录“/root/inotify-tools-3.13”
make[3]: 离开目录“/root/inotify-tools-3.13”
Making all in src
make[3]: 进入目录“/root/inotify-tools-3.13/libinotifytools/src”
make[4]: 进入目录“/root/inotify-tools-3.13”
make[4]: 离开目录“/root/inotify-tools-3.13”
Making all in inotifytools
make[4]: 进入目录“/root/inotify-tools-3.13/libinotifytools/src/inotifytoo
make[5]: 进入目录“/root/inotify-tools-3.13”
make[5]: 离开目录“/root/inotify-tools-3.13”
cd ../../.. && /bin/sh /root/inotify-tools-3.13/missing --run autoheader
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): ious 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, ...picious 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 detectbody
../../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 detectbody
../../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, ..spicious 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, ..spicious 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, ..spicious 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 detectbody
../../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 detectbody
../../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/i.h
config.status: creating libinotifytools/src/inotifytools/inotify.h
config.status: libinotifytools/src/inotifytools/inotify.h is unchanged
make  all-am
make[5]: 进入目录“/root/inotify-tools-3.13/libinotifytools/src/inotifytoo
make[6]: 进入目录“/root/inotify-tools-3.13”
make[6]: 离开目录“/root/inotify-tools-3.13”
make[5]: 离开目录“/root/inotify-tools-3.13/libinotifytools/src/inotifytoo
make[4]: 离开目录“/root/inotify-tools-3.13/libinotifytools/src/inotifytoo
make[4]: 进入目录“/root/inotify-tools-3.13/libinotifytools/src”
make[5]: 进入目录“/root/inotify-tools-3.13”
make[5]: 离开目录“/root/inotify-tools-3.13”
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. ../.. -I../../libinotifytools/src/inotifytools    -std=c99 -g -O2 -MT inools.lo -MD -MP -MF ".deps/inotifytools.Tpo" -c -o inotifytools.lo inotifyc; \
then mv -f ".deps/inotifytools.Tpo" ".deps/inotifytools.Plo"; else rm -f /inotifytools.Tpo"; exit 1; fi
mkdir .libsgcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytstd=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c ytools.c  -fPIC -DPIC -o .libs/inotifytools.o
inotifytools.c: In function 'event_compare':
inotifytools.c:2027:19: warning: cast from pointer to integer of differen [-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 differen [-Wint-to-pointer-cast]struct rbtree *ret = rbinit(event_compare, (void*)sort_event);^gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytstd=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c ytools.c -o inotifytools.o >/dev/null 2>&1
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. ../.. -I../../libinotifytools/src/inotifytools    -std=c99 -g -O2 -MT redlo -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/rk.Tpo"; exit 1; fi
m gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotify-std=c99 -g -O2 -MT redblack.lo -MD -MP -MF .deps/redblack.Tpo -c redblacfPIC -DPIC -o .libs/redblack.o
ak gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotif -std=c99 -g -O2 -MT redblack.lo -MD -MP -MF .deps/redblack.Tpo -c redblao redblack.o >/dev/null 2>&1
e/bin/sh ../../libtool --tag=CC --mode=link gcc -std=c99 -g -O2   -o libitools.la -rpath /usr/local/lib -version-info 4:1:4 inotifytools.lo redbla
gcc -shared  .libs/inotifytools.o .libs/redblack.o   -Wl,-soname -Wl,libitools.so.0 -o .libs/libinotifytools.so.0.4.1
(cd .libs && rm -f libinotifytools.so.0 && ln -s libinotifytools.so.0.4.1otifytools.so.0)
(cd .libs && rm -f libinotifytools.so && ln -s libinotifytools.so.0.4.1 lifytools.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 libitools.la)
/usr/bin/doxygen
Warning: Tag `USE_WINDOWS_ENCODING' at line 64 of file Doxyfile has becomlete.
To avoid this warning please remove this line from your configuration filpgrade it using "doxygen -u"
Warning: Tag `DETAILS_AT_TOP' at line 156 of file Doxyfile has become obs
To avoid this warning please remove this line from your configuration filpgrade it using "doxygen -u"
Warning: Tag `SHOW_DIRECTORIES' at line 390 of file Doxyfile has become oe.
To avoid this warning please remove this line from your configuration filpgrade it using "doxygen -u"
Warning: Tag `HTML_ALIGN_MEMBERS' at line 674 of file Doxyfile has becomeete.
To avoid this warning please remove this line from your configuration filpgrade it using "doxygen -u"
Warning: Tag `MAX_DOT_GRAPH_WIDTH' at line 1196 of file Doxyfile has becoolete.
To avoid this warning please remove this line from your configuration filpgrade it using "doxygen -u"
Warning: Tag `MAX_DOT_GRAPH_HEIGHT' at line 1204 of file Doxyfile has becsolete.
To avoid this warning please remove this line from your configuration filpgrade 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 /root/inotify-tools-3.13/libinotifytools
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 /root/inotify-tools-3.13/libinotifytools/src/inotifytools/itools.h...
Parsing file /root/inotify-tools-3.13/libinotifytools/src/inotifytools/inools.h...
Preprocessing /root/inotify-tools-3.13/libinotifytools/src/inotifytools.c
Parsing file /root/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]: 离开目录“/root/inotify-tools-3.13/libinotifytools/src”
make[3]: 离开目录“/root/inotify-tools-3.13/libinotifytools/src”
make[3]: 进入目录“/root/inotify-tools-3.13/libinotifytools”
make[4]: 进入目录“/root/inotify-tools-3.13”
make[4]: 离开目录“/root/inotify-tools-3.13”
make[3]: 对“all-am”无需做任何事。
make[3]: 离开目录“/root/inotify-tools-3.13/libinotifytools”
make[2]: 离开目录“/root/inotify-tools-3.13/libinotifytools”
Making all in src
make[2]: 进入目录“/root/inotify-tools-3.13/src”
make[3]: 进入目录“/root/inotify-tools-3.13”
make[3]: 离开目录“/root/inotify-tools-3.13”
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytoolstd=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inoti.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 ".dotifywait.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytoolstd=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT commoD -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 exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytoolsL../libinotifytools/src -g -O2   -o inotifywait  inotifywait.o common.o .notifytools/src/libinotifytools.la
mkdir .libs
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywait inotify common.o  -L/root/inotify-tools-3.13/libinotifytools/src ../libinotifytoc/.libs/libinotifytools.so  -Wl,--rpath -Wl,/usr/local/lib
creating inotifywait
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytoolstd=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotih.o -MD -MP -MF ".deps/inotifywatch.Tpo" -c -o inotifywatch.o inotifywatc
then mv -f ".deps/inotifywatch.Tpo" ".deps/inotifywatch.Po"; else rm -f "inotifywatch.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytoolsL../libinotifytools/src -g -O2   -o inotifywatch  inotifywatch.o common.obinotifytools/src/libinotifytools.la
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywatch inotif.o common.o  -L/root/inotify-tools-3.13/libinotifytools/src ../libinotifysrc/.libs/libinotifytools.so  -Wl,--rpath -Wl,/usr/local/lib
creating inotifywatch
make[2]: 离开目录“/root/inotify-tools-3.13/src”
Making all in man
make[2]: 进入目录“/root/inotify-tools-3.13/man”
make[3]: 进入目录“/root/inotify-tools-3.13”
make[3]: 离开目录“/root/inotify-tools-3.13”
make[2]: 对“all”无需做任何事。
make[2]: 离开目录“/root/inotify-tools-3.13/man”
make[2]: 进入目录“/root/inotify-tools-3.13”
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
make[2]: 离开目录“/root/inotify-tools-3.13”
make[1]: 离开目录“/root/inotify-tools-3.13”
[root@nfs inotify-tools-3.13]# make install
Making install in libinotifytools
make[1]: 进入目录“/root/inotify-tools-3.13/libinotifytools”
make[2]: 进入目录“/root/inotify-tools-3.13”
make[2]: 离开目录“/root/inotify-tools-3.13”
Making install in src
make[2]: 进入目录“/root/inotify-tools-3.13/libinotifytools/src”
make[3]: 进入目录“/root/inotify-tools-3.13”
make[3]: 离开目录“/root/inotify-tools-3.13”
Making install in inotifytools
make[3]: 进入目录“/root/inotify-tools-3.13/libinotifytools/src/inotifytoo
make[4]: 进入目录“/root/inotify-tools-3.13”
make[4]: 离开目录“/root/inotify-tools-3.13”
make[4]: 进入目录“/root/inotify-tools-3.13/libinotifytools/src/inotifytoo
make[5]: 进入目录“/root/inotify-tools-3.13”
make[5]: 离开目录“/root/inotify-tools-3.13”
make[4]: 对“install-exec-am”无需做任何事。
make[4]: 对“install-data-am”无需做任何事。
make[4]: 离开目录“/root/inotify-tools-3.13/libinotifytools/src/inotifytoo
make[3]: 离开目录“/root/inotify-tools-3.13/libinotifytools/src/inotifytoo
make[3]: 进入目录“/root/inotify-tools-3.13/libinotifytools/src”
make[4]: 进入目录“/root/inotify-tools-3.13”
make[4]: 离开目录“/root/inotify-tools-3.13”
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. ../.. -I../../libinotifytools/src/inotifytools    -std=c99 -g -O2 -MT inools.lo -MD -MP -MF ".deps/inotifytools.Tpo" -c -o inotifytools.lo inotifyc; \
then mv -f ".deps/inotifytools.Tpo" ".deps/inotifytools.Plo"; else rm -f /inotifytools.Tpo"; exit 1; figcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytstd=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c ytools.c  -fPIC -DPIC -o .libs/inotifytools.o
inotifytools.c: In function 'event_compare':
inotifytools.c:2027:19: warning: cast from pointer to integer of differen [-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 differen [-Wint-to-pointer-cast]struct rbtree *ret = rbinit(event_compare, (void*)sort_event);^gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytstd=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c ytools.c -o inotifytools.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CC --mode=link gcc -std=c99 -g -O2   -o libinools.la -rpath /usr/local/lib -version-info 4:1:4 inotifytools.lo redblac
rm -fr  .libs/libinotifytools.a .libs/libinotifytools.la .libs/libinotifylai .libs/libinotifytools.so .libs/libinotifytools.so.0 .libs/libinotifyto.0.4.1
gcc -shared  .libs/inotifytools.o .libs/redblack.o   -Wl,-soname -Wl,libitools.so.0 -o .libs/libinotifytools.so.0.4.1
(cd .libs && rm -f libinotifytools.so.0 && ln -s libinotifytools.so.0.4.1otifytools.so.0)
(cd .libs && rm -f libinotifytools.so && ln -s libinotifytools.so.0.4.1 lifytools.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 libitools.la)
make[4]: 进入目录“/root/inotify-tools-3.13/libinotifytools/src”
make[5]: 进入目录“/root/inotify-tools-3.13”
make[5]: 离开目录“/root/inotify-tools-3.13”
test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib"/bin/sh ../../libtool --mode=install /usr/bin/install -c  'libinotifytoo '/usr/local/lib/libinotifytools.la'
/usr/bin/install -c .libs/libinotifytools.so.0.4.1 /usr/local/lib/libinotls.so.0.4.1
(cd /usr/local/lib && { ln -s -f libinotifytools.so.0.4.1 libinotifytools|| { rm -f libinotifytools.so.0 && ln -s libinotifytools.so.0.4.1 libinotls.so.0; }; })
(cd /usr/local/lib && { ln -s -f libinotifytools.so.0.4.1 libinotifytools { rm -f libinotifytools.so && ln -s libinotifytools.so.0.4.1 libinotifyto; }; })
/usr/bin/install -c .libs/libinotifytools.lai /usr/local/lib/libinotifyto
/usr/bin/install -c .libs/libinotifytools.a /usr/local/lib/libinotifytool
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/libIf 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 variableduring execution- add LIBDIR to the `LD_RUN_PATH' environment variableduring 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/soc/inotify-tools"/usr/bin/install -c -m 644 'doc/html/bc_s.png' '/usr/local/share/doc/inoools/bc_s.png'/usr/bin/install -c -m 644 'doc/html/bdwn.png' '/usr/local/share/doc/inoools/bdwn.png'/usr/bin/install -c -m 644 'doc/html/closed.png' '/usr/local/share/doc/i-tools/closed.png'/usr/bin/install -c -m 644 'doc/html/dir_6f9162800bb6dbbe5c86171e8602f38' '/usr/local/share/doc/inotify-tools/dir_6f9162800bb6dbbe5c86171e8602f38'/usr/bin/install -c -m 644 'doc/html/doxygen.css' '/usr/local/share/doc/y-tools/doxygen.css'/usr/bin/install -c -m 644 'doc/html/doxygen.png' '/usr/local/share/doc/y-tools/doxygen.png'/usr/bin/install -c -m 644 'doc/html/dynsections.js' '/usr/local/share/dtify-tools/dynsections.js'/usr/bin/install -c -m 644 'doc/html/files.html' '/usr/local/share/doc/i-tools/files.html'/usr/bin/install -c -m 644 'doc/html/ftv2blank.png' '/usr/local/share/doify-tools/ftv2blank.png'/usr/bin/install -c -m 644 'doc/html/ftv2cl.png' '/usr/local/share/doc/i-tools/ftv2cl.png'/usr/bin/install -c -m 644 'doc/html/ftv2doc.png' '/usr/local/share/doc/y-tools/ftv2doc.png'/usr/bin/install -c -m 644 'doc/html/ftv2folderclosed.png' '/usr/local/soc/inotify-tools/ftv2folderclosed.png'/usr/bin/install -c -m 644 'doc/html/ftv2folderopen.png' '/usr/local/sha/inotify-tools/ftv2folderopen.png'/usr/bin/install -c -m 644 'doc/html/ftv2lastnode.png' '/usr/local/sharenotify-tools/ftv2lastnode.png'/usr/bin/install -c -m 644 'doc/html/ftv2link.png' '/usr/local/share/docfy-tools/ftv2link.png'/usr/bin/install -c -m 644 'doc/html/ftv2mlastnode.png' '/usr/local/sharinotify-tools/ftv2mlastnode.png'/usr/bin/install -c -m 644 'doc/html/ftv2mnode.png' '/usr/local/share/doify-tools/ftv2mnode.png'/usr/bin/install -c -m 644 'doc/html/ftv2mo.png' '/usr/local/share/doc/i-tools/ftv2mo.png'/usr/bin/install -c -m 644 'doc/html/ftv2node.png' '/usr/local/share/docfy-tools/ftv2node.png'/usr/bin/install -c -m 644 'doc/html/ftv2ns.png' '/usr/local/share/doc/i-tools/ftv2ns.png'/usr/bin/install -c -m 644 'doc/html/ftv2plastnode.png' '/usr/local/sharinotify-tools/ftv2plastnode.png'/usr/bin/install -c -m 644 'doc/html/ftv2pnode.png' '/usr/local/share/doify-tools/ftv2pnode.png'/usr/bin/install -c -m 644 'doc/html/ftv2splitbar.png' '/usr/local/sharenotify-tools/ftv2splitbar.png'/usr/bin/install -c -m 644 'doc/html/ftv2vertline.png' '/usr/local/sharenotify-tools/ftv2vertline.png'/usr/bin/install -c -m 644 'doc/html/globals_func.html' '/usr/local/sharinotify-tools/globals_func.html'/usr/bin/install -c -m 644 'doc/html/globals.html' '/usr/local/share/docfy-tools/globals.html'/usr/bin/install -c -m 644 'doc/html/index.html' '/usr/local/share/doc/i-tools/index.html'/usr/bin/install -c -m 644 'doc/html/inotifytools_8c_source.html' '/usr/share/doc/inotify-tools/inotifytools_8c_source.html'/usr/bin/install -c -m 644 'doc/html/inotifytools_8h.html' '/usr/local/soc/inotify-tools/inotifytools_8h.html'/usr/bin/install -c -m 644 'doc/html/inotifytools_8h_source.html' '/usr/share/doc/inotify-tools/inotifytools_8h_source.html'/usr/bin/install -c -m 644 'doc/html/jquery.js' '/usr/local/share/doc/intools/jquery.js'/usr/bin/install -c -m 644 'doc/html/nav_f.png' '/usr/local/share/doc/intools/nav_f.png'/usr/bin/install -c -m 644 'doc/html/nav_g.png' '/usr/local/share/doc/intools/nav_g.png'/usr/bin/install -c -m 644 'doc/html/nav_h.png' '/usr/local/share/doc/intools/nav_h.png'/usr/bin/install -c -m 644 'doc/html/open.png' '/usr/local/share/doc/inoools/open.png'/usr/bin/install -c -m 644 'doc/html/pages.html' '/usr/local/share/doc/i-tools/pages.html'/usr/bin/install -c -m 644 'doc/html/sync_off.png' '/usr/local/share/docfy-tools/sync_off.png'/usr/bin/install -c -m 644 'doc/html/sync_on.png' '/usr/local/share/doc/y-tools/sync_on.png'/usr/bin/install -c -m 644 'doc/html/tab_a.png' '/usr/local/share/doc/intools/tab_a.png'/usr/bin/install -c -m 644 'doc/html/tab_b.png' '/usr/local/share/doc/intools/tab_b.png'/usr/bin/install -c -m 644 'doc/html/tab_h.png' '/usr/local/share/doc/intools/tab_h.png'/usr/bin/install -c -m 644 'doc/html/tabs.css' '/usr/local/share/doc/inoools/tabs.css'/usr/bin/install -c -m 644 'doc/html/tab_s.png' '/usr/local/share/doc/intools/tab_s.png'/usr/bin/install -c -m 644 'doc/html/todo.html' '/usr/local/share/doc/intools/todo.html'
test -z "/usr/local/include" || mkdir -p -- "/usr/local/include"/root/inotify-tools-3.13/install-sh -c -m 644 'inotifytools/inotifytoolsusr/local/include/inotifytools/inotifytools.h'/root/inotify-tools-3.13/install-sh -c -m 644 'inotifytools/inotify-nosy/usr/local/include/inotifytools/inotify-nosys.h'/root/inotify-tools-3.13/install-sh -c -m 644 'inotifytools/inotify.h' 'ocal/include/inotifytools/inotify.h'
make[4]: 离开目录“/root/inotify-tools-3.13/libinotifytools/src”
make[3]: 离开目录“/root/inotify-tools-3.13/libinotifytools/src”
make[2]: 离开目录“/root/inotify-tools-3.13/libinotifytools/src”
make[2]: 进入目录“/root/inotify-tools-3.13/libinotifytools”
make[3]: 进入目录“/root/inotify-tools-3.13”
make[3]: 离开目录“/root/inotify-tools-3.13”
make[3]: 进入目录“/root/inotify-tools-3.13/libinotifytools”
make[4]: 进入目录“/root/inotify-tools-3.13”
make[4]: 离开目录“/root/inotify-tools-3.13”
make[3]: 对“install-exec-am”无需做任何事。
make[3]: 对“install-data-am”无需做任何事。
make[3]: 离开目录“/root/inotify-tools-3.13/libinotifytools”
make[2]: 离开目录“/root/inotify-tools-3.13/libinotifytools”
make[1]: 离开目录“/root/inotify-tools-3.13/libinotifytools”
Making install in src
make[1]: 进入目录“/root/inotify-tools-3.13/src”
make[2]: 进入目录“/root/inotify-tools-3.13”
make[2]: 离开目录“/root/inotify-tools-3.13”
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytoolstd=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inoti.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 ".dotifywait.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytoolstd=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT commoD -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 exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytoolsL../libinotifytools/src -g -O2   -o inotifywait  inotifywait.o common.o .notifytools/src/libinotifytools.la
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywait inotify common.o  -L/root/inotify-tools-3.13/libinotifytools/src ../libinotifytoc/.libs/libinotifytools.so  -Wl,--rpath -Wl,/usr/local/lib
creating inotifywait
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytoolstd=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotih.o -MD -MP -MF ".deps/inotifywatch.Tpo" -c -o inotifywatch.o inotifywatc
then mv -f ".deps/inotifywatch.Tpo" ".deps/inotifywatch.Po"; else rm -f "inotifywatch.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytoolsL../libinotifytools/src -g -O2   -o inotifywatch  inotifywatch.o common.obinotifytools/src/libinotifytools.la
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywatch inotif.o common.o  -L/root/inotify-tools-3.13/libinotifytools/src ../libinotifysrc/.libs/libinotifytools.so  -Wl,--rpath -Wl,/usr/local/lib
creating inotifywatch
make[2]: 进入目录“/root/inotify-tools-3.13/src”
make[3]: 进入目录“/root/inotify-tools-3.13”
make[3]: 离开目录“/root/inotify-tools-3.13”
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"/bin/sh ../libtool --mode=install /usr/bin/install -c 'inotifywait' '/ual/bin/inotifywait'
/usr/bin/install -c .libs/inotifywait /usr/local/bin/inotifywait/bin/sh ../libtool --mode=install /usr/bin/install -c 'inotifywatch' '/cal/bin/inotifywatch'
/usr/bin/install -c .libs/inotifywatch /usr/local/bin/inotifywatch
make[2]: 对“install-data-am”无需做任何事。
make[2]: 离开目录“/root/inotify-tools-3.13/src”
make[1]: 离开目录“/root/inotify-tools-3.13/src”
Making install in man
make[1]: 进入目录“/root/inotify-tools-3.13/man”
make[2]: 进入目录“/root/inotify-tools-3.13”
make[2]: 离开目录“/root/inotify-tools-3.13”
make[2]: 进入目录“/root/inotify-tools-3.13/man”
make[3]: 进入目录“/root/inotify-tools-3.13”
make[3]: 离开目录“/root/inotify-tools-3.13”
make[2]: 对“install-exec-am”无需做任何事。
test -z "/usr/local/share/man/man1" || mkdir -p -- "/usr/local/share/man//usr/bin/install -c -m 644 './inotifywait.1' '/usr/local/share/man/man1/ywait.1'/usr/bin/install -c -m 644 './inotifywatch.1' '/usr/local/share/man/man1fywatch.1'
make[2]: 离开目录“/root/inotify-tools-3.13/man”
make[1]: 离开目录“/root/inotify-tools-3.13/man”
make[1]: 进入目录“/root/inotify-tools-3.13”
make[2]: 进入目录“/root/inotify-tools-3.13”
make[2]: 对“install-exec-am”无需做任何事。
make[2]: 对“install-data-am”无需做任何事。
make[2]: 离开目录“/root/inotify-tools-3.13”
make[1]: 离开目录“/root/inotify-tools-3.13”
[root@nfs inotify-tools-3.13]# lw
bash: lw: 未找到命令...
[root@nfs inotify-tools-3.13]# ls
aclocal.m4      config.h.in    configure.ac     libtool      missing
AUTHORS         config.h.in~   COPYING          ltmain.sh    NEWS
autom4te.cache  config.log     depcomp          Makefile     README
ChangeLog       config.status  INSTALL          Makefile.am  src
config.guess    config.sub     install-sh       Makefile.in  stamp-h1
config.h        configure      libinotifytools  man
[root@nfs inotify-tools-3.13]# cd /
[root@nfs /]# find / -name inotifywait
find: ‘/run/user/1000/gvfs’: 权限不够
/root/inotify-tools-3.13/src/.libs/inotifywait
/root/inotify-tools-3.13/src/inotifywait
/usr/local/bin/inotifywait
[root@nfs /]# cd /usr/local/bin
[root@nfs bin]# ls
inotifywait  inotifywatch
[root@nfs bin]# cd /
[root@nfs /]# ls
bin   code  etc   lib    media  opt   root  sbin   srv  tmp  var
boot  dev   home  lib64  mnt    proc  run   share  sys  usr
[root@nfs /]# vim rsync.sh

编写rsync.sh

[root@nfs /]# vim rsync.sh
[root@nfs /]# cat rsync.sh
/usr/local/bin/inotifywait -mrq -e create,modify,delete,move,attrib |whilevents
dorsync -a --delete /share/ root@192.168.235.100:/backupecho "$(date +'%F %T')发生$events">>/var/log/rsync.log 2>&1
done[root@nfs /]# vim rsync.sh
[root@nfs /]# cat rsync.sh
/usr/local/bin/inotifywait -mrq -e create,modify,delete,move,attrib /sharle read events
dorsync -a --delete /share/ root@192.168.235.100:/backupecho "$(date +'%F %T')发生$events">>/var/log/rsync.log 2>&1
done

chmod +x

[root@nfs /]# chmod rsync.sh
chmod: "rsync.sh" 后缺少操作数
Try 'chmod --help' for more information.
[root@nfs /]# ll rsync.sh
-rw-r--r--. 1 root root 230 621 17:12 rsync.sh
[root@nfs /]# chmod +x rsync.sh
[root@nfs /]# ll rsymc.sh
ls: 无法访问rsymc.sh: 没有那个文件或目录
[root@nfs /]# ll rsync.sh
-rwxr-xr-x. 1 root root 230 621 17:12 rsync.sh

nohup /rsync.sh &

[root@nfs /]# ls
bin   code  etc   lib    media  opt   root      run   share  sys  usr
boot  dev   home  lib64  mnt    proc  rsync.sh  sbin  srv    tmp  var
[root@nfs /]# nohup rsync.sh &
[1] 108565
[root@nfs /]# nohup: 忽略输入并把输出追加到"nohup.out"
nohup: 无法运行命令"rsync.sh": 没有那个文件或目录
jobs
[1]+  退出 127              nohup rsync.sh
[root@nfs /]# jobs -l
[root@nfs /]# jobs -1
-bash: jobs: -1: 无效选项
jobs: 用法:jobs [-lnprs] [任务声明 ...]jobs -x 命令 [参数]
[root@nfs /]# jobs l
-bash: jobs: l: 无此任务
[root@nfs /]# jobs
[root@nfs /]# jobs
[root@nfs /]# lw
bash: lw: 未找到命令...
[root@nfs /]# ls
bin   dev   lib    mnt        proc      run    srv  usr
boot  etc   lib64  nohup.out  root      sbin   sys  var
code  home  media  opt        rsync.sh  share  tmp
[root@nfs /]# nohup rsync.sh &
[1] 109025
[root@nfs /]# nohup: 忽略输入并把输出追加到"nohup.out"
nohup: 无法运行命令"rsync.sh": 没有那个文件或目录
jobs
[1]+  退出 127              nohup rsync.sh
[root@nfs /]# ls
bin   dev   lib    mnt        proc      run    srv  usr
boot  etc   lib64  nohup.out  root      sbin   sys  var
code  home  media  opt        rsync.sh  share  tmp
[root@nfs /]# jobs
[root@nfs /]#  nohup /rsync.sh &
[1] 110027
[root@nfs /]# nohup: 忽略输入并把输出追加到"nohup.out"
jobs
[1]+  运行中               nohup /rsync.sh &
[root@nfs /]# jobs
[1]+  运行中               nohup /rsync.sh &
[root@nfs /]# cat /var/log/rsync.log
cat: /var/log/rsync.log: 没有那个文件或目录
[root@nfs /]# cat rsync.sh
/usr/local/bin/inotifywait -mrq -e create,modify,delete,move,attrib /sharle read events
dorsync -a --delete /share/ root@192.168.235.100:/backupecho "$(date +'%F %T')发生$events">>/var/log/rsync.log 2>&1
done

设置免密

[root@nfs /]# cat /var/log/rsync.log
cat: /var/log/rsync.log: 没有那个文件或目录
[root@nfs /]# 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:ke9pIm2avxogCrQdzcDklvtR7Mo46pirjBZwMmcQgRQ root@nfs.cn
The key's randomart image is:
+---[RSA 2048]----+
|=E+o             |
|o ..= .  .       |
| o = o oo        |
|= B o o  o       |
|oB.o.. .S .      |
|.o .+.o. . .     |
|. .o +o + +      |
|+o. .  * o       |
|X=    +oo.       |
+----[SHA256]-----+
[root@nfs /]# ssh-copy-id root@192.168.235.100
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssha.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to  out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you areted now it is to install the new keys
root@192.168.235.100's password:Number of key(s) added: 1Now try logging into the machine, with:   "ssh 'root@192.168.235.100'"
and check to make sure that only the key(s) you wanted were added.[root@nfs /]# ssh root@192.168.235.100
Last login: Sat Jun 21 16:21:03 2025 from 192.168.235.1
[root@backup ~]# ls
2010    aa2              file2.java  file6.java  initial-setup-ks.cfg  sh
23.txt  aa3              file3.java  file7.java  linux.txt
2.java  anaconda-ks.cfg  file4.java  file8.java  q
aa1     file1.java       file5.java  file9.java  rsync_java.sh
[root@backup ~]# cd /
[root@backup /]# ls
1.jpg  backup  dev   inotify-tools-3.13.tar.gz  media  proc  sbin  tmp
2010   bin     etc   lib                        mnt    root  srv   usr
2.mp4  boot    home  lib64                      opt    run   sys   var
[root@backup /]# ls backup
app1_java  app_java
[root@backup /]# bye
bash: bye: 未找到命令...
[root@backup /]# exit
登出

web /backup

[root@backup ~]# cd /
[root@backup /]# ls
1.jpg  backup  dev   inotify-tools-3.13.tar.gz  media  proc  sbin  tmp
2010   bin     etc   lib                        mnt    root  srv   usr
2.mp4  boot    home  lib64                      opt    run   sys   var
[root@backup /]# ls
1.jpg  backup  dev   inotify-tools-3.13.tar.gz  media  proc  sbin  tmp
2010   bin     etc   lib                        mnt    root  srv   usr
2.mp4  boot    home  lib64                      opt    run   sys   var
[root@backup /]# cd /
[root@backup /]# ls
1.jpg  backup  dev   inotify-tools-3.13.tar.gz  media  proc  sbin  tmp
2010   bin     etc   lib                        mnt    root  srv   usr
2.mp4  boot    home  lib64                      opt    run   sys   var
[root@backup /]# cd backup
[root@backup backup]# ls
app1_java  app_java
[root@backup backup]# ls
app1_java  app_java

测试

[root@nfs /]# rsync -a --delete /share/ root@192.168.235.100:/backup
[root@backup backup]# ls
app1_java  app_java
[root@backup backup]# ls
app1_java  app_java
[root@backup backup]# ls
1.jpg  2.mp4
[root@nfs share]# ls
1.jpg  2.mp4  3.jpg
[root@nfs share]# cat nohup.out
cat: nohup.out: 没有那个文件或目录
[root@nfs share]# cd /
[root@nfs /]# cat nohup.out
[root@nfs /]# cat /var/log/rsync.log
2025-06-21 18:47:32发生/share/ CREATE 3.jpg
2025-06-21 18:47:43发生/share/ MODIFY 3.jpg
2025-06-21 18:47:54发生/share/ MODIFY 3.jpg
2025-06-21 18:48:04发生/share/ MODIFY 3.jpg
[root@backup backup]# ls
1.jpg  2.mp4  3.jpg
[root@backup backup]#

mount -t nfs nfsip:/nfs /web

在这里插入图片描述

NFS /etc/exports

在这里插入图片描述
共享目录 共享选项
/share 网段(ro,sync)
搭配mount -t nfs nfsip:/share/ /web使用

FTP ftpusers user_list

在这里插入图片描述

FTP /etc/hosts.deny

web


[root@web caozx26]# cat /etc/hosts.deny
#
# hosts.deny    This file contains access rules which are used to
#               deny connections to network services that either use
#               the tcp_wrappers library or that have been
#               started through a tcp_wrappers-enabled xinetd.
#
#               The rules in this file can also be set up in
#               /etc/hosts.allow with a 'deny' option instead.
#
#               See 'man 5 hosts_options' and 'man 5 hosts_access'
#               for information on rule syntax.
#               See 'man tcpd' for information on tcp_wrappers
#
vsftpd:all

nfs

[root@nfs ~]# cd /
[root@nfs /]# ls
bin   code  etc   lib    media  nohup.out  proc  rsync.sh  sbin   srv  tmp  var
boot  dev   home  lib64  mnt    opt        root  run       share  sys  usr
[root@nfs /]# cd /share
[root@nfs share]# ls
1.jpg  2.mp4  3.jpg
[root@nfs share]# ls
1.jpg  2.mp4  3.jpg  4.jpg
[root@nfs share]#

web

[root@web caozx26]# ls /var/www/html/media
1.jpg  2.mp4  3.jpg  4.jpg
[root@web caozx26]#

不影响nfs
backup

[root@backup /]# ls
1.jpg  backup  dev   inotify-tools-3.13.tar.gz  media  proc  sbin  tmp
2010   bin     etc   lib                        mnt    root  srv   usr
2.mp4  boot    home  lib64                      opt    run   sys   var
[root@backup /]# cd /backup
[root@backup backup]# ls
1.jpg  2.mp4  3.jpg  4.jpg
[root@backup backup]#

nfs

[root@nfs share]# cat /vat/log/rsync.log
cat: /vat/log/rsync.log: 没有那个文件或目录
[root@nfs share]# cat /var/log/rsync.log
2025-06-21 18:47:32发生/share/ CREATE 3.jpg
2025-06-21 18:47:43发生/share/ MODIFY 3.jpg
2025-06-21 18:47:54发生/share/ MODIFY 3.jpg
2025-06-21 18:48:04发生/share/ MODIFY 3.jpg
2025-06-21 20:30:18发生/share/ CREATE 4.jpg
2025-06-21 20:30:29发生/share/ MODIFY 4.jpg
[root@nfs share]#
[root@nfs share]# ftp 192.168.235.10
ftp: connect: 拒绝连接
ftp>

ftp连接失败

web

[root@web caozx26]# systemctl status vsftpd
Unit vsftpd.service could not be found.
[root@web caozx26]# rpm -q vsftpd
未安装软件包 vsftpd
[root@web caozx26]# rpm -qa|grep vsftpd
[root@web caozx26]#

没安装ftp吗
NFS

[root@nfs share]# ftp 192.168.235.10
ftp: connect: 拒绝连接
ftp>

backup

[root@backup backup]# ftp 192.168.235.10
ftp: connect: 拒绝连接
ftp>

web

[root@web caozx26]# jobs
[root@web caozx26]# systemctl status vsftpd
Unit vsftpd.service could not be found.
[root@web caozx26]# rpm -q vsftpd
未安装软件包 vsftpd
[root@web caozx26]# rpm -qa|grep vsftpd
[root@web caozx26]# yum install vsftpd
已加载插件:fastestmirror, langpacks
Determining fastest mirrors
local1                                                  | 3.6 kB     00:00
正在解决依赖关系
--> 正在检查事务
---> 软件包 vsftpd.x86_64.0.3.0.2-28.el7 将被 安装
--> 解决依赖关系完成依赖关系解决===============================================================================Package         架构            版本                    源               大小
===============================================================================
正在安装:vsftpd          x86_64          3.0.2-28.el7            local1          172 k事务概要
===============================================================================
安装  1 软件包总下载量:172 k
安装大小:353 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction正在安装    : vsftpd-3.0.2-28.el7.x86_64                                 1/1验证中      : vsftpd-3.0.2-28.el7.x86_64                                 1/1已安装:vsftpd.x86_64 0:3.0.2-28.el7完毕!
[root@web caozx26]# systemctl start vsftpd
[root@web caozx26]# systemctl enable vsftpd
Created symlink from /etc/systemd/system/multi-user.target.wants/vsftpd.service to /usr/lib/systemd/system/vsftpd.service.
[root@web caozx26]#

backup

[root@backup backup]# ftp 192.168.235.10
Connected to 192.168.235.10 (192.168.235.10).
220 (vsFTPd 3.0.2)
Name (192.168.235.10:root): root
530 Permission denied.
Login failed.
ftp> bye
221 Goodbye.
[root@backup backup]# ftp 192.168.235.10
Connected to 192.168.235.10 (192.168.235.10).
220 (vsFTPd 3.0.2)
Name (192.168.235.10:root): code
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

nfs

[root@nfs share]# ftp 192.168.235.10
Connected to 192.168.235.10 (192.168.235.10).
421 Service not available.
ftp>

web

[root@web caozx26]# vim /etc/hosts.deny
[root@web caozx26]# cat /etc/hosts.deny
#
# hosts.deny    This file contains access rules which are used to
#               deny connections to network services that either use
#               the tcp_wrappers library or that have been
#               started through a tcp_wrappers-enabled xinetd.
#
#               The rules in this file can also be set up in
#               /etc/hosts.allow with a 'deny' option instead.
#
#               See 'man 5 hosts_options' and 'man 5 hosts_access'
#               for information on rule syntax.
#               See 'man tcpd' for information on tcp_wrappers
#
vsftpd:192.168.235.0/24 EXCEPT 192.168.235.3
[root@web caozx26]# systemctl restart vsftpd
[root@web caozx26]#

nfs

[root@nfs share]# ftp 192.168.235.10
Connected to 192.168.235.10 (192.168.235.10).
220 (vsFTPd 3.0.2)
Name (192.168.235.10:root): code
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bye
221 Goodbye.
[root@nfs share]#

backup

[root@backup backup]# ftp 192.168.235.10
Connected to 192.168.235.10 (192.168.235.10).
421 Service not available.
ftp>

web


[root@web caozx26]# vim /etc/hosts.deny
[root@web caozx26]# cat /etc/hosts.deny
#
# hosts.deny    This file contains access rules which are used to
#               deny connections to network services that either use
#               the tcp_wrappers library or that have been
#               started through a tcp_wrappers-enabled xinetd.
#
#               The rules in this file can also be set up in
#               /etc/hosts.allow with a 'deny' option instead.
#
#               See 'man 5 hosts_options' and 'man 5 hosts_access'
#               for information on rule syntax.
#               See 'man tcpd' for information on tcp_wrappers
#
vsftpd:192.168.235.3:allow
[root@web caozx26]# systemctl restart vsftpd
[root@web caozx26]#

nfs

[root@nfs share]# ftp 192.168.235.10
Connected to 192.168.235.10 (192.168.235.10).
220 (vsFTPd 3.0.2)
Name (192.168.235.10:root): code
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bye
221 Goodbye.
[root@nfs share]#

backup

[root@backup backup]# ftp 192.168.235.10
Connected to 192.168.235.10 (192.168.235.10).
220 (vsFTPd 3.0.2)
Name (192.168.235.10:root): code
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>

SAMBA

环境配置

hostname

[root@web caozx26]# hostnamectl set-hostname samba.web.cn
[root@web caozx26]# hostname
samba.web.cn
[root@web caozx26]# su
[root@samba caozx26]# hostname
samba.web.cn

ip

[root@samba caozx26]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00inet 127.0.0.1/8 scope host lovalid_lft forever preferred_lft foreverinet6 ::1/128 scope hostvalid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000link/ether 00:0c:29:d6:84:b3 brd ff:ff:ff:ff:ff:ffinet 192.168.235.10/24 brd 192.168.235.255 scope global ens33valid_lft forever preferred_lft foreverinet6 fe80::20c:29ff:fed6:84b3/64 scope linkvalid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000link/ether 52:54:00:d1:59:30 brd ff:ff:ff:ff:ff:ffinet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000link/ether 52:54:00:d1:59:30 brd ff:ff:ff:ff:ff:ff

防火墙,selinux

[root@samba caozx26]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemonLoaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:firewalld(1)
[root@samba caozx26]# setenforce 0
[root@samba 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

yum

[root@samba caozx26]# yum repolist
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
源标识                             源名称                                 状态
local1                             local yum                              4,070
repolist: 4,070

安装

[root@samba caozx26]# yum install samba -y
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
正在解决依赖关系
--> 正在检查事务
---> 软件包 samba.x86_64.0.4.10.16-5.el7 将被 安装
--> 正在处理依赖关系 samba-libs = 4.10.16-5.el7,它被软件包 samba-4.10.16-5.el7.x86_64 需要
--> 正在处理依赖关系 samba-common-tools = 4.10.16-5.el7,它被软件包 samba-4.10.16-5.el7.x86_64 需要
--> 正在处理依赖关系 libxattr-tdb-samba4.so(SAMBA_4.10.16)(64bit),它被软件包 samba-4.10.16-5.el7.x86_64 需要
--> 正在处理依赖关系 libxattr-tdb-samba4.so()(64bit),它被软件包 samba-4.10.16-5.el7.x86_64 需要
--> 正在检查事务
---> 软件包 samba-common-tools.x86_64.0.4.10.16-5.el7 将被 安装
---> 软件包 samba-libs.x86_64.0.4.10.16-5.el7 将被 安装
--> 正在处理依赖关系 libpytalloc-util.so.2(PYTALLOC_UTIL_2.1.9)(64bit),它被软件包 samba-libs-4.10.16-5.el7.x86_64 需要
--> 正在处理依赖关系 libpytalloc-util.so.2(PYTALLOC_UTIL_2.1.6)(64bit),它被软件包 samba-libs-4.10.16-5.el7.x86_64 需要
--> 正在处理依赖关系 libpytalloc-util.so.2(PYTALLOC_UTIL_2.0.6)(64bit),它被软件包 samba-libs-4.10.16-5.el7.x86_64 需要
--> 正在处理依赖关系 libpytalloc-util.so.2()(64bit),它被软件包 samba-libs-4.10.16-5.el7.x86_64 需要
--> 正在处理依赖关系 libpyldb-util.so.1()(64bit),它被软件包 samba-libs-4.10.16-5.el7.x86_64 需要
--> 正在检查事务
---> 软件包 pyldb.x86_64.0.1.5.4-1.el7 将被 安装
--> 正在处理依赖关系 python-tdb(x86-64) >= 1.3.18,它被软件包 pyldb-1.5.4-1.el7.x86_64 需要
---> 软件包 pytalloc.x86_64.0.2.1.16-1.el7 将被 安装
--> 正在检查事务
---> 软件包 python-tdb.x86_64.0.1.3.18-1.el7 将被 安装
--> 解决依赖关系完成依赖关系解决===============================================================================Package                  架构         版本                 源            大小
===============================================================================
正在安装:samba                    x86_64       4.10.16-5.el7        local1       717 k
为依赖而安装:pyldb                    x86_64       1.5.4-1.el7          local1        49 kpytalloc                 x86_64       2.1.16-1.el7         local1        18 kpython-tdb               x86_64       1.3.18-1.el7         local1        20 ksamba-common-tools       x86_64       4.10.16-5.el7        local1       464 ksamba-libs               x86_64       4.10.16-5.el7        local1       269 k事务概要
===============================================================================
安装  1 软件包 (+5 依赖软件包)总下载量:1.5 M
安装大小:4.1 M
Downloading packages:
-------------------------------------------------------------------------------
总计                                              5.0 MB/s | 1.5 MB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction正在安装    : python-tdb-1.3.18-1.el7.x86_64                             1/6正在安装    : pyldb-1.5.4-1.el7.x86_64                                   2/6正在安装    : pytalloc-2.1.16-1.el7.x86_64                               3/6正在安装    : samba-libs-4.10.16-5.el7.x86_64                            4/6正在安装    : samba-common-tools-4.10.16-5.el7.x86_64                    5/6正在安装    : samba-4.10.16-5.el7.x86_64                                 6/6验证中      : samba-libs-4.10.16-5.el7.x86_64                            1/6验证中      : pyldb-1.5.4-1.el7.x86_64                                   2/6验证中      : samba-common-tools-4.10.16-5.el7.x86_64                    3/6验证中      : samba-4.10.16-5.el7.x86_64                                 4/6验证中      : pytalloc-2.1.16-1.el7.x86_64                               5/6验证中      : python-tdb-1.3.18-1.el7.x86_64                             6/6已安装:samba.x86_64 0:4.10.16-5.el7作为依赖被安装:pyldb.x86_64 0:1.5.4-1.el7         pytalloc.x86_64 0:2.1.16-1.el7python-tdb.x86_64 0:1.3.18-1.el7   samba-common-tools.x86_64 0:4.10.16-5.el7samba-libs.x86_64 0:4.10.16-5.el7完毕!
[root@samba caozx26]# rpm -qa|grep ^samba
samba-common-tools-4.10.16-5.el7.x86_64
samba-client-4.10.16-5.el7.x86_64
samba-common-libs-4.10.16-5.el7.x86_64
samba-libs-4.10.16-5.el7.x86_64
samba-client-libs-4.10.16-5.el7.x86_64
samba-common-4.10.16-5.el7.noarch
samba-4.10.16-5.el7.x86_64
[root@samba caozx26]#

web

  ┌──────────────────────────────────────────────────────────────────────┐│                 • MobaXterm Personal Edition v23.2 •                 ││               (SSH client, X server and network tools)               ││                                                                      ││ ⮞ SSH session to code@192.168.235.10                                 ││   • Direct SSH      :  ✓                                             ││   • SSH compression :  ✓                                             ││   • SSH-browser     :  ✓                                             ││   • X11-forwarding  :(remote display is forwarded through SSH)  ││                                                                      ││ ⮞ For more info, ctrl+click on help or visit our website.            │└──────────────────────────────────────────────────────────────────────┘Last login: Sat Jun 21 08:42:20 2025 from 192.168.235.1
[code@web ~]$ ll /var/www/html/media
总用量 12
-rw-r--r--. 1 root root 8330 621 11:30 1.jpg
[code@web ~]$ cat /var/www/html/index.html
NFS666
[code@web ~]$ vim /var/www/html/index.html
[code@web ~]$ sudo su
1[sudo] code 的密码:
对不起,请重试。
[sudo] code 的密码:
code 不在 sudoers 文件中。此事将被报告。
[code@web ~]$ su - caozx26
密码:
上一次登录:五 620 20:48:05 CST 2025pts/1 上
[caozx26@web ~]$ sudo su
[sudo] caozx26 的密码:
[root@web caozx26]# ls
app  inotify.sh  公共  模板  视频  图片  文档  下载  音乐  桌面
[root@web caozx26]# cd  /
[root@web /]# cd /var/www/html/
[root@web html]# ls
index.html  media  meida
[root@web html]# cat index.html
NFS666
[root@web html]# vim index.html
[root@web html]# cat index.html
<img src="/share/1.jpg" alt="芒果" width="200" height="100">
[root@web html]# ls
index.html  media  meida
[root@web html]# ls media
1.jpg
[root@web html]# vim index.
Network error: Software caused connection abort───────────────────────────────────────────────────────────────────────────────Session stopped- Press <Return> to exit tab- Press R to restart session- Press S to save terminal output to file┌──────────────────────────────────────────────────────────────────────┐│                 • MobaXterm Personal Edition v23.2 •                 ││               (SSH client, X server and network tools)               ││                                                                      ││ ⮞ SSH session to code@192.168.235.10                                 ││   • Direct SSH      :  ✓                                             ││   • SSH compression :  ✓                                             ││   • SSH-browser     :  ✓                                             ││   • X11-forwarding  :(remote display is forwarded through SSH)  ││                                                                      ││ ⮞ For more info, ctrl+click on help or visit our website.            │└──────────────────────────────────────────────────────────────────────┘Last login: Sat Jun 21 10:00:47 2025 from 192.168.235.1
[code@web ~]$ cdv /var/www/html
bash: cdv: 未找到命令...
[code@web ~]$ cd /var/www/html
[code@web html]$ cat
^C
[code@web html]$ ls
index.html  media  meida
[code@web html]$ ls meida
[code@web html]$ vim index.html
[code@web html]$ su - caozx26
密码:
上一次登录:六 621 11:52:03 CST 2025pts/3 上
[caozx26@web ~]$ sudo su
[sudo] caozx26 的密码:
[root@web caozx26]# cat index.html
cat: index.html: 没有那个文件或目录
[root@web caozx26]# vim index.html
[root@web caozx26]# ls
app  inotify.sh  公共  模板  视频  图片  文档  下载  音乐  桌面
[root@web caozx26]# cd /var/www/html
[root@web html]# ls
index.html  media  meida
[root@web html]# cat index.html
<img src="/share/1.jpg" alt="芒果" width="200" height="100">
[root@web html]# ll media
总用量 12
-rw-r--r--. 1 root root 8330 621 11:30 1.jpg
[root@web html]# vim index.html
[root@web html]# cat index.html
<img src="media/1.jpg" alt="芒果" width="200" height="100">
[root@web html]# ls
index.html  media  meida
[root@web html]# cd media
[root@web media]# ls
1.jpg  2.mp4
[root@web media]# cd ~
[root@web ~]# ls
2010      anaconda-ks.cfg       linux.txt  root@192.168.0.25
2011.txt  initial-setup-ks.cfg  q          shop
[root@web ~]# cd /var/www/html
[root@web html]# ls
index.html  media  meida
[root@web html]# cat index.html
<img src="media/1.jpg" alt="芒果" width="200" height="100">
[root@web html]# vim index.html
[root@web html]# cat index.html
<img src="media/1.jpg" alt="芒果" width="200" height="100">
<video width="900" height="450" controls><source src="media/2.mp4">
</video>
[root@web html]#
Network error: Software caused connection abort───────────────────────────────────────────────────────────────────────────────Session stopped- Press <Return> to exit tab- Press R to restart session- Press S to save terminal output to file┌──────────────────────────────────────────────────────────────────────┐│                 • MobaXterm Personal Edition v23.2 •                 ││               (SSH client, X server and network tools)               ││                                                                      ││ ⮞ SSH session to code@192.168.235.10                                 ││   • Direct SSH      :  ✓                                             ││   • SSH compression :  ✓                                             ││   • SSH-browser     :  ✓                                             ││   • X11-forwarding  :(remote display is forwarded through SSH)  ││                                                                      ││ ⮞ For more info, ctrl+click on help or visit our website.            │└──────────────────────────────────────────────────────────────────────┘Last login: Sat Jun 21 12:45:06 2025 from 192.168.235.1
[code@web ~]$ cd /var/wwww
-bash: cd: /var/wwww: 没有那个文件或目录
[code@web ~]$ cd /var/www
[code@web www]$
[code@web www]$ cd html
[code@web html]$ ls
index.html  media  meida
[code@web html]$ cat media
cat: media: 是一个目录
[code@web html]$ ls media
1.jpg  2.mp4  3.jpg
[code@web html]$
Network error: Software caused connection abort───────────────────────────────────────────────────────────────────────────────Session stopped- Press <Return> to exit tab- Press R to restart session- Press S to save terminal output to file┌──────────────────────────────────────────────────────────────────────┐│                 • MobaXterm Personal Edition v23.2 •                 ││               (SSH client, X server and network tools)               ││                                                                      ││ ⮞ SSH session to code@192.168.235.10                                 ││   • Direct SSH      :  ✓                                             ││   • SSH compression :  ✓                                             ││   • SSH-browser     :  ✓                                             ││   • X11-forwarding  :(remote display is forwarded through SSH)  ││                                                                      ││ ⮞ For more info, ctrl+click on help or visit our website.            │└──────────────────────────────────────────────────────────────────────┘Last login: Sat Jun 21 16:20:56 2025 from 192.168.235.1
[code@web ~]$ vim /etc/hosts.deny
[code@web ~]$ sudo su
[sudo] code 的密码:
code 不在 sudoers 文件中。此事将被报告。
[code@web ~]$ su - caozx26
密码:
上一次登录:六 621 12:48:02 CST 2025pts/1 上
[caozx26@web ~]$ sudo su
[sudo] caozx26 的密码:
[root@web caozx26]# vim /etc/hosts.deny
[root@web caozx26]# cat /etc/hosts.deny
#
# hosts.deny    This file contains access rules which are used to
#               deny connections to network services that either use
#               the tcp_wrappers library or that have been
#               started through a tcp_wrappers-enabled xinetd.
#
#               The rules in this file can also be set up in
#               /etc/hosts.allow with a 'deny' option instead.
#
#               See 'man 5 hosts_options' and 'man 5 hosts_access'
#               for information on rule syntax.
#               See 'man tcpd' for information on tcp_wrappers
#
vsftpd:all
[root@web caozx26]# ls /var/www/html/media
1.jpg  2.mp4  3.jpg  4.jpg
[root@web caozx26]# vim /etc/hosts.deny
[root@web caozx26]# cat /etc/hosts.deny
#
# hosts.deny    This file contains access rules which are used to
#               deny connections to network services that either use
#               the tcp_wrappers library or that have been
#               started through a tcp_wrappers-enabled xinetd.
#
#               The rules in this file can also be set up in
#               /etc/hosts.allow with a 'deny' option instead.
#
#               See 'man 5 hosts_options' and 'man 5 hosts_access'
#               for information on rule syntax.
#               See 'man tcpd' for information on tcp_wrappers
#
vsftpd:192.168.235.3
[root@web caozx26]# systemctl restart vsftpd
Failed to restart vsftpd.service: Unit not found.
[root@web caozx26]# kpns
bash: kpns: 未找到命令...
[root@web caozx26]# jpbs
bash: jpbs: 未找到命令...
[root@web caozx26]# jobs
[root@web caozx26]# systemctl status vsftpd
Unit vsftpd.service could not be found.
[root@web caozx26]# rpm -q vsftpd
未安装软件包 vsftpd
[root@web caozx26]# rpm -qa|grep vsftpd
[root@web caozx26]# yum install vsftpd
已加载插件:fastestmirror, langpacks
Determining fastest mirrors
local1                                                  | 3.6 kB     00:00
正在解决依赖关系
--> 正在检查事务
---> 软件包 vsftpd.x86_64.0.3.0.2-28.el7 将被 安装
--> 解决依赖关系完成依赖关系解决===============================================================================Package         架构            版本                    源               大小
===============================================================================
正在安装:vsftpd          x86_64          3.0.2-28.el7            local1          172 k事务概要
===============================================================================
安装  1 软件包总下载量:172 k
安装大小:353 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction正在安装    : vsftpd-3.0.2-28.el7.x86_64                                 1/1验证中      : vsftpd-3.0.2-28.el7.x86_64                                 1/1已安装:vsftpd.x86_64 0:3.0.2-28.el7完毕!
[root@web caozx26]# systemctl start vsftpd
[root@web caozx26]# systemctl enable vsftpd
Created symlink from /etc/systemd/system/multi-user.target.wants/vsftpd.service to /usr/lib/systemd/system/vsftpd.service.
[root@web caozx26]# cat /etc/hosts.deny
#
# hosts.deny    This file contains access rules which are used to
#               deny connections to network services that either use
#               the tcp_wrappers library or that have been
#               started through a tcp_wrappers-enabled xinetd.
#
#               The rules in this file can also be set up in
#               /etc/hosts.allow with a 'deny' option instead.
#
#               See 'man 5 hosts_options' and 'man 5 hosts_access'
#               for information on rule syntax.
#               See 'man tcpd' for information on tcp_wrappers
#
vsftpd:192.168.235.3
[root@web caozx26]# vim /etc/hosts.deny
[root@web caozx26]# cat /etc/hosts.deny
#
# hosts.deny    This file contains access rules which are used to
#               deny connections to network services that either use
#               the tcp_wrappers library or that have been
#               started through a tcp_wrappers-enabled xinetd.
#
#               The rules in this file can also be set up in
#               /etc/hosts.allow with a 'deny' option instead.
#
#               See 'man 5 hosts_options' and 'man 5 hosts_access'
#               for information on rule syntax.
#               See 'man tcpd' for information on tcp_wrappers
#
vsftpd:192.168.235.0/24 EXCEPT 192.168.235.3
[root@web caozx26]# systemctl restart vsftpd
[root@web caozx26]# cat /etc/hosts.deny
#
# hosts.deny    This file contains access rules which are used to
#               deny connections to network services that either use
#               the tcp_wrappers library or that have been
#               started through a tcp_wrappers-enabled xinetd.
#
#               The rules in this file can also be set up in
#               /etc/hosts.allow with a 'deny' option instead.
#
#               See 'man 5 hosts_options' and 'man 5 hosts_access'
#               for information on rule syntax.
#               See 'man tcpd' for information on tcp_wrappers
#
vsftpd:192.168.235.0/24 EXCEPT 192.168.235.3
[root@web caozx26]# vim /etc/hosts.deny
[root@web caozx26]# cat /etc/hosts.deny
#
# hosts.deny    This file contains access rules which are used to
#               deny connections to network services that either use
#               the tcp_wrappers library or that have been
#               started through a tcp_wrappers-enabled xinetd.
#
#               The rules in this file can also be set up in
#               /etc/hosts.allow with a 'deny' option instead.
#
#               See 'man 5 hosts_options' and 'man 5 hosts_access'
#               for information on rule syntax.
#               See 'man tcpd' for information on tcp_wrappers
#
vsftpd:192.168.235.3:allow
[root@web caozx26]# systemctl restart vsftpd
[root@web caozx26]# hostnamectl set-hostname samba.web.cn
[root@web caozx26]# hostname
samba.web.cn
[root@web caozx26]# su
[root@samba caozx26]# hostname
samba.web.cn
[root@samba caozx26]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00inet 127.0.0.1/8 scope host lovalid_lft forever preferred_lft foreverinet6 ::1/128 scope hostvalid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000link/ether 00:0c:29:d6:84:b3 brd ff:ff:ff:ff:ff:ffinet 192.168.235.10/24 brd 192.168.235.255 scope global ens33valid_lft forever preferred_lft foreverinet6 fe80::20c:29ff:fed6:84b3/64 scope linkvalid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000link/ether 52:54:00:d1:59:30 brd ff:ff:ff:ff:ff:ffinet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000link/ether 52:54:00:d1:59:30 brd ff:ff:ff:ff:ff:ff
[root@samba caozx26]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemonLoaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:firewalld(1)
[root@samba caozx26]# setenforce 0
[root@samba 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@samba caozx26]# yum repolist
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
源标识                             源名称                                 状态
local1                             local yum                              4,070
repolist: 4,070
[root@samba caozx26]# yum install samba -y
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
正在解决依赖关系
--> 正在检查事务
---> 软件包 samba.x86_64.0.4.10.16-5.el7 将被 安装
--> 正在处理依赖关系 samba-libs = 4.10.16-5.el7,它被软件包 samba-4.10.16-5.el7.x86_64 需要
--> 正在处理依赖关系 samba-common-tools = 4.10.16-5.el7,它被软件包 samba-4.10.16-5.el7.x86_64 需要
--> 正在处理依赖关系 libxattr-tdb-samba4.so(SAMBA_4.10.16)(64bit),它被软件包 samba-4.10.16-5.el7.x86_64 需要
--> 正在处理依赖关系 libxattr-tdb-samba4.so()(64bit),它被软件包 samba-4.10.16-5.el7.x86_64 需要
--> 正在检查事务
---> 软件包 samba-common-tools.x86_64.0.4.10.16-5.el7 将被 安装
---> 软件包 samba-libs.x86_64.0.4.10.16-5.el7 将被 安装
--> 正在处理依赖关系 libpytalloc-util.so.2(PYTALLOC_UTIL_2.1.9)(64bit),它被软件包 samba-libs-4.10.16-5.el7.x86_64 需要
--> 正在处理依赖关系 libpytalloc-util.so.2(PYTALLOC_UTIL_2.1.6)(64bit),它被软件包 samba-libs-4.10.16-5.el7.x86_64 需要
--> 正在处理依赖关系 libpytalloc-util.so.2(PYTALLOC_UTIL_2.0.6)(64bit),它被软件包 samba-libs-4.10.16-5.el7.x86_64 需要
--> 正在处理依赖关系 libpytalloc-util.so.2()(64bit),它被软件包 samba-libs-4.10.16-5.el7.x86_64 需要
--> 正在处理依赖关系 libpyldb-util.so.1()(64bit),它被软件包 samba-libs-4.10.16-5.el7.x86_64 需要
--> 正在检查事务
---> 软件包 pyldb.x86_64.0.1.5.4-1.el7 将被 安装
--> 正在处理依赖关系 python-tdb(x86-64) >= 1.3.18,它被软件包 pyldb-1.5.4-1.el7.x86_64 需要
---> 软件包 pytalloc.x86_64.0.2.1.16-1.el7 将被 安装
--> 正在检查事务
---> 软件包 python-tdb.x86_64.0.1.3.18-1.el7 将被 安装
--> 解决依赖关系完成依赖关系解决===============================================================================Package                  架构         版本                 源            大小
===============================================================================
正在安装:samba                    x86_64       4.10.16-5.el7        local1       717 k
为依赖而安装:pyldb                    x86_64       1.5.4-1.el7          local1        49 kpytalloc                 x86_64       2.1.16-1.el7         local1        18 kpython-tdb               x86_64       1.3.18-1.el7         local1        20 ksamba-common-tools       x86_64       4.10.16-5.el7        local1       464 ksamba-libs               x86_64       4.10.16-5.el7        local1       269 k事务概要
===============================================================================
安装  1 软件包 (+5 依赖软件包)总下载量:1.5 M
安装大小:4.1 M
Downloading packages:
-------------------------------------------------------------------------------
总计                                              5.0 MB/s | 1.5 MB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction正在安装    : python-tdb-1.3.18-1.el7.x86_64                             1/6正在安装    : pyldb-1.5.4-1.el7.x86_64                                   2/6正在安装    : pytalloc-2.1.16-1.el7.x86_64                               3/6正在安装    : samba-libs-4.10.16-5.el7.x86_64                            4/6正在安装    : samba-common-tools-4.10.16-5.el7.x86_64                    5/6正在安装    : samba-4.10.16-5.el7.x86_64                                 6/6验证中      : samba-libs-4.10.16-5.el7.x86_64                            1/6验证中      : pyldb-1.5.4-1.el7.x86_64                                   2/6验证中      : samba-common-tools-4.10.16-5.el7.x86_64                    3/6验证中      : samba-4.10.16-5.el7.x86_64                                 4/6验证中      : pytalloc-2.1.16-1.el7.x86_64                               5/6验证中      : python-tdb-1.3.18-1.el7.x86_64                             6/6已安装:samba.x86_64 0:4.10.16-5.el7作为依赖被安装:pyldb.x86_64 0:1.5.4-1.el7         pytalloc.x86_64 0:2.1.16-1.el7python-tdb.x86_64 0:1.3.18-1.el7   samba-common-tools.x86_64 0:4.10.16-5.el7samba-libs.x86_64 0:4.10.16-5.el7完毕!
[root@samba caozx26]# rpm -qa|grep ^samba
samba-common-tools-4.10.16-5.el7.x86_64
samba-client-4.10.16-5.el7.x86_64
samba-common-libs-4.10.16-5.el7.x86_64
samba-libs-4.10.16-5.el7.x86_64
samba-client-libs-4.10.16-5.el7.x86_64
samba-common-4.10.16-5.el7.noarch
samba-4.10.16-5.el7.x86_64
[root@samba caozx26]#

nfs

[root@localhost caozx26]# date
2025年 06月 21日 星期六 16:26:38 CST
[root@localhost caozx26]# cd /etc/ssh
[root@localhost ssh]# cat 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@localhost ssh]# 
Session stopped- Press <Return> to exit tab- Press R to restart session- Press S to save terminal output to file┌──────────────────────────────────────────────────────────────────────┐│                 • MobaXterm Personal Edition v23.2 •                 ││               (SSH client, X server and network tools)               ││                                                                      ││ ⮞ SSH session to caozx26@192.168.235.3                               ││   • Direct SSH      :  ✓                                             ││   • SSH compression :  ✓                                             ││   • SSH-browser     :  ✓                                             ││   • X11-forwarding  :(remote display is forwarded through SSH)  ││                                                                      ││ ⮞ For more info, ctrl+click on help or visit our website.            │└──────────────────────────────────────────────────────────────────────┘Last login: Sat Jun 21 08:42:25 2025 from 192.168.235.1
[caozx26@nfs ~]$ rsync
rsync  version 3.1.2  protocol version 31
Copyright (C) 1996-2015 by Andrew Tridgell, Wayne Davison, and others.
Web site: http://rsync.samba.org/
Capabilities:64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace,append, ACLs, xattrs, iconv, symtimes, preallocrsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
are welcome to redistribute it under certain conditions.  See the GNU
General Public Licence for details.rsync is a file transfer program capable of efficient remote update
via a fast differencing algorithm.Usage: rsync [OPTION]... SRC [SRC]... DESTor   rsync [OPTION]... SRC [SRC]... [USER@]HOST:DESTor   rsync [OPTION]... SRC [SRC]... [USER@]HOST::DESTor   rsync [OPTION]... SRC [SRC]... rsync://[USER@]HOST[:PORT]/DESTor   rsync [OPTION]... [USER@]HOST:SRC [DEST]or   rsync [OPTION]... [USER@]HOST::SRC [DEST]or   rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST]
The ':' usages connect via remote shell, while '::' & 'rsync://' usages connect
to an rsync daemon, and require SRC or DEST to start with a module name.Options-v, --verbose               increase verbosity--info=FLAGS            fine-grained informational verbosity--debug=FLAGS           fine-grained debug verbosity--msgs2stderr           special output handling for debugging-q, --quiet                 suppress non-error messages--no-motd               suppress daemon-mode MOTD (see manpage caveat)-c, --checksum              skip based on checksum, not mod-time & size-a, --archive               archive mode; equals -rlptgoD (no -H,-A,-X)--no-OPTION             turn off an implied OPTION (e.g. --no-D)-r, --recursive             recurse into directories-R, --relative              use relative path names--no-implied-dirs       don't send implied dirs with --relative-b, --backup                make backups (see --suffix & --backup-dir)--backup-dir=DIR        make backups into hierarchy based in DIR--suffix=SUFFIX         set backup suffix (default ~ w/o --backup-dir)-u, --update                skip files that are newer on the receiver--inplace               update destination files in-place (SEE MAN PAGE)--append                append data onto shorter files--append-verify         like --append, but with old data in file checksum-d, --dirs                  transfer directories without recursing-l, --links                 copy symlinks as symlinks-L, --copy-links            transform symlink into referent file/dir--copy-unsafe-links     only "unsafe" symlinks are transformed--safe-links            ignore symlinks that point outside the source tree--munge-links           munge symlinks to make them safer (but unusable)-k, --copy-dirlinks         transform symlink to a dir into referent dir-K, --keep-dirlinks         treat symlinked dir on receiver as dir-H, --hard-links            preserve hard links-p, --perms                 preserve permissions-E, --executability         preserve the file's executability--chmod=CHMOD           affect file and/or directory permissions-A, --acls                  preserve ACLs (implies --perms)-X, --xattrs                preserve extended attributes-o, --owner                 preserve owner (super-user only)-g, --group                 preserve group--devices               preserve device files (super-user only)--copy-devices          copy device contents as regular file--specials              preserve special files-D                          same as --devices --specials-t, --times                 preserve modification times-O, --omit-dir-times        omit directories from --times-J, --omit-link-times       omit symlinks from --times--super                 receiver attempts super-user activities--fake-super            store/recover privileged attrs using xattrs-S, --sparse                handle sparse files efficiently--preallocate           allocate dest files before writing them-n, --dry-run               perform a trial run with no changes made-W, --whole-file            copy files whole (without delta-xfer algorithm)-x, --one-file-system       don't cross filesystem boundaries-B, --block-size=SIZE       force a fixed checksum block-size-e, --rsh=COMMAND           specify the remote shell to use--rsync-path=PROGRAM    specify the rsync to run on the remote machine--existing              skip creating new files on receiver--ignore-existing       skip updating files that already exist on receiver--remove-source-files   sender removes synchronized files (non-dirs)--del                   an alias for --delete-during--delete                delete extraneous files from destination dirs--delete-before         receiver deletes before transfer, not during--delete-during         receiver deletes during the transfer--delete-delay          find deletions during, delete after--delete-after          receiver deletes after transfer, not during--delete-excluded       also delete excluded files from destination dirs--ignore-missing-args   ignore missing source args without error--delete-missing-args   delete missing source args from destination--ignore-errors         delete even if there are I/O errors--force                 force deletion of directories even if not empty--max-delete=NUM        don't delete more than NUM files--max-size=SIZE         don't transfer any file larger than SIZE--min-size=SIZE         don't transfer any file smaller than SIZE--partial               keep partially transferred files--partial-dir=DIR       put a partially transferred file into DIR--delay-updates         put all updated files into place at transfer's end-m, --prune-empty-dirs      prune empty directory chains from the file-list--numeric-ids           don't map uid/gid values by user/group name--usermap=STRING        custom username mapping--groupmap=STRING       custom groupname mapping--chown=USER:GROUP      simple username/groupname mapping--timeout=SECONDS       set I/O timeout in seconds--contimeout=SECONDS    set daemon connection timeout in seconds-I, --ignore-times          don't skip files that match in size and mod-time-M, --remote-option=OPTION  send OPTION to the remote side only--size-only             skip files that match in size--modify-window=NUM     compare mod-times with reduced accuracy-T, --temp-dir=DIR          create temporary files in directory DIR-y, --fuzzy                 find similar file for basis if no dest file--compare-dest=DIR      also compare destination files relative to DIR--copy-dest=DIR         ... and include copies of unchanged files--link-dest=DIR         hardlink to files in DIR when unchanged-z, --compress              compress file data during the transfer--compress-level=NUM    explicitly set compression level--skip-compress=LIST    skip compressing files with a suffix in LIST-C, --cvs-exclude           auto-ignore files the same way CVS does-f, --filter=RULE           add a file-filtering RULE-F                          same as --filter='dir-merge /.rsync-filter'repeated: --filter='- .rsync-filter'--exclude=PATTERN       exclude files matching PATTERN--exclude-from=FILE     read exclude patterns from FILE--include=PATTERN       don't exclude files matching PATTERN--include-from=FILE     read include patterns from FILE--files-from=FILE       read list of source-file names from FILE-0, --from0                 all *-from/filter files are delimited by 0s-s, --protect-args          no space-splitting; only wildcard special-chars--address=ADDRESS       bind address for outgoing socket to daemon--port=PORT             specify double-colon alternate port number--sockopts=OPTIONS      specify custom TCP options--blocking-io           use blocking I/O for the remote shell--stats                 give some file-transfer stats-8, --8-bit-output          leave high-bit chars unescaped in output-h, --human-readable        output numbers in a human-readable format--progress              show progress during transfer-P                          same as --partial --progress-i, --itemize-changes       output a change-summary for all updates--out-format=FORMAT     output updates using the specified FORMAT--log-file=FILE         log what we're doing to the specified FILE--log-file-format=FMT   log updates using the specified FMT--password-file=FILE    read daemon-access password from FILE--list-only             list the files instead of copying them--bwlimit=RATE          limit socket I/O bandwidth--outbuf=N|L|B          set output buffering to None, Line, or Block--write-batch=FILE      write a batched update to FILE--only-write-batch=FILE like --write-batch but w/o updating destination--read-batch=FILE       read a batched update from FILE--protocol=NUM          force an older protocol version to be used--iconv=CONVERT_SPEC    request charset conversion of filenames--checksum-seed=NUM     set block/file checksum seed (advanced)-4, --ipv4                  prefer IPv4-6, --ipv6                  prefer IPv6--version               print version number
(-h) --help                  show this help (-h is --help only if used alone)Use "rsync --daemon --help" to see the daemon-mode command-line options.
Please see the rsync(1) and rsyncd.conf(5) man pages for full documentation.
See http://rsync.samba.org/ for updates, bug reports, and answers
rsync error: syntax or usage error (code 1) at main.c(1552) [client=3.1.2]
[caozx26@nfs ~]$ ftp
bash: ftp: 未找到命令...
[caozx26@nfs ~]$ yum install vsftpd
已加载插件:fastestmirror, langpacks
您需要 root 权限执行此命令。
[caozx26@nfs ~]$ sudo su
[sudo] caozx26 的密码:
[root@nfs caozx26]# yum install vsftpd
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile* base: mirrors.aliyun.com* extras: mirrors.aliyun.com* updates: mirrors.aliyun.com
base                                                    | 3.6 kB     00:00
epel                                                    | 4.3 kB     00:00
extras                                                  | 2.9 kB     00:00
updates                                                 | 2.9 kB     00:00
正在解决依赖关系
--> 正在检查事务
---> 软件包 vsftpd.x86_64.0.3.0.2-29.el7_9 将被 安装
--> 解决依赖关系完成依赖关系解决===============================================================================Package        架构           版本                      源               大小
===============================================================================
正在安装:vsftpd         x86_64         3.0.2-29.el7_9            updates         173 k事务概要
===============================================================================
安装  1 软件包总下载量:173 k
安装大小:353 k
Is this ok [y/d/N]: y
Downloading packages:
vsftpd-3.0.2-29.el7_9.x86_64.rpm                          | 173 kB   00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction正在安装    : vsftpd-3.0.2-29.el7_9.x86_64                               1/1验证中      : vsftpd-3.0.2-29.el7_9.x86_64                               1/1已安装:vsftpd.x86_64 0:3.0.2-29.el7_9完毕!
[root@nfs caozx26]# systemctl start vsftpd
[root@nfs caozx26]# systemctl enable vsftpd
Created symlink from /etc/systemd/system/multi-user.target.wants/vsftpd.service to /usr/lib/systemd/system/vsftpd.service.
[root@nfs caozx26]# ftp 192.168.235.100
bash: ftp: 未找到命令...
[root@nfs caozx26]# ftp:192.168.235.100
bash: ftp:192.168.235.100: 未找到命令...
[root@nfs caozx26]# ftp 192.168.235.100
bash: ftp: 未找到命令...
[root@nfs caozx26]# ifconfig
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500inet 192.168.235.3  netmask 255.255.255.0  broadcast 192.168.235.255ether 00:0c:29:d8:7a:bb  txqueuelen 1000  (Ethernet)RX packets 618959  bytes 872469151 (832.0 MiB)RX errors 0  dropped 0  overruns 0  frame 0TX packets 90288  bytes 6494478 (6.1 MiB)TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536inet 127.0.0.1  netmask 255.0.0.0inet6 ::1  prefixlen 128  scopeid 0x10<host>loop  txqueuelen 1000  (Local Loopback)RX packets 1726  bytes 150304 (146.7 KiB)RX errors 0  dropped 0  overruns 0  frame 0TX packets 1726  bytes 150304 (146.7 KiB)TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500ether 52:54:00:62:f3:9e  txqueuelen 1000  (Ethernet)RX packets 0  bytes 0 (0.0 B)RX errors 0  dropped 0  overruns 0  frame 0TX packets 0  bytes 0 (0.0 B)TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0[root@nfs caozx26]# ifconfig ens33
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500inet 192.168.235.3  netmask 255.255.255.0  broadcast 192.168.235.255ether 00:0c:29:d8:7a:bb  txqueuelen 1000  (Ethernet)RX packets 619021  bytes 872474078 (832.0 MiB)RX errors 0  dropped 0  overruns 0  frame 0TX packets 90310  bytes 6497223 (6.1 MiB)TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0[root@nfs caozx26]# grep -v ^# /etc/vsftpd/vsftpd.conf
anonymous_enable=YES
local_enable=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=YESpam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
[root@nfs caozx26]# ftp 192.168.235.100
bash: ftp: 未找到命令...
[root@nfs caozx26]# which ftp
/usr/bin/which: no ftp in (/sbin:/bin:/usr/sbin:/usr/bin)
[root@nfs caozx26]# rpm -qa|grep ftp
vsftpd-3.0.2-29.el7_9.x86_64
[root@nfs caozx26]# rpm -q ftp
未安装软件包 ftp
[root@nfs caozx26]# yum install ftp
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile* base: mirrors.aliyun.com* extras: mirrors.aliyun.com* updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 ftp.x86_64.0.0.17-67.el7 将被 安装
--> 解决依赖关系完成依赖关系解决===============================================================================Package        架构              版本                   源               大小
===============================================================================
正在安装:ftp            x86_64            0.17-67.el7            base             61 k事务概要
===============================================================================
安装  1 软件包总下载量:61 k
安装大小:96 k
Is this ok [y/d/N]: y
Downloading packages:
ftp-0.17-67.el7.x86_64.rpm                                |  61 kB   00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction正在安装    : ftp-0.17-67.el7.x86_64                                     1/1验证中      : ftp-0.17-67.el7.x86_64                                     1/1已安装:ftp.x86_64 0:0.17-67.el7完毕!
[root@nfs caozx26]# which ftp
/bin/ftp
[root@nfs caozx26]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): root
530 Permission denied.
Login failed.
ftp> bye
221 Goodbye.
[root@nfs caozx26]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): root
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
ftp> bye
221 Goodbye.
[root@nfs caozx26]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): root
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (192,168,235,100,34,189).
150 Here comes the directory listing.
-rw-r--r--    1 0        0         6291456 May 15 13:30 2.java
drwxr-xr-x    2 0        0              38 May 13 12:19 2010
-rw-r--r--    1 0        0         4194304 May 13 12:09 23.txt
drwxr-xr-x    2 0        0               6 May 15 12:51 aa1
drwxr-xr-x    2 0        0               6 May 15 12:51 aa2
drwxr-xr-x    2 0        0               6 May 15 12:51 aa3
-rw-------    1 0        0            1827 Apr 16 21:53 anaconda-ks.cfg
-rw-r--r--    1 0        0               0 May 15 12:54 file1.java
-rw-r--r--    1 0        0               0 May 15 12:54 file2.java
-rw-r--r--    1 0        0               0 May 15 12:54 file3.java
-rw-r--r--    1 0        0               0 May 15 12:54 file4.java
-rw-r--r--    1 0        0               0 May 15 12:54 file5.java
-rw-r--r--    1 0        0               0 May 15 12:54 file6.java
-rw-r--r--    1 0        0               0 May 15 12:54 file7.java
-rw-r--r--    1 0        0               0 May 15 12:54 file8.java
-rw-r--r--    1 0        0               0 May 15 12:54 file9.java
-rw-r--r--    1 0        0            1875 Apr 16 22:04 initial-setup-ks.cfg
-rw-r--r--    1 0        0         4194304 May 13 10:57 linux.txt
drwxr-xr-x    2 0        0               6 May 13 12:37 q
-rwxr-xr-x    1 0        0              83 Jun 01 13:39 rsync_java.sh
drwxr-xr-x    2 0        0               6 May 13 12:02 shop
226 Directory send OK.
ftp> cd /
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (192,168,235,100,211,154).
150 Here comes the directory listing.
-rw-r--r--    1 0        0            8330 Jun 21 02:20 1.jpg
drwxr-xr-x    2 0        0               6 May 13 12:10 2010
drwxr-xr-x    4 0        0              39 Jun 01 13:10 backup
lrwxrwxrwx    1 0        0               7 Apr 16 21:40 bin -> usr/bin
dr-xr-xr-x    5 0        0            4096 Apr 16 21:53 boot
drwxr-xr-x   20 0        0            3300 Jun 20 20:33 dev
drwxr-xr-x  146 0        0            8192 Jun 21 02:39 etc
drwxr-xr-x    4 0        0              35 May 14 15:03 home
lrwxrwxrwx    1 0        0               7 Apr 16 21:40 lib -> usr/lib
lrwxrwxrwx    1 0        0               9 Apr 16 21:40 lib64 -> usr/lib64
drwxr-xr-x    2 0        0               6 Apr 11  2018 media
drwxr-xr-x    8 1001     1001         2048 Nov 04  2020 mnt
drwxr-xr-x    3 0        0              16 Apr 16 21:46 opt
dr-xr-xr-x  231 0        0               0 Jun 20 20:33 proc
drwxr-xr-x   12 0        0            4096 Jun 21 03:25 root
drwxr-xr-x   41 0        0            1220 Jun 21 03:18 run
lrwxrwxrwx    1 0        0               8 Apr 16 21:40 sbin -> usr/sbin
drwxr-xr-x    2 0        0               6 Apr 11  2018 srv
dr-xr-xr-x   13 0        0               0 Jun 20 20:33 sys
drwxrwxrwt   17 0        0            4096 Jun 21 03:18 tmp
drwxr-xr-x   13 0        0             155 Apr 16 21:40 usr
drwxr-xr-x   22 0        0            4096 Jun 21 02:39 var
226 Directory send OK.
ftp> get 1.jpg
local: 1.jpg remote: 1.jpg
227 Entering Passive Mode (192,168,235,100,219,72).
150 Opening BINARY mode data connection for 1.jpg (8330 bytes).
226 Transfer complete.
8330 bytes received in 0.00999 secs (833.75 Kbytes/sec)
ftp> bye
221 Goodbye.
[root@nfs caozx26]# cd /
[root@nfs /]# ls
bin   code  etc   lib    media  opt   root  sbin   srv  tmp  var
boot  dev   home  lib64  mnt    proc  run   share  sys  usr
[root@nfs /]# find / -name 1.jpg
find: ‘/run/user/1000/gvfs’: 权限不够
/home/caozx26/1.jpg
[root@nfs /]# mv /home/caozx26/1.jpg /
[root@nfs /]# ls
1.jpg  boot  dev  home  lib64  mnt  proc  run   share  sys  usr
bin    code  etc  lib   media  opt  root  sbin  srv    tmp  var
[root@nfs /]# mv 1.jpg /share
[root@nfs /]# cd /share
[root@nfs share]# ls
1.jpg
[root@nfs share]#
Network error: Software caused connection abort───────────────────────────────────────────────────────────────────────────────Session stopped- Press <Return> to exit tab- Press R to restart session- Press S to save terminal output to file┌──────────────────────────────────────────────────────────────────────┐│                 • MobaXterm Personal Edition v23.2 •                 ││               (SSH client, X server and network tools)               ││                                                                      ││ ⮞ SSH session to caozx26@192.168.235.3                               ││   • Direct SSH      :  ✓                                             ││   • SSH compression :  ✓                                             ││   • SSH-browser     :  ✓                                             ││   • X11-forwarding  :(remote display is forwarded through SSH)  ││                                                                      ││ ⮞ For more info, ctrl+click on help or visit our website.            │└──────────────────────────────────────────────────────────────────────┘Last login: Sat Jun 21 10:00:59 2025 from 192.168.235.1
[caozx26@nfs ~]$ ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:caozx26): root
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (192,168,235,100,210,250).
150 Here comes the directory listing.
-rw-r--r--    1 0        0         6291456 May 15 13:30 2.java
drwxr-xr-x    2 0        0              38 May 13 12:19 2010
-rw-r--r--    1 0        0         4194304 May 13 12:09 23.txt
drwxr-xr-x    2 0        0               6 May 15 12:51 aa1
drwxr-xr-x    2 0        0               6 May 15 12:51 aa2
drwxr-xr-x    2 0        0               6 May 15 12:51 aa3
-rw-------    1 0        0            1827 Apr 16 21:53 anaconda-ks.cfg
-rw-r--r--    1 0        0               0 May 15 12:54 file1.java
-rw-r--r--    1 0        0               0 May 15 12:54 file2.java
-rw-r--r--    1 0        0               0 May 15 12:54 file3.java
-rw-r--r--    1 0        0               0 May 15 12:54 file4.java
-rw-r--r--    1 0        0               0 May 15 12:54 file5.java
-rw-r--r--    1 0        0               0 May 15 12:54 file6.java
-rw-r--r--    1 0        0               0 May 15 12:54 file7.java
-rw-r--r--    1 0        0               0 May 15 12:54 file8.java
-rw-r--r--    1 0        0               0 May 15 12:54 file9.java
-rw-r--r--    1 0        0            1875 Apr 16 22:04 initial-setup-ks.cfg
-rw-r--r--    1 0        0         4194304 May 13 10:57 linux.txt
drwxr-xr-x    2 0        0               6 May 13 12:37 q
-rwxr-xr-x    1 0        0              83 Jun 01 13:39 rsync_java.sh
drwxr-xr-x    2 0        0               6 May 13 12:02 shop
226 Directory send OK.
ftp> cd /
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (192,168,235,100,207,146).
150 Here comes the directory listing.
-rw-r--r--    1 0        0            8330 Jun 21 02:20 1.jpg
-rw-r--r--    1 0        0         7803714 Jun 21 04:57 2.mp4
drwxr-xr-x    2 0        0               6 May 13 12:10 2010
drwxr-xr-x    4 0        0              39 Jun 01 13:10 backup
lrwxrwxrwx    1 0        0               7 Apr 16 21:40 bin -> usr/bin
dr-xr-xr-x    5 0        0            4096 Apr 16 21:53 boot
drwxr-xr-x   20 0        0            3300 Jun 20 20:33 dev
drwxr-xr-x  146 0        0            8192 Jun 21 02:39 etc
drwxr-xr-x    4 0        0              35 May 14 15:03 home
lrwxrwxrwx    1 0        0               7 Apr 16 21:40 lib -> usr/lib
lrwxrwxrwx    1 0        0               9 Apr 16 21:40 lib64 -> usr/lib64
drwxr-xr-x    2 0        0               6 Apr 11  2018 media
drwxr-xr-x    8 1001     1001         2048 Nov 04  2020 mnt
drwxr-xr-x    3 0        0              16 Apr 16 21:46 opt
dr-xr-xr-x  234 0        0               0 Jun 20 20:33 proc
drwxr-xr-x   12 0        0            4096 Jun 21 04:45 root
drwxr-xr-x   41 0        0            1220 Jun 21 03:18 run
lrwxrwxrwx    1 0        0               8 Apr 16 21:40 sbin -> usr/sbin
drwxr-xr-x    2 0        0               6 Apr 11  2018 srv
dr-xr-xr-x   13 0        0               0 Jun 20 20:33 sys
drwxrwxrwt   17 0        0            4096 Jun 21 03:18 tmp
drwxr-xr-x   13 0        0             155 Apr 16 21:40 usr
drwxr-xr-x   22 0        0            4096 Jun 21 02:39 var
226 Directory send OK.
ftp> lcd /share
Local directory now /share
ftp> !ls
1.jpg
ftp> ls
421 Timeout.
Passive mode refused.
ftp> bye
[caozx26@nfs ~]$ ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:caozx26): root
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (192,168,235,100,76,182).
150 Here comes the directory listing.
-rw-r--r--    1 0        0         6291456 May 15 13:30 2.java
drwxr-xr-x    2 0        0              38 May 13 12:19 2010
-rw-r--r--    1 0        0         4194304 May 13 12:09 23.txt
drwxr-xr-x    2 0        0               6 May 15 12:51 aa1
drwxr-xr-x    2 0        0               6 May 15 12:51 aa2
drwxr-xr-x    2 0        0               6 May 15 12:51 aa3
-rw-------    1 0        0            1827 Apr 16 21:53 anaconda-ks.cfg
-rw-r--r--    1 0        0               0 May 15 12:54 file1.java
-rw-r--r--    1 0        0               0 May 15 12:54 file2.java
-rw-r--r--    1 0        0               0 May 15 12:54 file3.java
-rw-r--r--    1 0        0               0 May 15 12:54 file4.java
-rw-r--r--    1 0        0               0 May 15 12:54 file5.java
-rw-r--r--    1 0        0               0 May 15 12:54 file6.java
-rw-r--r--    1 0        0               0 May 15 12:54 file7.java
-rw-r--r--    1 0        0               0 May 15 12:54 file8.java
-rw-r--r--    1 0        0               0 May 15 12:54 file9.java
-rw-r--r--    1 0        0            1875 Apr 16 22:04 initial-setup-ks.cfg
-rw-r--r--    1 0        0         4194304 May 13 10:57 linux.txt
drwxr-xr-x    2 0        0               6 May 13 12:37 q
-rwxr-xr-x    1 0        0              83 Jun 01 13:39 rsync_java.sh
drwxr-xr-x    2 0        0               6 May 13 12:02 shop
226 Directory send OK.
ftp> cd /
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (192,168,235,100,105,96).
150 Here comes the directory listing.
-rw-r--r--    1 0        0            8330 Jun 21 02:20 1.jpg
-rw-r--r--    1 0        0         7803714 Jun 21 04:57 2.mp4
drwxr-xr-x    2 0        0               6 May 13 12:10 2010
drwxr-xr-x    4 0        0              39 Jun 01 13:10 backup
lrwxrwxrwx    1 0        0               7 Apr 16 21:40 bin -> usr/bin
dr-xr-xr-x    5 0        0            4096 Apr 16 21:53 boot
drwxr-xr-x   20 0        0            3300 Jun 20 20:33 dev
drwxr-xr-x  146 0        0            8192 Jun 21 02:39 etc
drwxr-xr-x    4 0        0              35 May 14 15:03 home
lrwxrwxrwx    1 0        0               7 Apr 16 21:40 lib -> usr/lib
lrwxrwxrwx    1 0        0               9 Apr 16 21:40 lib64 -> usr/lib64
drwxr-xr-x    2 0        0               6 Apr 11  2018 media
drwxr-xr-x    8 1001     1001         2048 Nov 04  2020 mnt
drwxr-xr-x    3 0        0              16 Apr 16 21:46 opt
dr-xr-xr-x  233 0        0               0 Jun 20 20:33 proc
drwxr-xr-x   12 0        0            4096 Jun 21 04:45 root
drwxr-xr-x   41 0        0            1220 Jun 21 03:18 run
lrwxrwxrwx    1 0        0               8 Apr 16 21:40 sbin -> usr/sbin
drwxr-xr-x    2 0        0               6 Apr 11  2018 srv
dr-xr-xr-x   13 0        0               0 Jun 20 20:33 sys
drwxrwxrwt   17 0        0            4096 Jun 21 03:18 tmp
drwxr-xr-x   13 0        0             155 Apr 16 21:40 usr
drwxr-xr-x   22 0        0            4096 Jun 21 02:39 var
226 Directory send OK.
ftp> lcd /share
Local directory now /share
ftp> !ls
1.jpg
ftp> get 2.mp4
local: 2.mp4 remote: 2.mp4
local: 2.mp4: 权限不够
ftp> lcd /home/caozx26
Local directory now /home/caozx26
ftp> !ls
1236  atthistime.txt  now.txt  公共  模板  视频  图片  文档  下载  音乐  桌面
ftp> get 2.mp4
local: 2.mp4 remote: 2.mp4
227 Entering Passive Mode (192,168,235,100,234,104).
150 Opening BINARY mode data connection for 2.mp4 (7803714 bytes).
226 Transfer complete.
7803714 bytes received in 0.253 secs (30813.42 Kbytes/sec)
ftp> !ls
1236   atthistime.txt  公共  视频  文档  音乐
2.mp4  now.txt         模板  图片  下载  桌面
ftp> byt
?Invalid command
ftp> bye
221 Goodbye.
[caozx26@nfs ~]$ ls
1236   atthistime.txt  公共  视频  文档  音乐
2.mp4  now.txt         模板  图片  下载  桌面
[caozx26@nfs ~]$ sudo su
[sudo] caozx26 的密码:
[root@nfs caozx26]# cd /
[root@nfs /]# ls
bin   code  etc   lib    media  opt   root  sbin   srv  tmp  var
boot  dev   home  lib64  mnt    proc  run   share  sys  usr
[root@nfs /]# mv /home/caozx26 /share
[root@nfs /]# ls /share
1.jpg  caozx26
[root@nfs /]# cd /share
[root@nfs share]# ls
1.jpg  caozx26
[root@nfs share]# rm -rf caozx26
[root@nfs share]# ls
1.jpg
[root@nfs share]# cd /home/caozx26
bash: cd: /home/caozx26: 没有那个文件或目录
[root@nfs share]# su - caozx26
上一次登录:六 621 12:45:27 CST 2025192.168.235.1pts/1 上
su: 警告:无法更改到 /home/caozx26 目录: 没有那个文件或目录
-bash-4.2$ exit
登出
[root@nfs share]# ls
1.jpg
[root@nfs share]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): root
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (192,168,235,100,26,0).
150 Here comes the directory listing.
-rw-r--r--    1 0        0         6291456 May 15 13:30 2.java
drwxr-xr-x    2 0        0              38 May 13 12:19 2010
-rw-r--r--    1 0        0         4194304 May 13 12:09 23.txt
drwxr-xr-x    2 0        0               6 May 15 12:51 aa1
drwxr-xr-x    2 0        0               6 May 15 12:51 aa2
drwxr-xr-x    2 0        0               6 May 15 12:51 aa3
-rw-------    1 0        0            1827 Apr 16 21:53 anaconda-ks.cfg
-rw-r--r--    1 0        0               0 May 15 12:54 file1.java
-rw-r--r--    1 0        0               0 May 15 12:54 file2.java
-rw-r--r--    1 0        0               0 May 15 12:54 file3.java
-rw-r--r--    1 0        0               0 May 15 12:54 file4.java
-rw-r--r--    1 0        0               0 May 15 12:54 file5.java
-rw-r--r--    1 0        0               0 May 15 12:54 file6.java
-rw-r--r--    1 0        0               0 May 15 12:54 file7.java
-rw-r--r--    1 0        0               0 May 15 12:54 file8.java
-rw-r--r--    1 0        0               0 May 15 12:54 file9.java
-rw-r--r--    1 0        0            1875 Apr 16 22:04 initial-setup-ks.cfg
-rw-r--r--    1 0        0         4194304 May 13 10:57 linux.txt
drwxr-xr-x    2 0        0               6 May 13 12:37 q
-rwxr-xr-x    1 0        0              83 Jun 01 13:39 rsync_java.sh
drwxr-xr-x    2 0        0               6 May 13 12:02 shop
226 Directory send OK.
ftp> cd /
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (192,168,235,100,35,109).
150 Here comes the directory listing.
-rw-r--r--    1 0        0            8330 Jun 21 02:20 1.jpg
-rw-r--r--    1 0        0         7803714 Jun 21 04:57 2.mp4
drwxr-xr-x    2 0        0               6 May 13 12:10 2010
drwxr-xr-x    4 0        0              39 Jun 01 13:10 backup
lrwxrwxrwx    1 0        0               7 Apr 16 21:40 bin -> usr/bin
dr-xr-xr-x    5 0        0            4096 Apr 16 21:53 boot
drwxr-xr-x   20 0        0            3300 Jun 20 20:33 dev
drwxr-xr-x  146 0        0            8192 Jun 21 02:39 etc
drwxr-xr-x    4 0        0              35 May 14 15:03 home
lrwxrwxrwx    1 0        0               7 Apr 16 21:40 lib -> usr/lib
lrwxrwxrwx    1 0        0               9 Apr 16 21:40 lib64 -> usr/lib64
drwxr-xr-x    2 0        0               6 Apr 11  2018 media
drwxr-xr-x    8 1001     1001         2048 Nov 04  2020 mnt
drwxr-xr-x    3 0        0              16 Apr 16 21:46 opt
dr-xr-xr-x  234 0        0               0 Jun 20 20:33 proc
drwxr-xr-x   12 0        0            4096 Jun 21 04:45 root
drwxr-xr-x   41 0        0            1220 Jun 21 03:18 run
lrwxrwxrwx    1 0        0               8 Apr 16 21:40 sbin -> usr/sbin
drwxr-xr-x    2 0        0               6 Apr 11  2018 srv
dr-xr-xr-x   13 0        0               0 Jun 20 20:33 sys
drwxrwxrwt   17 0        0            4096 Jun 21 03:18 tmp
drwxr-xr-x   13 0        0             155 Apr 16 21:40 usr
drwxr-xr-x   22 0        0            4096 Jun 21 02:39 var
226 Directory send OK.
ftp> get 2.mp4
local: 2.mp4 remote: 2.mp4
227 Entering Passive Mode (192,168,235,100,30,81).
150 Opening BINARY mode data connection for 2.mp4 (7803714 bytes).
226 Transfer complete.
7803714 bytes received in 0.0574 secs (136014.82 Kbytes/sec)
ftp> bye
221 Goodbye.
[root@nfs share]# ls
1.jpg  2.mp4
[root@nfs share]#
Network error: Software caused connection abort───────────────────────────────────────────────────────────────────────────────Session stopped- Press <Return> to exit tab- Press R to restart session- Press S to save terminal output to file┌──────────────────────────────────────────────────────────────────────┐│                 • MobaXterm Personal Edition v23.2 •                 ││               (SSH client, X server and network tools)               ││                                                                      ││ ⮞ SSH session to caozx26@192.168.235.3                               ││   • Direct SSH      :  ✓                                             ││   • SSH compression :  ✓                                             ││   • SSH-browser     :  ✓                                             ││   • X11-forwarding  :(remote display is forwarded through SSH)  ││                                                                      ││ ⮞ For more info, ctrl+click on help or visit our website.            │└──────────────────────────────────────────────────────────────────────┘Last login: Sat Jun 21 13:13:02 2025
Could not chdir to home directory /home/caozx26: No such file or directory
/usr/bin/xauth:  error in locking authority file /home/caozx26/.Xauthority
-bash-4.2$ exit
登出───────────────────────────────────────────────────────────────────────────────Session stopped- Press <Return> to exit tab- Press R to restart session- Press S to save terminal output to file┌──────────────────────────────────────────────────────────────────────┐│                 • MobaXterm Personal Edition v23.2 •                 ││               (SSH client, X server and network tools)               ││                                                                      ││ ⮞ SSH session to caozx26@192.168.235.3                               ││   • Direct SSH      :  ✓                                             ││   • SSH compression :  ✓                                             ││   • SSH-browser     :  ✓                                             ││   • X11-forwarding  :(remote display is forwarded through SSH)  ││                                                                      ││ ⮞ For more info, ctrl+click on help or visit our website.            │└──────────────────────────────────────────────────────────────────────┘Last login: Sat Jun 21 16:21:05 2025 from 192.168.235.1
Could not chdir to home directory /home/caozx26: No such file or directory
/usr/bin/xauth:  error in locking authority file /home/caozx26/.Xauthority
-bash-4.2$
Network error: Software caused connection abort───────────────────────────────────────────────────────────────────────────────Session stopped- Press <Return> to exit tab- Press R to restart session- Press S to save terminal output to file
root@192.168.235.3's password:┌──────────────────────────────────────────────────────────────────────┐│                 • MobaXterm Personal Edition v23.2 •                 ││               (SSH client, X server and network tools)               ││                                                                      ││ ⮞ SSH session to root@192.168.235.3                                  ││   • Direct SSH      :  ✓                                             ││   • SSH compression :  ✓                                             ││   • SSH-browser     :  ✓                                             ││   • X11-forwarding  :  ✓  (remote display is forwarded through SSH)  ││                                                                      ││ ⮞ For more info, ctrl+click on help or visit our website.            │└──────────────────────────────────────────────────────────────────────┘Last login: Sat Jun 21 13:10:27 2025
/usr/bin/xauth:  file /root/.Xauthority does not exist
[root@nfs ~]# ftp 192.168.235.100
Connected to 192.168.235.100 (192.168.235.100).
220 (vsFTPd 3.0.2)
Name (192.168.235.100:root): root
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (192,168,235,100,179,106).
150 Here comes the directory listing.
-rw-r--r--    1 0        0         6291456 May 15 13:30 2.java
drwxr-xr-x    2 0        0              38 May 13 12:19 2010
-rw-r--r--    1 0        0         4194304 May 13 12:09 23.txt
drwxr-xr-x    2 0        0               6 May 15 12:51 aa1
drwxr-xr-x    2 0        0               6 May 15 12:51 aa2
drwxr-xr-x    2 0        0               6 May 15 12:51 aa3
-rw-------    1 0        0            1827 Apr 16 21:53 anaconda-ks.cfg
-rw-r--r--    1 0        0               0 May 15 12:54 file1.java
-rw-r--r--    1 0        0               0 May 15 12:54 file2.java
-rw-r--r--    1 0        0               0 May 15 12:54 file3.java
-rw-r--r--    1 0        0               0 May 15 12:54 file4.java
-rw-r--r--    1 0        0               0 May 15 12:54 file5.java
-rw-r--r--    1 0        0               0 May 15 12:54 file6.java
-rw-r--r--    1 0        0               0 May 15 12:54 file7.java
-rw-r--r--    1 0        0               0 May 15 12:54 file8.java
-rw-r--r--    1 0        0               0 May 15 12:54 file9.java
-rw-r--r--    1 0        0            1875 Apr 16 22:04 initial-setup-ks.cfg
-rw-r--r--    1 0        0         4194304 May 13 10:57 linux.txt
drwxr-xr-x    2 0        0               6 May 13 12:37 q
-rwxr-xr-x    1 0        0              83 Jun 01 13:39 rsync_java.sh
drwxr-xr-x    2 0        0               6 May 13 12:02 shop
226 Directory send OK.
ftp> cd .
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (192,168,235,100,176,83).
150 Here comes the directory listing.
-rw-r--r--    1 0        0         6291456 May 15 13:30 2.java
drwxr-xr-x    2 0        0              38 May 13 12:19 2010
-rw-r--r--    1 0        0         4194304 May 13 12:09 23.txt
drwxr-xr-x    2 0        0               6 May 15 12:51 aa1
drwxr-xr-x    2 0        0               6 May 15 12:51 aa2
drwxr-xr-x    2 0        0               6 May 15 12:51 aa3
-rw-------    1 0        0            1827 Apr 16 21:53 anaconda-ks.cfg
-rw-r--r--    1 0        0               0 May 15 12:54 file1.java
-rw-r--r--    1 0        0               0 May 15 12:54 file2.java
-rw-r--r--    1 0        0               0 May 15 12:54 file3.java
-rw-r--r--    1 0        0               0 May 15 12:54 file4.java
-rw-r--r--    1 0        0               0 May 15 12:54 file5.java
-rw-r--r--    1 0        0               0 May 15 12:54 file6.java
-rw-r--r--    1 0        0               0 May 15 12:54 file7.java
-rw-r--r--    1 0        0               0 May 15 12:54 file8.java
-rw-r--r--    1 0        0               0 May 15 12:54 file9.java
-rw-r--r--    1 0        0            1875 Apr 16 22:04 initial-setup-ks.cfg
-rw-r--r--    1 0        0         4194304 May 13 10:57 linux.txt
drwxr-xr-x    2 0        0               6 May 13 12:37 q
-rwxr-xr-x    1 0        0              83 Jun 01 13:39 rsync_java.sh
drwxr-xr-x    2 0        0               6 May 13 12:02 shop
226 Directory send OK.
ftp> cd /
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (192,168,235,100,175,1).
150 Here comes the directory listing.
-rw-r--r--    1 0        0            8330 Jun 21 02:20 1.jpg
-rw-r--r--    1 0        0         7803714 Jun 21 04:57 2.mp4
drwxr-xr-x    2 0        0               6 May 13 12:10 2010
drwxr-xr-x    4 0        0              39 Jun 01 13:10 backup
lrwxrwxrwx    1 0        0               7 Apr 16 21:40 bin -> usr/bin
dr-xr-xr-x    5 0        0            4096 Apr 16 21:53 boot
drwxr-xr-x   20 0        0            3300 Jun 20 20:33 dev
drwxr-xr-x  146 0        0            8192 Jun 21 02:39 etc
drwxr-xr-x    4 0        0              35 May 14 15:03 home
-rw-r--r--    1 0        0          389473 Jun 21 08:22 inotify-tools-3.13.tar.                gz
lrwxrwxrwx    1 0        0               7 Apr 16 21:40 lib -> usr/lib
lrwxrwxrwx    1 0        0               9 Apr 16 21:40 lib64 -> usr/lib64
drwxr-xr-x    2 0        0               6 Apr 11  2018 media
drwxr-xr-x    8 1001     1001         2048 Nov 04  2020 mnt
drwxr-xr-x    3 0        0              16 Apr 16 21:46 opt
dr-xr-xr-x  237 0        0               0 Jun 20 20:33 proc
drwxr-xr-x   12 0        0            4096 Jun 21 08:21 root
drwxr-xr-x   41 0        0            1220 Jun 21 03:18 run
lrwxrwxrwx    1 0        0               8 Apr 16 21:40 sbin -> usr/sbin
drwxr-xr-x    2 0        0               6 Apr 11  2018 srv
dr-xr-xr-x   13 0        0               0 Jun 20 20:33 sys
drwxrwxrwt   17 0        0            4096 Jun 21 08:25 tmp
drwxr-xr-x   13 0        0             155 Apr 16 21:40 usr
drwxr-xr-x   22 0        0            4096 Jun 21 02:39 var
226 Directory send OK.
ftp> get inotify-tools-3.13.tar.gz
local: inotify-tools-3.13.tar.gz remote: inotify-tools-3.13.tar.gz
227 Entering Passive Mode (192,168,235,100,81,21).
150 Opening BINARY mode data connection for inotify-tools-3.13.tar.gz (389473 b                ytes).
226 Transfer complete.
389473 bytes received in 0.00304 secs (128073.98 Kbytes/sec)
ftp> !ls
anaconda-ks.cfg  initial-setup-ks.cfg  inotify-tools-3.13.tar.gz
ftp> lcd /
Local directory now /
ftp> !ls
bin   code  etc   lib    media  opt   root  sbin   srv  tmp  var
boot  dev   home  lib64  mnt    proc  run   share  sys  usr
ftp> lcd /root
Local directory now /root
ftp> !ls
anaconda-ks.cfg  initial-setup-ks.cfg  inotify-tools-3.13.tar.gz
ftp> bye
221 Goodbye.
[root@nfs ~]# ls
anaconda-ks.cfg  initial-setup-ks.cfg  inotify-tools-3.13.tar.gz
[root@nfs ~]# tar -xf inotify-tools-3.13.tar.gz
[root@nfs ~]# ls
anaconda-ks.cfg       inotify-tools-3.13
initial-setup-ks.cfg  inotify-tools-3.13.tar.gz
[root@nfs ~]# cd inotify-tools-3.13/
[root@nfs 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 lib                raries... 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 lib                raries... 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 lib                raries... 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 share                d 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@nfs inotify-tools-3.13]# make
make  all-recursive
make[1]: 进入目录“/root/inotify-tools-3.13”
Making all in libinotifytools
make[2]: 进入目录“/root/inotify-tools-3.13/libinotifytools”
make[3]: 进入目录“/root/inotify-tools-3.13”
make[3]: 离开目录“/root/inotify-tools-3.13”
Making all in src
make[3]: 进入目录“/root/inotify-tools-3.13/libinotifytools/src”
make[4]: 进入目录“/root/inotify-tools-3.13”
make[4]: 离开目录“/root/inotify-tools-3.13”
Making all in inotifytools
make[4]: 进入目录“/root/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[5]: 进入目录“/root/inotify-tools-3.13”
make[5]: 离开目录“/root/inotify-tools-3.13”
cd ../../.. && /bin/sh /root/inotify-tools-3.13/missing --run autoheader
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspic                ious 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, ...): sus                picious 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, ...): su                spicious 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, ...): su                spicious 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, ...): su                spicious 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]: 进入目录“/root/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[6]: 进入目录“/root/inotify-tools-3.13”
make[6]: 离开目录“/root/inotify-tools-3.13”
make[5]: 离开目录“/root/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[4]: 离开目录“/root/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[4]: 进入目录“/root/inotify-tools-3.13/libinotifytools/src”
make[5]: 进入目录“/root/inotify-tools-3.13”
make[5]: 离开目录“/root/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 inotifyto                ols.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 .libsgcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools -                std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c inotif                ytools.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 inotif                ytools.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/redblac                k.Tpo"; exit 1; fi
m 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
ak 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
e/bin/sh ../../libtool --tag=CC --mode=link gcc -std=c99 -g -O2   -o libinotify                tools.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,libinotify                tools.so.0 -o .libs/libinotifytools.so.0.4.1
(cd .libs && rm -f libinotifytools.so.0 && ln -s libinotifytools.so.0.4.1 libin                otifytools.so.0)
(cd .libs && rm -f libinotifytools.so && ln -s libinotifytools.so.0.4.1 libinot                ifytools.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 libinotify                tools.la)
/usr/bin/doxygen
Warning: Tag `USE_WINDOWS_ENCODING' at line 64 of file Doxyfile has become obso                lete.
To avoid this warning please remove this line from your configuration file or u                pgrade 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 u                pgrade it using "doxygen -u"
Warning: Tag `SHOW_DIRECTORIES' at line 390 of file Doxyfile has become obsolet                e.
To avoid this warning please remove this line from your configuration file or u                pgrade it using "doxygen -u"
Warning: Tag `HTML_ALIGN_MEMBERS' at line 674 of file Doxyfile has become obsol                ete.
To avoid this warning please remove this line from your configuration file or u                pgrade it using "doxygen -u"
Warning: Tag `MAX_DOT_GRAPH_WIDTH' at line 1196 of file Doxyfile has become obs                olete.
To avoid this warning please remove this line from your configuration file or u                pgrade it using "doxygen -u"
Warning: Tag `MAX_DOT_GRAPH_HEIGHT' at line 1204 of file Doxyfile has become ob                solete.
To avoid this warning please remove this line from your configuration file or u                pgrade 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 /root/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 /root/inotify-tools-3.13/libinotifytools/src/inotifytools/inotify                tools.h...
Parsing file /root/inotify-tools-3.13/libinotifytools/src/inotifytools/inotifyt                ools.h...
Preprocessing /root/inotify-tools-3.13/libinotifytools/src/inotifytools.c...
Parsing file /root/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]: 离开目录“/root/inotify-tools-3.13/libinotifytools/src”
make[3]: 离开目录“/root/inotify-tools-3.13/libinotifytools/src”
make[3]: 进入目录“/root/inotify-tools-3.13/libinotifytools”
make[4]: 进入目录“/root/inotify-tools-3.13”
make[4]: 离开目录“/root/inotify-tools-3.13”
make[3]: 对“all-am”无需做任何事。
make[3]: 离开目录“/root/inotify-tools-3.13/libinotifytools”
make[2]: 离开目录“/root/inotify-tools-3.13/libinotifytools”
Making all in src
make[2]: 进入目录“/root/inotify-tools-3.13/src”
make[3]: 进入目录“/root/inotify-tools-3.13”
make[3]: 离开目录“/root/inotify-tools-3.13”
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools    -s                td=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/in                otifywait.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools    -s                td=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT common.o -M                D -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 ../libi                notifytools/src/libinotifytools.la
mkdir .libs
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywait inotifywait.o                 common.o  -L/root/inotify-tools-3.13/libinotifytools/src ../libinotifytools/sr                c/.libs/libinotifytools.so  -Wl,--rpath -Wl,/usr/local/lib
creating inotifywait
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools    -s                td=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotifywatc                h.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 ../li                binotifytools/src/libinotifytools.la
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywatch inotifywatch                .o common.o  -L/root/inotify-tools-3.13/libinotifytools/src ../libinotifytools/                src/.libs/libinotifytools.so  -Wl,--rpath -Wl,/usr/local/lib
creating inotifywatch
make[2]: 离开目录“/root/inotify-tools-3.13/src”
Making all in man
make[2]: 进入目录“/root/inotify-tools-3.13/man”
make[3]: 进入目录“/root/inotify-tools-3.13”
make[3]: 离开目录“/root/inotify-tools-3.13”
make[2]: 对“all”无需做任何事。
make[2]: 离开目录“/root/inotify-tools-3.13/man”
make[2]: 进入目录“/root/inotify-tools-3.13”
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
make[2]: 离开目录“/root/inotify-tools-3.13”
make[1]: 离开目录“/root/inotify-tools-3.13”
[root@nfs inotify-tools-3.13]# make install
Making install in libinotifytools
make[1]: 进入目录“/root/inotify-tools-3.13/libinotifytools”
make[2]: 进入目录“/root/inotify-tools-3.13”
make[2]: 离开目录“/root/inotify-tools-3.13”
Making install in src
make[2]: 进入目录“/root/inotify-tools-3.13/libinotifytools/src”
make[3]: 进入目录“/root/inotify-tools-3.13”
make[3]: 离开目录“/root/inotify-tools-3.13”
Making install in inotifytools
make[3]: 进入目录“/root/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[4]: 进入目录“/root/inotify-tools-3.13”
make[4]: 离开目录“/root/inotify-tools-3.13”
make[4]: 进入目录“/root/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[5]: 进入目录“/root/inotify-tools-3.13”
make[5]: 离开目录“/root/inotify-tools-3.13”
make[4]: 对“install-exec-am”无需做任何事。
make[4]: 对“install-data-am”无需做任何事。
make[4]: 离开目录“/root/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[3]: 离开目录“/root/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[3]: 进入目录“/root/inotify-tools-3.13/libinotifytools/src”
make[4]: 进入目录“/root/inotify-tools-3.13”
make[4]: 离开目录“/root/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 inotifyto                ols.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; figcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools -                std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c inotif                ytools.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 inotif                ytools.c -o inotifytools.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CC --mode=link gcc -std=c99 -g -O2   -o libinotifyt                ools.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.s                o.0.4.1
gcc -shared  .libs/inotifytools.o .libs/redblack.o   -Wl,-soname -Wl,libinotify                tools.so.0 -o .libs/libinotifytools.so.0.4.1
(cd .libs && rm -f libinotifytools.so.0 && ln -s libinotifytools.so.0.4.1 libin                otifytools.so.0)
(cd .libs && rm -f libinotifytools.so && ln -s libinotifytools.so.0.4.1 libinot                ifytools.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 libinotify                tools.la)
make[4]: 进入目录“/root/inotify-tools-3.13/libinotifytools/src”
make[5]: 进入目录“/root/inotify-tools-3.13”
make[5]: 离开目录“/root/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/libinotifytoo                ls.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 libinotifytoo                ls.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.s                o; }; })
/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/libIf 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 variableduring execution- add LIBDIR to the `LD_RUN_PATH' environment variableduring 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/d                oc/inotify-tools"/usr/bin/install -c -m 644 'doc/html/bc_s.png' '/usr/local/share/doc/inotify-t                ools/bc_s.png'/usr/bin/install -c -m 644 'doc/html/bdwn.png' '/usr/local/share/doc/inotify-t                ools/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/inotif                y-tools/doxygen.css'/usr/bin/install -c -m 644 'doc/html/doxygen.png' '/usr/local/share/doc/inotif                y-tools/doxygen.png'/usr/bin/install -c -m 644 'doc/html/dynsections.js' '/usr/local/share/doc/ino                tify-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/inot                ify-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/inotif                y-tools/ftv2doc.png'/usr/bin/install -c -m 644 'doc/html/ftv2folderclosed.png' '/usr/local/share/d                oc/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/i                notify-tools/ftv2lastnode.png'/usr/bin/install -c -m 644 'doc/html/ftv2link.png' '/usr/local/share/doc/inoti                fy-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/inot                ify-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/inoti                fy-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/inot                ify-tools/ftv2pnode.png'/usr/bin/install -c -m 644 'doc/html/ftv2splitbar.png' '/usr/local/share/doc/i                notify-tools/ftv2splitbar.png'/usr/bin/install -c -m 644 'doc/html/ftv2vertline.png' '/usr/local/share/doc/i                notify-tools/ftv2vertline.png'/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/globals.html' '/usr/local/share/doc/inoti                fy-tools/globals.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/d                oc/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-t                ools/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/inoti                fy-tools/sync_off.png'/usr/bin/install -c -m 644 'doc/html/sync_on.png' '/usr/local/share/doc/inotif                y-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/tabs.css' '/usr/local/share/doc/inotify-t                ools/tabs.css'/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/todo.html' '/usr/local/share/doc/inotify-                tools/todo.html'
test -z "/usr/local/include" || mkdir -p -- "/usr/local/include"/root/inotify-tools-3.13/install-sh -c -m 644 'inotifytools/inotifytools.h' '/                usr/local/include/inotifytools/inotifytools.h'/root/inotify-tools-3.13/install-sh -c -m 644 'inotifytools/inotify-nosys.h' '                /usr/local/include/inotifytools/inotify-nosys.h'/root/inotify-tools-3.13/install-sh -c -m 644 'inotifytools/inotify.h' '/usr/l                ocal/include/inotifytools/inotify.h'
make[4]: 离开目录“/root/inotify-tools-3.13/libinotifytools/src”
make[3]: 离开目录“/root/inotify-tools-3.13/libinotifytools/src”
make[2]: 离开目录“/root/inotify-tools-3.13/libinotifytools/src”
make[2]: 进入目录“/root/inotify-tools-3.13/libinotifytools”
make[3]: 进入目录“/root/inotify-tools-3.13”
make[3]: 离开目录“/root/inotify-tools-3.13”
make[3]: 进入目录“/root/inotify-tools-3.13/libinotifytools”
make[4]: 进入目录“/root/inotify-tools-3.13”
make[4]: 离开目录“/root/inotify-tools-3.13”
make[3]: 对“install-exec-am”无需做任何事。
make[3]: 对“install-data-am”无需做任何事。
make[3]: 离开目录“/root/inotify-tools-3.13/libinotifytools”
make[2]: 离开目录“/root/inotify-tools-3.13/libinotifytools”
make[1]: 离开目录“/root/inotify-tools-3.13/libinotifytools”
Making install in src
make[1]: 进入目录“/root/inotify-tools-3.13/src”
make[2]: 进入目录“/root/inotify-tools-3.13”
make[2]: 离开目录“/root/inotify-tools-3.13”
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools    -s                td=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/in                otifywait.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools    -s                td=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT common.o -M                D -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 ../libi                notifytools/src/libinotifytools.la
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywait inotifywait.o                 common.o  -L/root/inotify-tools-3.13/libinotifytools/src ../libinotifytools/sr                c/.libs/libinotifytools.so  -Wl,--rpath -Wl,/usr/local/lib
creating inotifywait
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools    -s                td=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotifywatc                h.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 ../li                binotifytools/src/libinotifytools.la
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywatch inotifywatch                .o common.o  -L/root/inotify-tools-3.13/libinotifytools/src ../libinotifytools/                src/.libs/libinotifytools.so  -Wl,--rpath -Wl,/usr/local/lib
creating inotifywatch
make[2]: 进入目录“/root/inotify-tools-3.13/src”
make[3]: 进入目录“/root/inotify-tools-3.13”
make[3]: 离开目录“/root/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/loc                al/bin/inotifywait'
/usr/bin/install -c .libs/inotifywait /usr/local/bin/inotifywait/bin/sh ../libtool --mode=install /usr/bin/install -c 'inotifywatch' '/usr/lo                cal/bin/inotifywatch'
/usr/bin/install -c .libs/inotifywatch /usr/local/bin/inotifywatch
make[2]: 对“install-data-am”无需做任何事。
make[2]: 离开目录“/root/inotify-tools-3.13/src”
make[1]: 离开目录“/root/inotify-tools-3.13/src”
Making install in man
make[1]: 进入目录“/root/inotify-tools-3.13/man”
make[2]: 进入目录“/root/inotify-tools-3.13”
make[2]: 离开目录“/root/inotify-tools-3.13”
make[2]: 进入目录“/root/inotify-tools-3.13/man”
make[3]: 进入目录“/root/inotify-tools-3.13”
make[3]: 离开目录“/root/inotify-tools-3.13”
make[2]: 对“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/inotif                ywait.1'/usr/bin/install -c -m 644 './inotifywatch.1' '/usr/local/share/man/man1/inoti                fywatch.1'
make[2]: 离开目录“/root/inotify-tools-3.13/man”
make[1]: 离开目录“/root/inotify-tools-3.13/man”
make[1]: 进入目录“/root/inotify-tools-3.13”
make[2]: 进入目录“/root/inotify-tools-3.13”
make[2]: 对“install-exec-am”无需做任何事。
make[2]: 对“install-data-am”无需做任何事。
make[2]: 离开目录“/root/inotify-tools-3.13”
make[1]: 离开目录“/root/inotify-tools-3.13”
[root@nfs inotify-tools-3.13]# lw
bash: lw: 未找到命令...
[root@nfs inotify-tools-3.13]# ls
aclocal.m4      config.h.in    configure.ac     libtool      missing
AUTHORS         config.h.in~   COPYING          ltmain.sh    NEWS
autom4te.cache  config.log     depcomp          Makefile     README
ChangeLog       config.status  INSTALL          Makefile.am  src
config.guess    config.sub     install-sh       Makefile.in  stamp-h1
config.h        configure      libinotifytools  man
[root@nfs inotify-tools-3.13]# cd /
[root@nfs /]# find / -name inotifywait
find: ‘/run/user/1000/gvfs’: 权限不够
/root/inotify-tools-3.13/src/.libs/inotifywait
/root/inotify-tools-3.13/src/inotifywait
/usr/local/bin/inotifywait
[root@nfs /]# cd /usr/local/bin
[root@nfs bin]# ls
inotifywait  inotifywatch
[root@nfs bin]# cd /
[root@nfs /]# ls
bin   code  etc   lib    media  opt   root  sbin   srv  tmp  var
boot  dev   home  lib64  mnt    proc  run   share  sys  usr
[root@nfs /]# vim rsync.sh
[root@nfs /]# cat rsync.sh
/usr/local/bin/inotifywait -mrq -e create,modify,delete,move,attrib |while read                events
dorsync -a --delete /share/ root@192.168.235.100:/backupecho "$(date +'%F %T')发生$events">>/var/log/rsync.log 2>&1
done[root@nfs /]# vim rsync.sh
[root@nfs /]# cat rsync.sh
/usr/local/bin/inotifywait -mrq -e create,modify,delete,move,attrib /share |whi                le read events
dorsync -a --delete /share/ root@192.168.235.100:/backupecho "$(date +'%F %T')发生$events">>/var/log/rsync.log 2>&1
done[root@nfs /]# chmod rsync.sh
chmod: "rsync.sh" 后缺少操作数
Try 'chmod --help' for more information.
[root@nfs /]# ll rsync.sh
-rw-r--r--. 1 root root 230 6月  21 17:12 rsync.sh
[root@nfs /]# chmod +x rsync.sh
[root@nfs /]# ll rsymc.sh
ls: 无法访问rsymc.sh: 没有那个文件或目录
[root@nfs /]# ll rsync.sh
-rwxr-xr-x. 1 root root 230 6月  21 17:12 rsync.sh
[root@nfs /]# ls
bin   code  etc   lib    media  opt   root      run   share  sys  usr
boot  dev   home  lib64  mnt    proc  rsync.sh  sbin  srv    tmp  var
[root@nfs /]# nohup rsync.sh &
[1] 108565
[root@nfs /]# nohup: 忽略输入并把输出追加到"nohup.out"
nohup: 无法运行命令"rsync.sh": 没有那个文件或目录
jobs
[1]+  退出 127              nohup rsync.sh
[root@nfs /]# jobs -l
[root@nfs /]# jobs -1
-bash: jobs: -1: 无效选项
jobs: 用法:jobs [-lnprs] [任务声明 ...] 或 jobs -x 命令 [参数]
[root@nfs /]# jobs l
-bash: jobs: l: 无此任务
[root@nfs /]# jobs
[root@nfs /]# jobs
[root@nfs /]# lw
bash: lw: 未找到命令...
[root@nfs /]# ls
bin   dev   lib    mnt        proc      run    srv  usr
boot  etc   lib64  nohup.out  root      sbin   sys  var
code  home  media  opt        rsync.sh  share  tmp
[root@nfs /]# nohup rsync.sh &
[1] 109025
[root@nfs /]# nohup: 忽略输入并把输出追加到"nohup.out"
nohup: 无法运行命令"rsync.sh": 没有那个文件或目录
jobs
[1]+  退出 127              nohup rsync.sh
[root@nfs /]# ls
bin   dev   lib    mnt        proc      run    srv  usr
boot  etc   lib64  nohup.out  root      sbin   sys  var
code  home  media  opt        rsync.sh  share  tmp
[root@nfs /]# jobs
[root@nfs /]#  nohup /rsync.sh &
[1] 110027
[root@nfs /]# nohup: 忽略输入并把输出追加到"nohup.out"
jobs
[1]+  运行中               nohup /rsync.sh &
[root@nfs /]# jobs
[1]+  运行中               nohup /rsync.sh &
[root@nfs /]# cat /var/log/rsync.log
cat: /var/log/rsync.log: 没有那个文件或目录
[root@nfs /]# cat rsync.sh
/usr/local/bin/inotifywait -mrq -e create,modify,delete,move,attrib /share |whi                le read events
dorsync -a --delete /share/ root@192.168.235.100:/backupecho "$(date +'%F %T')发生$events">>/var/log/rsync.log 2>&1
done[root@nfs /]# cat /var/log/rsync.log
cat: /var/log/rsync.log: 没有那个文件或目录
[root@nfs /]# 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:ke9pIm2avxogCrQdzcDklvtR7Mo46pirjBZwMmcQgRQ root@nfs.cn
The key's randomart image is:
+---[RSA 2048]----+
|=E+o             |
|o ..= .  .       |
| o = o oo        |
|= B o o  o       |
|oB.o.. .S .      |
|.o .+.o. . .     |
|. .o +o + +      |
|+o. .  * o       |
|X=    +oo.       |
+----[SHA256]-----+
[root@nfs /]# ssh-copy-id root@192.168.235.100
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rs                a.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 promp                ted now it is to install the new keys
root@192.168.235.100's password:Number of key(s) added: 1Now try logging into the machine, with:   "ssh 'root@192.168.235.100'"
and check to make sure that only the key(s) you wanted were added.[root@nfs /]# ssh root@192.168.235.100
Last login: Sat Jun 21 16:21:03 2025 from 192.168.235.1
[root@backup ~]# ls
2010    aa2              file2.java  file6.java  initial-setup-ks.cfg  shop
23.txt  aa3              file3.java  file7.java  linux.txt
2.java  anaconda-ks.cfg  file4.java  file8.java  q
aa1     file1.java       file5.java  file9.java  rsync_java.sh
[root@backup ~]# cd /
[root@backup /]# ls
1.jpg  backup  dev   inotify-tools-3.13.tar.gz  media  proc  sbin  tmp
2010   bin     etc   lib                        mnt    root  srv   usr
2.mp4  boot    home  lib64                      opt    run   sys   var
[root@backup /]# ls backup
app1_java  app_java
[root@backup /]# bye
bash: bye: 未找到命令...
[root@backup /]# exit
登出
Connection to 192.168.235.100 closed.
[root@nfs /]# ls
bin   dev   lib    mnt        proc      run    srv  usr
boot  etc   lib64  nohup.out  root      sbin   sys  var
code  home  media  opt        rsync.sh  share  tmp
[root@nfs /]# cat rsync.sh
/usr/local/bin/inotifywait -mrq -e create,modify,delete,move,attrib /share |whi                le read events
dorsync -a --delete /share/ root@192.168.235.100:/backupecho "$(date +'%F %T')发生$events">>/var/log/rsync.log 2>&1
done[root@nfs /]# cat /var/log/rsync.log
cat: /var/log/rsync.log: 没有那个文件或目录
[root@nfs /]# rsync -a --delete /share/ root@192.168.235.100:/backup
[root@nfs /]# ls
bin   dev   lib    mnt        proc      run    srv  usr
boot  etc   lib64  nohup.out  root      sbin   sys  var
code  home  media  opt        rsync.sh  share  tmp
[root@nfs /]# cd /share
[root@nfs share]# ls
1.jpg  2.mp4
[root@nfs share]# ls
1.jpg  2.mp4  3.jpg
[root@nfs share]# cat nohup.out
cat: nohup.out: 没有那个文件或目录
[root@nfs share]# cd /
[root@nfs /]# cat nohup.out
[root@nfs /]# cat /var/log/rsync.log
2025-06-21 18:47:32发生/share/ CREATE 3.jpg
2025-06-21 18:47:43发生/share/ MODIFY 3.jpg
2025-06-21 18:47:54发生/share/ MODIFY 3.jpg
2025-06-21 18:48:04发生/share/ MODIFY 3.jpg
[root@nfs /]#
Network error: Software caused connection abort─────────────────────────────────────────────────────────────────────────Session stopped- Press <Return> to exit tab- Press R to restart session- Press S to save terminal output to file┌────────────────────────────────────────────────────────────────────                      ──┐│                 • MobaXterm Personal Edition v23.2 •                                       ││               (SSH client, X server and network tools)                                     ││                                                                                            ││ ⮞ SSH session to root@192.168.235.3                                                        ││   • Direct SSH      :  ✓                                                                   ││   • SSH compression :  ✓                                                                   ││   • SSH-browser     :  ✓                                                                   ││   • X11-forwarding  :(remote display is forwarded through SSH)                        ││                                                                                            ││ ⮞ For more info, ctrl+click on help or visit our website.                                  │└────────────────────────────────────────────────────────────────────                      ──┘Last login: Sat Jun 21 16:28:47 2025 from 192.168.235.1
[root@nfs ~]# ls
anaconda-ks.cfg  initial-setup-ks.cfg  inotify-tools-3.13  inotify-tools-3.13.tar.gz
[root@nfs ~]# cd /
[root@nfs /]# ls
bin   code  etc   lib    media  nohup.out  proc  rsync.sh  sbin   srv  tmp  var
boot  dev   home  lib64  mnt    opt        root  run       share  sys  usr
[root@nfs /]# cd /share
[root@nfs share]# ls
1.jpg  2.mp4  3.jpg
[root@nfs share]# ls
1.jpg  2.mp4  3.jpg  4.jpg
[root@nfs share]# cat /vat/log/rsync.log
cat: /vat/log/rsync.log: 没有那个文件或目录
[root@nfs share]# cat /var/log/rsync.log
2025-06-21 18:47:32发生/share/ CREATE 3.jpg
2025-06-21 18:47:43发生/share/ MODIFY 3.jpg
2025-06-21 18:47:54发生/share/ MODIFY 3.jpg
2025-06-21 18:48:04发生/share/ MODIFY 3.jpg
2025-06-21 20:30:18发生/share/ CREATE 4.jpg
2025-06-21 20:30:29发生/share/ MODIFY 4.jpg
[root@nfs share]# ftp 192.168.235.10
ftp: connect: 拒绝连接
ftp> bye
[root@nfs share]# ftp 192.168.235.10
ftp: connect: 拒绝连接
ftp> bye
[root@nfs share]# ftp 192.168.235.10
Connected to 192.168.235.10 (192.168.235.10).
421 Service not available.
ftp> bye
[root@nfs share]# ftp 192.168.235.10
Connected to 192.168.235.10 (192.168.235.10).
220 (vsFTPd 3.0.2)
Name (192.168.235.10:root): code
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bye
221 Goodbye.
[root@nfs share]# ftp 192.168.235.10
Connected to 192.168.235.10 (192.168.235.10).
220 (vsFTPd 3.0.2)
Name (192.168.235.10:root): code
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bye
221 Goodbye.
[root@nfs share]#

backup

root@192.168.235.100's password:┌──────────────────────────────────────────────────────────────────────┐│                 • MobaXterm Personal Edition v23.2 •                 ││               (SSH client, X server and network tools)               ││                                                                      ││ ⮞ SSH session to root@192.168.235.100                                ││   • Direct SSH      :  ✓                                             ││   • SSH compression :  ✓                                             ││   • SSH-browser     :  ✓                                             ││   • X11-forwarding  :  ✓  (remote display is forwarded through SSH)  ││                                                                      ││ ⮞ For more info, ctrl+click on help or visit our website.            │└──────────────────────────────────────────────────────────────────────┘Last login: Sat Jun 21 04:40:06 2025
/usr/bin/xauth:  file /root/.Xauthority does not exist
[root@backup ~]# hostname
backup.itcast.cn
[root@backup ~]# hostnamectl set-hostname nfs.cn
[root@backup ~]# hostname
nfs.cn
[root@backup ~]# hostnamectl set-hostname backup.cn
[root@backup ~]# hostname
backup.cn
[root@backup ~]# yum repolist
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
源标识                             源名称                                 状态
!lcoal                             local yum                              4,070
repolist: 4,070
[root@backup ~]# 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=disable
# 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@backup ~]# vim /etc/selinux/config
[root@backup ~]# 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@backup ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall daemonLoaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)Active: inactive (dead)Docs: man:firewalld(1)
[root@backup ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00inet 127.0.0.1/8 scope host lovalid_lft forever preferred_lft foreverinet6 ::1/128 scope hostvalid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000link/ether 00:0c:29:04:f5:98 brd ff:ff:ff:ff:ff:ffinet 192.168.235.100/24 brd 192.168.235.255 scope global ens33valid_lft forever preferred_lft foreverinet6 fe80::20c:29ff:fe04:f598/64 scope linkvalid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000link/ether 52:54:00:53:dd:1d brd ff:ff:ff:ff:ff:ffinet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000link/ether 52:54:00:53:dd:1d brd ff:ff:ff:ff:ff:ff
[root@backup ~]#
Network error: Software caused connection abort───────────────────────────────────────────────────────────────────────────────Session stopped- Press <Return> to exit tab- Press R to restart session- Press S to save terminal output to file┌──────────────────────────────────────────────────────────────────────┐│                 • MobaXterm Personal Edition v23.2 •                 ││               (SSH client, X server and network tools)               ││                                                                      ││ ⮞ SSH session to root@192.168.235.100                                ││   • Direct SSH      :  ✓                                             ││   • SSH compression :  ✓                                             ││   • SSH-browser     :  ✓                                             ││   • X11-forwarding  :  ✓  (remote display is forwarded through SSH)  ││                                                                      ││ ⮞ For more info, ctrl+click on help or visit our website.            │└──────────────────────────────────────────────────────────────────────┘Last login: Sat Jun 21 04:46:27 2025 from 192.168.235.1
[root@backup ~]#
Network error: Software caused connection abort───────────────────────────────────────────────────────────────────────────────Session stopped- Press <Return> to exit tab- Press R to restart session- Press S to save terminal output to file┌──────────────────────────────────────────────────────────────────────┐│                 • MobaXterm Personal Edition v23.2 •                 ││               (SSH client, X server and network tools)               ││                                                                      ││ ⮞ SSH session to root@192.168.235.100                                ││   • Direct SSH      :  ✓                                             ││   • SSH compression :  ✓                                             ││   • SSH-browser     :  ✓                                             ││   • X11-forwarding  :  ✓  (remote display is forwarded through SSH)  ││                                                                      ││ ⮞ For more info, ctrl+click on help or visit our website.            │└──────────────────────────────────────────────────────────────────────┘Last login: Sat Jun 21 08:42:24 2025 from 192.168.235.1
[root@backup ~]# ls
2010    aa2              file2.java  file6.java  initial-setup-ks.cfg  shop
23.txt  aa3              file3.java  file7.java  linux.txt
2.java  anaconda-ks.cfg  file4.java  file8.java  q
aa1     file1.java       file5.java  file9.java  rsync_java.sh
[root@backup ~]# cd /
[root@backup /]# ls
1.jpg  backup  boot  etc   lib    media  opt   root  sbin  sys  usr
2010   bin     dev   home  lib64  mnt    proc  run   srv   tmp  var
[root@backup /]# yum install ftpd
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
file:///mnt/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /mnt/repodata/repomd.xml"
正在尝试其它镜像。
没有可用软件包 ftpd。
错误:无须任何处理
[root@backup /]# yum install vsftpd
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
file:///mnt/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /mnt/repodata/repomd.xml"
正在尝试其它镜像。
正在解决依赖关系
--> 正在检查事务
---> 软件包 vsftpd.x86_64.0.3.0.2-28.el7 将被 安装
--> 解决依赖关系完成依赖关系解决===============================================================================Package         架构            版本                     源              大小
===============================================================================
正在安装:vsftpd          x86_64          3.0.2-28.el7             lcoal          172 k事务概要
===============================================================================
安装  1 软件包总下载量:172 k
安装大小:353 k
Is this ok [y/d/N]: y
Downloading packages:Error downloading packages:vsftpd-3.0.2-28.el7.x86_64: [Errno 256] No more mirrors to try.[root@backup /]# cd /etc
[root@backup etc]# cd yum.repos.d
[root@backup yum.repos.d]# ls
local.repo  repo.tar.gz
[root@backup yum.repos.d]# cat lcoal.repo
cat: lcoal.repo: 没有那个文件或目录
[root@backup yum.repos.d]# cat local.repo
[lcoal]
name=local yum
baseurl=file:///mnt
gpgcheck=0
enabled=1[root@backup yum.repos.d]# lsblk
NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda               8:0    0   20G  0 disk
├─sda1            8:1    0    1G  0 part /boot
└─sda2            8:2    0   19G  0 part├─centos-root 253:0    0   17G  0 lvm  /└─centos-swap 253:1    0    2G  0 lvm  [SWAP]
sr0              11:0    1  4.4G  0 rom  /run/media/backup/CentOS 7 x86_64
[root@backup yum.repos.d]# cd /mnt
[root@backup mnt]# ls
[root@backup mnt]# ls
[root@backup mnt]# mount -o ro /dev/sr0 /mnt
[root@backup mnt]# lsblk
NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda               8:0    0   20G  0 disk
├─sda1            8:1    0    1G  0 part /boot
└─sda2            8:2    0   19G  0 part├─centos-root 253:0    0   17G  0 lvm  /└─centos-swap 253:1    0    2G  0 lvm  [SWAP]
sr0              11:0    1  4.4G  0 rom  /mnt
[root@backup mnt]# ll /etc/rc.local
lrwxrwxrwx. 1 root root 13 4月  17 05:42 /etc/rc.local -> rc.d/rc.local
[root@backup mnt]# chmod +x /etc/rc.local
[root@backup mnt]# ll /etc/rc.local
lrwxrwxrwx. 1 root root 13 4月  17 05:42 /etc/rc.local -> rc.d/rc.local
[root@backup mnt]# echo 'mount -o ro /dev/sr0 /mnt'>>/etc/rc.local
[root@backup mnt]# lsblk
NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda               8:0    0   20G  0 disk
├─sda1            8:1    0    1G  0 part /boot
└─sda2            8:2    0   19G  0 part├─centos-root 253:0    0   17G  0 lvm  /└─centos-swap 253:1    0    2G  0 lvm  [SWAP]
sr0              11:0    1  4.4G  0 rom  /mnt
[root@backup mnt]# yum install vsftpd
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
lcoal                                                   | 3.6 kB     00:00
正在解决依赖关系
--> 正在检查事务
---> 软件包 vsftpd.x86_64.0.3.0.2-28.el7 将被 安装
--> 解决依赖关系完成依赖关系解决===============================================================================Package         架构            版本                     源              大小
===============================================================================
正在安装:vsftpd          x86_64          3.0.2-28.el7             lcoal          172 k事务概要
===============================================================================
安装  1 软件包总下载量:172 k
安装大小:353 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction正在安装    : vsftpd-3.0.2-28.el7.x86_64                                 1/1验证中      : vsftpd-3.0.2-28.el7.x86_64                                 1/1已安装:vsftpd.x86_64 0:3.0.2-28.el7完毕!
[root@backup mnt]# cd /
[root@backup /]# ls
1.jpg  backup  boot  etc   lib    media  opt   root  sbin  sys  usr
2010   bin     dev   home  lib64  mnt    proc  run   srv   tmp  var
[root@backup /]# systemctl start vsftpd
[root@backup /]# systemctl enable vsftpd
Created symlink from /etc/systemd/system/multi-user.target.wants/vsftpd.service to /usr/lib/systemd/system/vsftpd.service.
[root@backup /]# ftp 192.168.235.3
bash: ftp: 未找到命令...
[root@backup /]# yum install ftp -y
已加载插件:fastestmirror, langpacks
Determining fastest mirrors
正在解决依赖关系
--> 正在检查事务
---> 软件包 ftp.x86_64.0.0.17-67.el7 将被 安装
--> 解决依赖关系完成依赖关系解决===============================================================================Package       架构             版本                     源               大小
===============================================================================
正在安装:ftp           x86_64           0.17-67.el7              lcoal            61 k事务概要
===============================================================================
安装  1 软件包总下载量:61 k
安装大小:96 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction正在安装    : ftp-0.17-67.el7.x86_64                                     1/1验证中      : ftp-0.17-67.el7.x86_64                                     1/1已安装:ftp.x86_64 0:0.17-67.el7完毕!
[root@backup /]# cat /etc/vsftpd/vsftpd.conf
# Example config file /etc/vsftpd/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
# When SELinux is enforcing check for SE bool ftp_home_dir
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
# When SELinux is enforcing check for SE bool allow_ftpd_anon_write, allow_ftpd_full_access
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/xferlog
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode. The vsftpd.conf(5) man page explains
# the behaviour when these options are disabled.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd/banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
# the user does not have write access to the top level directory within the
# chroot)
#chroot_local_user=YES
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd/chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=NO
#
# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
# Make sure, that one of the listen options is commented !!
listen_ipv6=YESpam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
[root@backup /]# grep -v ^# /etc/vsftpd/vsftpd.conf
anonymous_enable=YES
local_enable=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=YESpam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
[root@backup /]# cat /etc/ftpusers
cat: /etc/ftpusers: 没有那个文件或目录
[root@backup /]# cat /etc/vsftpd/ftpusers
# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
[root@backup /]# cat /etc/vsftpd/user_list
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
[root@backup /]# vim /etc/vsftpd/ftpusers
[root@backup /]# cat /etc/vsftpd/ftpusers
# Users that are not allowed to login via ftp
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
[root@backup /]# vim /etc/vsftpd/ftpusers
[root@backup /]# vim /etc/vsftpd/user_list
[root@backup /]# cat /etc/vsftpd/user_list
# vsftpd userlist
# If userlist_deny=NO, only allow users in this file
# If userlist_deny=YES (default), never allow users in this file, and
# do not even prompt for a password.
# Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers
# for users that are denied.
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
[root@backup /]# systemctl restart vsftpd
[root@backup /]# cd /
[root@backup /]# ls
1.jpg  backup  boot  etc   lib    media  opt   root  sbin  sys  usr
2010   bin     dev   home  lib64  mnt    proc  run   srv   tmp  var
[root@backup /]#
Network error: Software caused connection abort───────────────────────────────────────────────────────────────────────────────Session stopped- Press <Return> to exit tab- Press R to restart session- Press S to save terminal output to file┌──────────────────────────────────────────────────────────────────────┐│                 • MobaXterm Personal Edition v23.2 •                 ││               (SSH client, X server and network tools)               ││                                                                      ││ ⮞ SSH session to root@192.168.235.100                                ││   • Direct SSH      :  ✓                                             ││   • SSH compression :  ✓                                             ││   • SSH-browser     :  ✓                                             ││   • X11-forwarding  :(remote display is forwarded through SSH)  ││                                                                      ││ ⮞ For more info, ctrl+click on help or visit our website.            │└──────────────────────────────────────────────────────────────────────┘Last login: Sat Jun 21 10:01:08 2025 from 192.168.235.1
[root@backup ~]# ld
ld:没有输入文件
[root@backup ~]# ls
2010    aa2              file2.java  file6.java  initial-setup-ks.cfg  shop
23.txt  aa3              file3.java  file7.java  linux.txt
2.java  anaconda-ks.cfg  file4.java  file8.java  q
aa1     file1.java       file5.java  file9.java  rsync_java.sh
[root@backup ~]# cd /
[root@backup /]# ls
1.jpg  2.mp4   bin   dev  home  lib64  mnt  proc  run   srv  tmp  var
2010   backup  boot  etc  lib   media  opt  root  sbin  sys  usr
[root@backup /]# ls
1.jpg  2.mp4   bin   dev  home  lib64  mnt  proc  run   srv  tmp  var
2010   backup  boot  etc  lib   media  opt  root  sbin  sys  usr
[root@backup /]# cd /
[root@backup /]# ls
1.jpg  2.mp4   bin   dev  home  lib64  mnt  proc  run   srv  tmp  var
2010   backup  boot  etc  lib   media  opt  root  sbin  sys  usr
[root@backup /]#
Network error: Software caused connection abort───────────────────────────────────────────────────────────────────────────────Session stopped- Press <Return> to exit tab- Press R to restart session- Press S to save terminal output to file┌──────────────────────────────────────────────────────────────────────┐│                 • MobaXterm Personal Edition v23.2 •                 ││               (SSH client, X server and network tools)               ││                                                                      ││ ⮞ SSH session to root@192.168.235.100                                ││   • Direct SSH      :  ✓                                             ││   • SSH compression :  ✓                                             ││   • SSH-browser     :  ✓                                             ││   • X11-forwarding  :(remote display is forwarded through SSH)  ││                                                                      ││ ⮞ For more info, ctrl+click on help or visit our website.            │└──────────────────────────────────────────────────────────────────────┘Last login: Sat Jun 21 12:45:31 2025 from 192.168.235.1
[root@backup ~]# ls
2010    aa2              file2.java  file6.java  initial-setup-ks.cfg  shop
23.txt  aa3              file3.java  file7.java  linux.txt
2.java  anaconda-ks.cfg  file4.java  file8.java  q
aa1     file1.java       file5.java  file9.java  rsync_java.sh
[root@backup ~]# cd /
[root@backup /]# ls
1.jpg  backup  dev   inotify-tools-3.13.tar.gz  media  proc  sbin  tmp
2010   bin     etc   lib                        mnt    root  srv   usr
2.mp4  boot    home  lib64                      opt    run   sys   var
[root@backup /]# ls
1.jpg  backup  dev   inotify-tools-3.13.tar.gz  media  proc  sbin  tmp
2010   bin     etc   lib                        mnt    root  srv   usr
2.mp4  boot    home  lib64                      opt    run   sys   var
[root@backup /]# cd /
[root@backup /]# ls
1.jpg  backup  dev   inotify-tools-3.13.tar.gz  media  proc  sbin  tmp
2010   bin     etc   lib                        mnt    root  srv   usr
2.mp4  boot    home  lib64                      opt    run   sys   var
[root@backup /]# cd backup
[root@backup backup]# ls
app1_java  app_java
[root@backup backup]# ls
app1_java  app_java
[root@backup backup]# ls
1.jpg  2.mp4
[root@backup backup]# ls
1.jpg  2.mp4  3.jpg
[root@backup backup]#  .
Network error: Software caused connection abort───────────────────────────────────────────────────────────────────────────────Session stopped- Press <Return> to exit tab- Press R to restart session- Press S to save terminal output to file┌──────────────────────────────────────────────────────────────────────┐│                 • MobaXterm Personal Edition v23.2 •                 ││               (SSH client, X server and network tools)               ││                                                                      ││ ⮞ SSH session to root@192.168.235.100                                ││   • Direct SSH      :  ✓                                             ││   • SSH compression :  ✓                                             ││   • SSH-browser     :  ✓                                             ││   • X11-forwarding  :(remote display is forwarded through SSH)  ││                                                                      ││ ⮞ For more info, ctrl+click on help or visit our website.            │└──────────────────────────────────────────────────────────────────────┘Last login: Sat Jun 21 17:50:38 2025 from 192.168.235.3
[root@backup ~]# cd /
[root@backup /]# ls
1.jpg  backup  dev   inotify-tools-3.13.tar.gz  media  proc  sbin  tmp
2010   bin     etc   lib                        mnt    root  srv   usr
2.mp4  boot    home  lib64                      opt    run   sys   var
[root@backup /]# cd /backup
[root@backup backup]# ls
1.jpg  2.mp4  3.jpg  4.jpg
[root@backup backup]# ftp 192.168.235.10
ftp: connect: 拒绝连接
ftp> bye
[root@backup backup]# ls
1.jpg  2.mp4  3.jpg  4.jpg
[root@backup backup]# ftp 192.168.235.10
Connected to 192.168.235.10 (192.168.235.10).
220 (vsFTPd 3.0.2)
Name (192.168.235.10:root): root
530 Permission denied.
Login failed.
ftp> bye
221 Goodbye.
[root@backup backup]# ftp 192.168.235.10
Connected to 192.168.235.10 (192.168.235.10).
220 (vsFTPd 3.0.2)
Name (192.168.235.10:root): code
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bye
421 Timeout.
[root@backup backup]# ftp 192.168.235.10
Connected to 192.168.235.10 (192.168.235.10).
421 Service not available.
ftp> bye
[root@backup backup]# ftp 192.168.235.10
Connected to 192.168.235.10 (192.168.235.10).
220 (vsFTPd 3.0.2)
Name (192.168.235.10:root): code
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
http://www.lryc.cn/news/573411.html

相关文章:

  • 面试题-ts中的typeof
  • 面试题-把类型为b的值赋给类型为a的变量
  • Laravel 项目中图片上传后无法访问的问题
  • SQL关键字三分钟入门:INSERT INTO —— 插入数据详解
  • Python实现MySQL建表语句转换成Clickhouse SQL
  • 【格与代数系统】偏序关系、偏序集与全序集
  • 2048小游戏C++板来啦!
  • 【Docker基础】Docker镜像管理:docker rmi、prune详解
  • 竞业限制协议能单独充当商业秘密的 “保护伞” 吗?
  • docker执行yum报错Could not resolve host: mirrorlist.centos.org
  • python web开发-Flask 蓝图(Blueprints)完全指南
  • 【Docker 08】Compose - 容器编排
  • C#测试调用EPPlus根据批注设置excel单元格内容
  • JavaEE初阶第三期:解锁多线程,从 “单车道” 到 “高速公路” 的编程升级(一)
  • 【开源项目】当大模型推理遇上“性能刺客”:LMCache 实测手记
  • linux安装minio并使用
  • 在Docker、KVM、K8S常见主要命令以及在Centos7.9中部署的关键步骤学习备存
  • XCUITest + Objective-C 详细示例
  • FastGPT:开启大模型应用新时代(4/6)
  • Springboot 配置 FastJson 替换 Jackson
  • Rabbitmq集成springboot,手动确认消息basicAck、basicNack、basicReject的使用
  • 在 MyBatis 的xml中,什么时候大于号和小于号可以不用转义
  • Axios 在 Vue3 项目中的使用:从安装到组件中的使用
  • 升级到 .NET 9 分步指南
  • “最浅”的陷阱:聊聊二叉树最小深度的递归坑点与解法哲学
  • 秋招Day14 - MySQL - SQL优化
  • c++11标准(5)——并发库(互斥锁)
  • 一、什么是生成式人工智能
  • 终端里的AI黑魔法:OpenCode深度体验与架构揭秘
  • Java ArrayList集合和HashSet集合详解