linux618 NFS web.cn NFS.cn backup.cn

在這里插入圖片描述
權限問題 推測

ssh root登錄失敗

root@192.168.235.100's password:
????????
root@192.168.235.100's password:
????????
root@192.168.235.100's password:
????????
root@192.168.235.100's password:
????????
root@192.168.235.100's password:
????????
root@192.168.235.100's password:Remote side sent disconnect messagetype 2 (protocol error):"Too many authentication failures"──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────Session stopped- Press <return> to exit tab- Press R to restart session- Press S to save terminal output to file
root@192.168.235.100's password:
????????
root@192.168.235.100's password:
????????
root@192.168.235.100's password:
????????
root@192.168.235.100's password:
Remote side unexpectedly closed network connection──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────Session stopped- Press <return> to exit tab- Press R to restart session- Press S to save terminal output to file
root@192.168.235.100's password:
????????
root@192.168.235.100's password:
????????
root@192.168.235.100's password:
Remote side unexpectedly closed network connection──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────Session stopped- Press <return> to exit tab- Press R to restart session- Press S to save terminal output to file
root@192.168.235.100's password:

排查/etc/ssh/sshd_config

[root@nfs 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 3333
#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 No
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
[root@nfs ssh]# vim sshd_config
[root@nfs 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 3333
#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@nfs ssh]# ssh root@192.168.235.100 -p 3333
The authenticity of host '[192.168.235.100]:3333 ([192.168.235.100]:3333)' can't be established.
ECDSA key fingerprint is SHA256:+8RG4GdpTOwlDCCFt0rsKQV5kuZ3v4pWCO/z9qTTqhw.
ECDSA key fingerprint is MD5:e4:f1:b2:d5:1d:87:e6:2a:6a:0d:ef:27:4f:16:8b:df.
Are you sure you want to continue connecting (yes/no)? tes
Please type 'yes' or 'no': tes
Please type 'yes' or 'no': yes
Warning: Permanently added '[192.168.235.100]:3333' (ECDSA) to the list of known hosts.
root@192.168.235.100's password:
Permission denied, please try again.
root@192.168.235.100's password:
Permission denied, please try again.
root@192.168.235.100's password:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

192.168.235.20


[root@web html]# rpm -qa|grep httpd
httpd-2.4.6-95.el7.centos.x86_64
httpd-tools-2.4.6-95.el7.centos.x86_64
您在 /var/spool/mail/root 中有郵件
[root@web html]# rpm -ql http
未安裝軟件包 http
[root@web html]# ssh -vvv root@192.168.235.100 -p 3333
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug2: resolving "192.168.235.100" port 3333
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 192.168.235.100 [192.168.235.100] port 3333.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.4
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
debug1: match: OpenSSH_7.4 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 192.168.235.100:3333 as 'root'
debug3: put_host_port: [192.168.235.100]:3333
debug3: hostkeys_foreach: reading file "/root/.ssh/known_hosts"
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,ext-info-c
debug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com,zlib
debug2: compression stoc: none,zlib@openssh.com,zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: curve25519-sha256 need=64 dh_need=64
debug1: kex: curve25519-sha256 need=64 dh_need=64
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:+8RG4GdpTOwlDCCFt0rsKQV5kuZ3v4pWCO/z9qTTqhw
debug3: put_host_port: [192.168.235.100]:3333
debug3: put_host_port: [192.168.235.100]:3333
debug3: hostkeys_foreach: reading file "/root/.ssh/known_hosts"
debug3: hostkeys_foreach: reading file "/root/.ssh/known_hosts"
debug1: checking without port identifier
debug3: hostkeys_foreach: reading file "/root/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /root/.ssh/known_hosts:2
debug3: load_hostkeys: loaded 1 keys from 192.168.235.100
debug1: Host '192.168.235.100' is known and matches the ECDSA host key.
debug1: Found key in /root/.ssh/known_hosts:2
debug1: found matching key w/out port
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey after 134217728 blocks
debug2: key: /root/.ssh/id_rsa (0x55623635d320)
debug2: key: /root/.ssh/id_dsa ((nil))
debug2: key: /root/.ssh/id_ecdsa ((nil))
debug2: key: /root/.ssh/id_ed25519 ((nil))
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup gssapi-keyex
debug3: remaining preferred: gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_is_enabled gssapi-keyex
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug2: we did not send a packet, disable method
debug3: authmethod_lookup gssapi-with-mic
debug3: remaining preferred: publickey,keyboard-interactive,password
debug3: authmethod_is_enabled gssapi-with-mic
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information
No Kerberos credentials available (default cache: KEYRING:persistent:0)debug1: Unspecified GSS failure.  Minor code may provide more information
No Kerberos credentials available (default cache: KEYRING:persistent:0)debug2: we did not send a packet, disable method
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /root/.ssh/id_rsa
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Trying private key: /root/.ssh/id_dsa
debug3: no such identity: /root/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /root/.ssh/id_ecdsa
debug3: no such identity: /root/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /root/.ssh/id_ed25519
debug3: no such identity: /root/.ssh/id_ed25519: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
root@192.168.235.100's password:
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
Permission denied, please try again.
root@192.168.235.100's password:
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
Permission denied, please try again.
root@192.168.235.100's password:
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
您在 /var/spool/mail/root 中有郵件
[root@web html]# sy

在這里插入圖片描述
考慮到192.168.235.100未重啟sshd服務

[root@nfs ssh]# systemctl restart sshd
[root@nfs ssh]# systemctl status sshd
● sshd.service - OpenSSH server daemonLoaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)Active: active (running) since 三 2025-06-18 20:55:50 CST; 6s agoDocs: man:sshd(8)man:sshd_config(5)Main PID: 18575 (sshd)CGroup: /system.slice/sshd.service└─18575 /usr/sbin/sshd -D618 20:55:50 nfs.cn systemd[1]: Stopped OpenSSH server daemon.
618 20:55:50 nfs.cn systemd[1]: Starting OpenSSH server daemon...
618 20:55:50 nfs.cn sshd[18575]: Server listening on 0.0.0.0 port 3333.
618 20:55:50 nfs.cn sshd[18575]: Server listening on :: port 3333.
618 20:55:50 nfs.cn systemd[1]: Started OpenSSH server daemon.
[root@nfs ssh]#
root@192.168.235.100's password:┌────────────────────────────────────────────────────────────────────┐│                        ? MobaXterm 20.0 ?                          ││            (SSH client, X-server and networking tools)             ││                                                                    ││ ? SSH session to root@192.168.235.100                              ││   ? SSH compression : ?                                            ││   ? SSH-browser     : ?                                            ││   ? X11-forwarding  : ?  (remote display is forwarded through SSH) ││   ? DISPLAY         : ?  (automatically set on remote server)      ││                                                                    ││ ? For more info, ctrl+click on help or visit our website           │└────────────────────────────────────────────────────────────────────┘Last failed login: Wed Jun 18 20:53:29 CST 2025 from 192.168.235.20 on ssh:notty
There were 6 failed login attempts since the last successful login.
Last login: Wed Jun 18 20:48:39 2025
/usr/bin/xauth:  file /root/.Xauthority does not exist
[root@nfs ~]#

在這里插入圖片描述
成功
在這里插入圖片描述

NFS

nfs.cn 存儲
mount 掛載NFS服務器到web服務器中
NFS靜態資源備份

環境準備

主機名

root@192.168.235.20's password:┌────────────────────────────────────────────────────────────────────┐│                        ? MobaXterm 20.0 ?                          ││            (SSH client, X-server and networking tools)             ││                                                                    ││ ? SSH session to root@192.168.235.20                               ││   ? SSH compression : ?                                            ││   ? SSH-browser     : ?                                            ││   ? X11-forwarding  : ?  (remote display is forwarded through SSH) ││   ? DISPLAY         : ?  (automatically set on remote server)      ││                                                                    ││ ? For more info, ctrl+click on help or visit our website           │└────────────────────────────────────────────────────────────────────┘Last login: Sun Jun 15 15:09:05 2025 from 192.168.235.1
[root@web ~]# hostname
web.cn
您在 /var/spool/mail/root 中有新郵件
code@192.168.235.100's password:┌────────────────────────────────────────────────────────────────────┐│                        ? MobaXterm 20.0 ?                          ││            (SSH client, X-server and networking tools)             ││                                                                    ││ ? SSH session to code@192.168.235.100                              ││   ? SSH compression : ?                                            ││   ? SSH-browser     : ?                                            ││   ? X11-forwarding  : ?  (remote display is forwarded through SSH) ││   ? DISPLAY         : ?  (automatically set on remote server)      ││                                                                    ││ ? For more info, ctrl+click on help or visit our website           │└────────────────────────────────────────────────────────────────────┘Last login: Sun Jun 15 15:08:40 2025 from 192.168.235.1
[code@nfs ~]$ hostname
nfs.cn
     ┌────────────────────────────────────────────────────────────────────┐│                        ? MobaXterm 20.0 ?                          ││            (SSH client, X-server and networking tools)             ││                                                                    ││ ? SSH session to caozx26@192.168.235.200                           ││   ? SSH compression : ?                                            ││   ? SSH-browser     : ?                                            ││   ? X11-forwarding  : ?  (remote display is forwarded through SSH) ││   ? DISPLAY         : ?  (automatically set on remote server)      ││                                                                    ││ ? For more info, ctrl+click on help or visit our website           │└────────────────────────────────────────────────────────────────────┘Last login: Sun Jun 15 15:10:02 2025 from 192.168.235.1
[caozx26@backup ~]$ hostname
backup.cn

IP


[root@web html]# 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:97:84:5e brd ff:ff:ff:ff:ff:ffinet 192.168.235.20/24 brd 192.168.235.255 scope global ens33valid_lft forever preferred_lft foreverinet6 fe80::20c:29ff:fe97:845e/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:2a:35:da 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:2a:35:da brd ff:ff:ff:ff:ff:ff
您在 /var/spool/mail/root 中有郵件

nfs

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:e9:ad:9e 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:fee9:ad9e/64 scope linkvalid_lft forever preferred_lft forever

backup


[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:d2:84:d0 brd ff:ff:ff:ff:ff:ffinet 192.168.235.200/24 brd 192.168.235.255 scope global noprefixroute ens33valid_lft forever preferred_lft foreverinet6 fe80::20c:29ff:fed2:84d0/64 scope linkvalid_lft forever preferred_lft forever
3: ens34: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000link/ether 00:0c:29:d2:84:da brd ff:ff:ff:ff:ff:ffinet 11.1.1.10/24 brd 11.1.1.255 scope global noprefixroute ens34valid_lft forever preferred_lft foreverinet6 fe80::20c:29ff:fed2:84da/64 scope linkvalid_lft forever preferred_lft forever
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000link/ether 52:54:00:2b:f9:1b 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
5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000link/ether 52:54:00:2b:f9:1b brd ff:ff:ff:ff:ff:ff
[root@backup /]#

防火墻,selinux

[root@web ~]# 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@web ~]# setenforce 0
您在 /var/spool/mail/root 中有郵件
[root@web ~]# cat /etc/seleniux/config
cat: /etc/seleniux/config: 沒有那個文件或目錄
[root@web ~]# cat /etc/seleniux/config
cat: /etc/seleniux/config: 沒有那個文件或目錄
[root@web ~]# cd /etc/seliniux
-bash: cd: /etc/seliniux: 沒有那個文件或目錄
您在 /var/spool/mail/root 中有郵件
[root@web ~]# cd /etc
[root@web etc]# cd selinux
[root@web selinux]# cat 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

YUM

[root@web selinux]# cd /etc/yum.repos.d
您在 /var/spool/mail/root 中有郵件
[root@web yum.repos.d]# ls
ab.txt  c.txt  local.repo  rc.local  repo.tar.gz
[root@web yum.repos.d]# yum repolist
已加載插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
源標識                                                          源名稱                                                               狀態
!local                                                          local repo                                                           4,070
repolist: 4,070
[root@web yum.repos.d]# yum install httpd
已加載插件: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"
正在嘗試其它鏡像。
軟件包 httpd-2.4.6-95.el7.centos.x86_64 已安裝并且是最新版本
無須任何處理
[root@web yum.repos.d]# cat local.yum
cat: local.yum: 沒有那個文件或目錄
您在 /var/spool/mail/root 中有郵件
[root@web yum.repos.d]# cat local.repo
[local]
name=local repo
baseurl=file:///mnt
gpgcheck=0
enabled=1
您在 /var/spool/mail/root 中有郵件
[root@web yum.repos.d]# ls
ab.txt  c.txt  local.repo  rc.local  repo.tar.gz
[root@web yum.repos.d]# cat rc.local
mount -o ro /dev/sr0 /mnt
[root@web 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
您在 /var/spool/mail/root 中有郵件
[root@web yum.repos.d]# cd /mnt
您在 /var/spool/mail/root 中有郵件
[root@web mnt]# ls
iso
[root@web mnt]# rm -rf /mnt/*
[root@web mnt]# ls
[root@web mnt]# mount -o ro /dev/sr0 /mnt
您在 /var/spool/mail/root 中有郵件
[root@web mnt]# ls
[root@web 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@web mnt]# chmod +X /etc/rc.local
您在 /var/spool/mail/root 中有郵件
[root@web mnt]# echo 'mount -o ro /dev/sr0 /mnt'>>/etc/rc.local
您在 /var/spool/mail/root 中有郵件
[root@web 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

NFS服務器

下載

rpbbind nfs-utils

[code@nfs ~]$ rpm -q rpcbind
rpcbind-0.2.0-49.el7.x86_64
[code@nfs ~]$ rpm -qa|grep ^nfs
nfs4-acl-tools-0.3.3-21.el7.x86_64
nfs-utils-1.3.0-0.68.el7.x86_64
[code@nfs ~]$ yum install rpcbind nfs-utils
已加載插件:fastestmirror, langpacks
您需要 root 權限執行此命令。
[code@nfs ~]$ sudo su
[sudo] code 的密碼:
code 不在 sudoers 文件中。此事將被報告。
[code@nfs ~]$ su caozx26
su: user caozx26 does not exist
[code@nfs ~]$ 123
bash: 123: 未找到命令...
[code@nfs ~]$ su - caozx26420
密碼:
su: 鑒定故障
[code@nfs ~]$ su - caozx26420
密碼:
上一次登錄:日 615 19:54:10 CST 2025pts/3 上
最后一次失敗的登錄:三 618 19:30:03 CST 2025pts/0 上
最有一次成功登錄后有 1 次失敗的登錄嘗試。
[caozx26420@nfs ~]$ sudo su
[sudo] caozx26420 的密碼:
[root@nfs caozx26420]# yum install rpcbind
已加載插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
local                                                                                                              | 3.6 kB  00:00:00
軟件包 rpcbind-0.2.0-49.el7.x86_64 已安裝并且是最新版本
無須任何處理
[root@nfs caozx26420]# yum install nfs-utils
已加載插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
軟件包 1:nfs-utils-1.3.0-0.68.el7.x86_64 已安裝并且是最新版本
無須任何處理

創建/share

[root@nfs caozx26420]# mkdir /share
[root@nfs caozx26420]# cd /
[root@nfs /]# ls
35.txt  aa3   boot  etc          file20.java  file23.java  file4.java  file7.java  lib64  ok    root  share  tmp
aa1     app1  data  file19.java  file21.java  file2.java   file5.java  home        media  opt   run   srv    usr
aa2     bin   dev   file1.java   file22.java  file3.java   file6.java  lib         mnt    proc  sbin  sys    var

編寫/etc/exports

[root@nfs /]# vim /etc/exports
[root@nfs /]# cat /etc/exports
/share   192.168.235.0/24
[root@nfs /]# systemctl start rpcbind
[root@nfs /]# systemctl start nfs

更正


[root@nfs /]# vim /etc/exports
[root@nfs /]# cat /etc/exports
/share   192.168.235.0/24(rw,sync)

啟動

[root@nfs /]# systemctl start rpcbind
[root@nfs /]# ststemctl start nfs
bash: ststemctl: 未找到命令...
[root@nfs /]# systemctl start nfs
[root@nfs /]# ss -naltp|grep 111
LISTEN     0      128          *:111                      *:*                   users:(("rpcbind",pid=723,fd=8))
LISTEN     0      128       [::]:111                   [::]:*                   users:(("rpcbind",pid=723,fd=11))

WEB.SERVER

搭建

[root@web ~]# yum install httpd -y
已加載插件: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"
正在嘗試其它鏡像。
軟件包 httpd-2.4.6-95.el7.centos.x86_64 已安裝并且是最新版本
無須任何處理
您在 /var/spool/mail/root 中有郵件
[root@web ~]# 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@web ~]# setenforce 0
您在 /var/spool/mail/root 中有郵件
[root@web ~]# cat /etc/seleniux/config
cat: /etc/seleniux/config: 沒有那個文件或目錄
[root@web ~]# cat /etc/seleniux/config
cat: /etc/seleniux/config: 沒有那個文件或目錄
[root@web ~]# cd /etc/seliniux
-bash: cd: /etc/seliniux: 沒有那個文件或目錄
您在 /var/spool/mail/root 中有郵件
[root@web ~]# cd /etc
[root@web etc]# cd selinux
[root@web selinux]# cat 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@web selinux]# cd /etc/yum.repos.d
您在 /var/spool/mail/root 中有郵件
[root@web yum.repos.d]# ls
ab.txt  c.txt  local.repo  rc.local  repo.tar.gz
[root@web yum.repos.d]# yum repolist
已加載插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
源標識                                                          源名稱                                                               狀態
!local                                                          local repo                                                           4,070
repolist: 4,070
[root@web yum.repos.d]# yum install httpd
已加載插件: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"
正在嘗試其它鏡像。
軟件包 httpd-2.4.6-95.el7.centos.x86_64 已安裝并且是最新版本
無須任何處理
[root@web yum.repos.d]# cat local.yum
cat: local.yum: 沒有那個文件或目錄
您在 /var/spool/mail/root 中有郵件
[root@web yum.repos.d]# cat local.repo
[local]
name=local repo
baseurl=file:///mnt
gpgcheck=0
enabled=1
您在 /var/spool/mail/root 中有郵件
[root@web yum.repos.d]# ls
ab.txt  c.txt  local.repo  rc.local  repo.tar.gz
[root@web yum.repos.d]# cat rc.local
mount -o ro /dev/sr0 /mnt
[root@web 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
您在 /var/spool/mail/root 中有郵件
[root@web yum.repos.d]# cd /mnt
您在 /var/spool/mail/root 中有郵件
[root@web mnt]# ls
iso
[root@web mnt]# rm -rf /mnt/*
[root@web mnt]# ls
[root@web mnt]# mount -o ro /dev/sr0 /mnt
您在 /var/spool/mail/root 中有郵件
[root@web mnt]# ls
[root@web 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@web mnt]# chmod +X /etc/rc.local
您在 /var/spool/mail/root 中有郵件
[root@web mnt]# echo 'mount -o ro /dev/sr0 /mnt'>>/etc/rc.local
您在 /var/spool/mail/root 中有郵件
[root@web 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@web mnt]# yum install httpd -y
已加載插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
local                                                                                                              | 3.6 kB  00:00:00
軟件包 httpd-2.4.6-95.el7.centos.x86_64 已安裝并且是最新版本
無須任何處理
您在 /var/spool/mail/root 中有郵件
[root@web mnt]# systemctl start httpd
[root@web mnt]# echo 'NFS666'>/var/www/html/index.html
您在 /var/spool/mail/root 中有郵件
[root@web mnt]# cd /var/www/html
[root@web html]# cat index.html
NFS666

掛載NFS

[root@web html]# mkdir /var/www/html/media
您在 /var/spool/mail/root 中有郵件
[root@web html]# mount -t nfs.cn 192.168.235.100:/share /var/www/html/media
/sbin/mount.nfs: invalid option -- 't'
usage: mount.nfs remotetarget dir [-rvVwfnsh] [-o nfsoptions]
options:-r              Mount file system readonly-v              Verbose-V              Print version-w              Mount file system read-write-f              Fake mount, do not actually mount-n              Do not update /etc/mtab-s              Tolerate sloppy mount options rather than fail-h              Print this helpnfsoptions      Refer to mount.nfs(8) or nfs(5)您在 /var/spool/mail/root 中有郵件
[root@web html]# mount - t nfs 192.168.235.100:/share /var/www/html/media用法:mount [-lhV]mount -a [選項]mount [選項] [--source] <> | [--target] <目錄>mount [選項] <> <目錄>mount <操作> <掛載點> [<目標>]選項:-a, --all               掛載 fstab 中的所有文件系統-c, --no-canonicalize   不對路徑規范化-f, --fake              空運行;跳過 mount(2) 系統調用-F, --fork              對每個設備禁用 fork(-a 選項一起使用)-T, --fstab <路徑>      /etc/fstab 的替代文件-h, --help              顯示此幫助并退出-i, --internal-only     不調用 mount.<類型> 助手程序-l, --show-labels       列出所有帶有指定標簽的掛載-n, --no-mtab           不寫 /etc/mtab-o, --options <列表>    掛載選項列表,以英文逗號分隔-O, --test-opts <列表>  限制文件系統集合(-a 選項一起使用)-r, --read-only         以只讀方式掛載文件系統(-o ro)-t, --types <列表>      限制文件系統類型集合--source <>       指明源(路徑、標簽、uuid)--target <目標>     指明掛載點-v, --verbose           打印當前進行的操作-V, --version           顯示版本信息并退出-w, --rw, --read-write  以讀寫方式掛載文件系統(默認)-h, --help     顯示此幫助并退出-V, --version  輸出版本信息并退出源:-L, --label <標簽>LABEL=<label>-U, --uuid <uuid>UUID=<uuid>LABEL=<標簽>            按文件系統標簽指定設備UUID=<uuid>             按文件系統 UUID 指定設備PARTLABEL=<標簽>        按分區標簽指定設備PARTUUID=<uuid>         按分區 UUID 指定設備<設備>                  按路徑指定設備<目錄>                  綁定掛載的掛載點(參閱 --bind/rbind)<文件>                  用于設置回環設備的常規文件操作:-B, --bind              掛載其他位置的子樹(-o bind)-M, --move              將子樹移動到其他位置-R, --rbind             掛載其他位置的子樹及其包含的所有掛載--make-shared           將子樹標記為 共享--make-slave            將子樹標記為 從屬--make-private          將子樹標記為 私有--make-unbindable       將子樹標記為 不可綁定--make-rshared          遞歸地將整個子樹標記為 共享--make-rslave           遞歸地將整個子樹標記為 從屬--make-rprivate         遞歸地將整個子樹標記為 私有--make-runbindable      遞歸地將整個子樹標記為 不可綁定更多信息請參閱 mount(8)[root@web html]# df -h
文件系統                 容量  已用  可用 已用% 掛載點
devtmpfs                 470M     0  470M    0% /dev
tmpfs                    487M     0  487M    0% /dev/shm
tmpfs                    487M  8.4M  478M    2% /run
tmpfs                    487M     0  487M    0% /sys/fs/cgroup
/dev/mapper/centos-root   17G  4.9G   13G   29% /
/dev/sda1               1014M  172M  843M   17% /boot
tmpfs                     98M   12K   98M    1% /run/user/42
tmpfs                     98M     0   98M    0% /run/user/0
/dev/sr0                 4.4G  4.4G     0  100% /mnt
您在 /var/spool/mail/root 中有郵件
[root@web html]# mount -t nfs 192.168.235.100:/share /var/www/html/media
您在 /var/spool/mail/root 中有郵件
[root@web html]# df -h
文件系統                 容量  已用  可用 已用% 掛載點
devtmpfs                 470M     0  470M    0% /dev
tmpfs                    487M     0  487M    0% /dev/shm
tmpfs                    487M  8.4M  478M    2% /run
tmpfs                    487M     0  487M    0% /sys/fs/cgroup
/dev/mapper/centos-root   17G  4.9G   13G   29% /
/dev/sda1               1014M  172M  843M   17% /boot
tmpfs                     98M   12K   98M    1% /run/user/42
tmpfs                     98M     0   98M    0% /run/user/0
/dev/sr0                 4.4G  4.4G     0  100% /mnt
192.168.235.100:/share    17G  5.7G   12G   34% /var/www/html/media

測試1

NFS

在這里插入圖片描述

Web.cn

[root@web html]# ll media
總用量 4772
-rw-r--r--. 1 root root 4886296 618 21:07 share.mp4

WEB網頁調用

[root@web html]# vim /var/www/html/index.html
您在 /var/spool/mail/root 中有郵件
[root@web html]# cat /var/www/html/index.html
<<video width="800" height="450" controls>
<source src="media/share.mp4">
</video>

在這里插入圖片描述
成功

實時備份

下載

[root@nfs code]# tar xf inotify-tools-3.13.tar.gz \
> ^C
[root@nfs code]# tar xf inotify-tools-3.13.tar.gz
[root@nfs code]# ls
backup  cc.conf  code  inotify-tools-3.13  inotify-tools-3.13.tar.gz  rsync.sh  公共  模板  視頻  圖片  文檔  下載  音樂  桌面
[root@nfs code]# cd inotify-tools-3.13
[root@nfs inotify-tools-3.13]# ./configure
checking for a BSD-compatible install... /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... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /bin/ld
checking if the linker (/bin/ld) is GNU ld... yes
checking for /bin/ld option to reload object files... -r
checking for BSD-compatible nm... /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 /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 (/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /bin/ld -m elf_x86_64
checking if the linker (/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... no
checking if gfortran supports -c -o file.o... yes
checking whether the gfortran linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for doxygen... /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]: 進入目錄“/home/code/inotify-tools-3.13”
Making all in libinotifytools
make[2]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools”
make[3]: 進入目錄“/home/code/inotify-tools-3.13”
make[3]: 離開目錄“/home/code/inotify-tools-3.13”
Making all in src
make[3]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[4]: 進入目錄“/home/code/inotify-tools-3.13”
make[4]: 離開目錄“/home/code/inotify-tools-3.13”
Making all in inotifytools
make[4]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[5]: 進入目錄“/home/code/inotify-tools-3.13”
make[5]: 離開目錄“/home/code/inotify-tools-3.13”
cd ../../.. && /bin/sh /home/code/inotify-tools-3.13/missing --run autoheader
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:681: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:2759: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:2758: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:726: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:2759: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:2758: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
aclocal.m4:340: _LT_AC_SYS_LIBPATH_AIX is expanded from...
aclocal.m4:5533: AC_LIBTOOL_PROG_LD_SHLIBS is expanded from...
aclocal.m4:2759: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:2758: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
aclocal.m4:340: _LT_AC_SYS_LIBPATH_AIX is expanded from...
aclocal.m4:2836: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2835: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:681: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:2836: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2835: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:726: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:2836: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2835: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:681: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:4054: _LT_AC_LANG_F77_CONFIG is expanded from...
aclocal.m4:4053: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:726: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:4054: _LT_AC_LANG_F77_CONFIG is expanded from...
aclocal.m4:4053: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:681: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:4163: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:4162: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:726: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:4163: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:4162: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
aclocal.m4:340: _LT_AC_SYS_LIBPATH_AIX is expanded from...
aclocal.m4:5533: AC_LIBTOOL_PROG_LD_SHLIBS is expanded from...
aclocal.m4:4163: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:4162: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:48: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2729: _AC_RUN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2748: AC_RUN_IFELSE is expanded from...
configure.ac:48: the top level
rm -f stamp-h2
touch inotify.h.in
cd ../../.. && /bin/sh ./config.status libinotifytools/src/inotifytools/inotify.h
config.status: creating libinotifytools/src/inotifytools/inotify.h
config.status: libinotifytools/src/inotifytools/inotify.h is unchanged
make  all-am
make[5]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[6]: 進入目錄“/home/code/inotify-tools-3.13”
make[6]: 離開目錄“/home/code/inotify-tools-3.13”
make[5]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[4]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[4]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[5]: 進入目錄“/home/code/inotify-tools-3.13”
make[5]: 離開目錄“/home/code/inotify-tools-3.13”
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools    -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF ".deps/inotifytools.Tpo" -c -o inotifytools.lo inotifytools.c; \
then mv -f ".deps/inotifytools.Tpo" ".deps/inotifytools.Plo"; else rm -f ".deps/inotifytools.Tpo"; exit 1; fi
mkdir .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 inotifytools.c  -fPIC -DPIC -o .libs/inotifytools.o
inotifytools.c: In function 'event_compare':
inotifytools.c:2027:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]int sort_event = (int)config;^
inotifytools.c: In function 'inotifytools_wd_sorted_by_event':
inotifytools.c:2048:45: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]struct rbtree *ret = rbinit(event_compare, (void*)sort_event);^gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c inotifytools.c -o inotifytools.o >/dev/null 2>&1
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools    -std=c99 -g -O2 -MT redblack.lo -MD -MP -MF ".deps/redblack.Tpo" -c -o redblack.lo redblack.c; \
then mv -f ".deps/redblack.Tpo" ".deps/redblack.Plo"; else rm -f ".deps/redblack.Tpo"; exit 1; figcc -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.ogcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT redblack.lo -MD -MP -MF .deps/redblack.Tpo -c redblack.c -o redblack.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CC --mode=link gcc -std=c99 -g -O2   -o libinotifytools.la -rpath /usr/local/lib -version-info 4:1:4 inotifytools.lo redblack.lo
gcc -shared  .libs/inotifytools.o .libs/redblack.o   -Wl,-soname -Wl,libinotifytools.so.0 -o .libs/libinotifytools.so.0.4.1
(cd .libs && rm -f libinotifytools.so.0 && ln -s libinotifytools.so.0.4.1 libinotifytools.so.0)
(cd .libs && rm -f libinotifytools.so && ln -s libinotifytools.so.0.4.1 libinotifytools.so)
ar cru .libs/libinotifytools.a  inotifytools.o redblack.o
ranlib .libs/libinotifytools.a
creating libinotifytools.la
(cd .libs && rm -f libinotifytools.la && ln -s ../libinotifytools.la libinotifytools.la)
/bin/doxygen
Warning: Tag `USE_WINDOWS_ENCODING' at line 64 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `DETAILS_AT_TOP' at line 156 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `SHOW_DIRECTORIES' at line 390 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `HTML_ALIGN_MEMBERS' at line 674 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `MAX_DOT_GRAPH_WIDTH' at line 1196 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `MAX_DOT_GRAPH_HEIGHT' at line 1204 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Notice: Output directory `doc' does not exist. I have created it for you.
Searching for include files...
Searching for example files...
Searching for files in directory /home/code/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 /home/code/inotify-tools-3.13/libinotifytools/src/inotifytools/inotifytools.h...
Parsing file /home/code/inotify-tools-3.13/libinotifytools/src/inotifytools/inotifytools.h...
Preprocessing /home/code/inotify-tools-3.13/libinotifytools/src/inotifytools.c...
Parsing file /home/code/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]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[3]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[3]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools”
make[4]: 進入目錄“/home/code/inotify-tools-3.13”
make[4]: 離開目錄“/home/code/inotify-tools-3.13”
make[3]: 對“all-am”無需做任何事。
make[3]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools”
make[2]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools”
Making all in src
make[2]: 進入目錄“/home/code/inotify-tools-3.13/src”
make[3]: 進入目錄“/home/code/inotify-tools-3.13”
make[3]: 離開目錄“/home/code/inotify-tools-3.13”
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools    -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotifywait.o -MD -MP -MF ".deps/inotifywait.Tpo" -c -o inotifywait.o inotifywait.c; \
then mv -f ".deps/inotifywait.Tpo" ".deps/inotifywait.Po"; else rm -f ".deps/inotifywait.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools    -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT common.o -MD -MP -MF ".deps/common.Tpo" -c -o common.o common.c; \
then mv -f ".deps/common.Tpo" ".deps/common.Po"; else rm -f ".deps/common.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2   -o inotifywait  inotifywait.o common.o ../libinotifytools/src/libinotifytools.la
mkdir .libs
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywait inotifywait.o common.o  -L/home/code/inotify-tools-3.13/libinotifytools/src ../libinotifytools/src/.libs/libinotifytools.so  -Wl,--rpath -Wl,/usr/local/lib
creating inotifywait
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools    -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotifywatch.o -MD -MP -MF ".deps/inotifywatch.Tpo" -c -o inotifywatch.o inotifywatch.c; \
then mv -f ".deps/inotifywatch.Tpo" ".deps/inotifywatch.Po"; else rm -f ".deps/inotifywatch.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2   -o inotifywatch  inotifywatch.o common.o ../libinotifytools/src/libinotifytools.la
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywatch inotifywatch.o common.o  -L/home/code/inotify-tools-3.13/libinotifytools/src ../libinotifytools/src/.libs/libinotifytools.so  -Wl,--rpath -Wl,/usr/local/lib
creating inotifywatch
make[2]: 離開目錄“/home/code/inotify-tools-3.13/src”
Making all in man
make[2]: 進入目錄“/home/code/inotify-tools-3.13/man”
make[3]: 進入目錄“/home/code/inotify-tools-3.13”
make[3]: 離開目錄“/home/code/inotify-tools-3.13”
make[2]: 對“all”無需做任何事。
make[2]: 離開目錄“/home/code/inotify-tools-3.13/man”
make[2]: 進入目錄“/home/code/inotify-tools-3.13”
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
make[2]: 離開目錄“/home/code/inotify-tools-3.13”
make[1]: 離開目錄“/home/code/inotify-tools-3.13”
[root@nfs inotify-tools-3.13]# make install
Making install in libinotifytools
make[1]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools”
make[2]: 進入目錄“/home/code/inotify-tools-3.13”
make[2]: 離開目錄“/home/code/inotify-tools-3.13”
Making install in src
make[2]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[3]: 進入目錄“/home/code/inotify-tools-3.13”
make[3]: 離開目錄“/home/code/inotify-tools-3.13”
Making install in inotifytools
make[3]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[4]: 進入目錄“/home/code/inotify-tools-3.13”
make[4]: 離開目錄“/home/code/inotify-tools-3.13”
make[4]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[5]: 進入目錄“/home/code/inotify-tools-3.13”
make[5]: 離開目錄“/home/code/inotify-tools-3.13”
make[4]: 對“install-exec-am”無需做任何事。
make[4]: 對“install-data-am”無需做任何事。
make[4]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[3]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[3]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[4]: 進入目錄“/home/code/inotify-tools-3.13”
make[4]: 離開目錄“/home/code/inotify-tools-3.13”
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools    -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF ".deps/inotifytools.Tpo" -c -o inotifytools.lo inotifytools.c; \
then mv -f ".deps/inotifytools.Tpo" ".deps/inotifytools.Plo"; else rm -f ".deps/inotifytools.Tpo"; exit 1; 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 inotifytools.c  -fPIC -DPIC -o .libs/inotifytools.o
inotifytools.c: In function 'event_compare':
inotifytools.c:2027:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]int sort_event = (int)config;^
inotifytools.c: In function 'inotifytools_wd_sorted_by_event':
inotifytools.c:2048:45: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]struct rbtree *ret = rbinit(event_compare, (void*)sort_event);^gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c inotifytools.c -o inotifytools.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CC --mode=link gcc -std=c99 -g -O2   -o libinotifytools.la -rpath /usr/local/lib -version-info 4:1:4 inotifytools.lo redblack.lo
rm -fr  .libs/libinotifytools.a .libs/libinotifytools.la .libs/libinotifytools.lai .libs/libinotifytools.so .libs/libinotifytools.so.0 .libs/libinotifytools.so.0.4.1
gcc -shared  .libs/inotifytools.o .libs/redblack.o   -Wl,-soname -Wl,libinotifytools.so.0 -o .libs/libinotifytools.so.0.4.1
(cd .libs && rm -f libinotifytools.so.0 && ln -s libinotifytools.so.0.4.1 libinotifytools.so.0)
(cd .libs && rm -f libinotifytools.so && ln -s libinotifytools.so.0.4.1 libinotifytools.so)
ar cru .libs/libinotifytools.a  inotifytools.o redblack.o
ranlib .libs/libinotifytools.a
creating libinotifytools.la
(cd .libs && rm -f libinotifytools.la && ln -s ../libinotifytools.la libinotifytools.la)
make[4]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[5]: 進入目錄“/home/code/inotify-tools-3.13”
make[5]: 離開目錄“/home/code/inotify-tools-3.13”
test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib"/bin/sh ../../libtool --mode=install /bin/install -c  'libinotifytools.la' '/usr/local/lib/libinotifytools.la'
/bin/install -c .libs/libinotifytools.so.0.4.1 /usr/local/lib/libinotifytools.so.0.4.1
(cd /usr/local/lib && { ln -s -f libinotifytools.so.0.4.1 libinotifytools.so.0 || { rm -f libinotifytools.so.0 && ln -s libinotifytools.so.0.4.1 libinotifytools.so.0; }; })
(cd /usr/local/lib && { ln -s -f libinotifytools.so.0.4.1 libinotifytools.so || { rm -f libinotifytools.so && ln -s libinotifytools.so.0.4.1 libinotifytools.so; }; })
/bin/install -c .libs/libinotifytools.lai /usr/local/lib/libinotifytools.la
/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/doc/inotify-tools"/bin/install -c -m 644 'doc/html/bc_s.png' '/usr/local/share/doc/inotify-tools/bc_s.png'/bin/install -c -m 644 'doc/html/bdwn.png' '/usr/local/share/doc/inotify-tools/bdwn.png'/bin/install -c -m 644 'doc/html/closed.png' '/usr/local/share/doc/inotify-tools/closed.png'/bin/install -c -m 644 'doc/html/dir_6f9162800bb6dbbe5c86171e8602f383.html' '/usr/local/share/doc/inotify-tools/dir_6f9162800bb6dbbe5c86171e8602f383.html'/bin/install -c -m 644 'doc/html/doxygen.css' '/usr/local/share/doc/inotify-tools/doxygen.css'/bin/install -c -m 644 'doc/html/doxygen.png' '/usr/local/share/doc/inotify-tools/doxygen.png'/bin/install -c -m 644 'doc/html/dynsections.js' '/usr/local/share/doc/inotify-tools/dynsections.js'/bin/install -c -m 644 'doc/html/files.html' '/usr/local/share/doc/inotify-tools/files.html'/bin/install -c -m 644 'doc/html/ftv2blank.png' '/usr/local/share/doc/inotify-tools/ftv2blank.png'/bin/install -c -m 644 'doc/html/ftv2cl.png' '/usr/local/share/doc/inotify-tools/ftv2cl.png'/bin/install -c -m 644 'doc/html/ftv2doc.png' '/usr/local/share/doc/inotify-tools/ftv2doc.png'/bin/install -c -m 644 'doc/html/ftv2folderclosed.png' '/usr/local/share/doc/inotify-tools/ftv2folderclosed.png'/bin/install -c -m 644 'doc/html/ftv2folderopen.png' '/usr/local/share/doc/inotify-tools/ftv2folderopen.png'/bin/install -c -m 644 'doc/html/ftv2lastnode.png' '/usr/local/share/doc/inotify-tools/ftv2lastnode.png'/bin/install -c -m 644 'doc/html/ftv2link.png' '/usr/local/share/doc/inotify-tools/ftv2link.png'/bin/install -c -m 644 'doc/html/ftv2mlastnode.png' '/usr/local/share/doc/inotify-tools/ftv2mlastnode.png'/bin/install -c -m 644 'doc/html/ftv2mnode.png' '/usr/local/share/doc/inotify-tools/ftv2mnode.png'/bin/install -c -m 644 'doc/html/ftv2mo.png' '/usr/local/share/doc/inotify-tools/ftv2mo.png'/bin/install -c -m 644 'doc/html/ftv2node.png' '/usr/local/share/doc/inotify-tools/ftv2node.png'/bin/install -c -m 644 'doc/html/ftv2ns.png' '/usr/local/share/doc/inotify-tools/ftv2ns.png'/bin/install -c -m 644 'doc/html/ftv2plastnode.png' '/usr/local/share/doc/inotify-tools/ftv2plastnode.png'/bin/install -c -m 644 'doc/html/ftv2pnode.png' '/usr/local/share/doc/inotify-tools/ftv2pnode.png'/bin/install -c -m 644 'doc/html/ftv2splitbar.png' '/usr/local/share/doc/inotify-tools/ftv2splitbar.png'/bin/install -c -m 644 'doc/html/ftv2vertline.png' '/usr/local/share/doc/inotify-tools/ftv2vertline.png'/bin/install -c -m 644 'doc/html/globals_func.html' '/usr/local/share/doc/inotify-tools/globals_func.html'/bin/install -c -m 644 'doc/html/globals.html' '/usr/local/share/doc/inotify-tools/globals.html'/bin/install -c -m 644 'doc/html/index.html' '/usr/local/share/doc/inotify-tools/index.html'/bin/install -c -m 644 'doc/html/inotifytools_8c_source.html' '/usr/local/share/doc/inotify-tools/inotifytools_8c_source.html'/bin/install -c -m 644 'doc/html/inotifytools_8h.html' '/usr/local/share/doc/inotify-tools/inotifytools_8h.html'/bin/install -c -m 644 'doc/html/inotifytools_8h_source.html' '/usr/local/share/doc/inotify-tools/inotifytools_8h_source.html'/bin/install -c -m 644 'doc/html/jquery.js' '/usr/local/share/doc/inotify-tools/jquery.js'/bin/install -c -m 644 'doc/html/nav_f.png' '/usr/local/share/doc/inotify-tools/nav_f.png'/bin/install -c -m 644 'doc/html/nav_g.png' '/usr/local/share/doc/inotify-tools/nav_g.png'/bin/install -c -m 644 'doc/html/nav_h.png' '/usr/local/share/doc/inotify-tools/nav_h.png'/bin/install -c -m 644 'doc/html/open.png' '/usr/local/share/doc/inotify-tools/open.png'/bin/install -c -m 644 'doc/html/pages.html' '/usr/local/share/doc/inotify-tools/pages.html'/bin/install -c -m 644 'doc/html/sync_off.png' '/usr/local/share/doc/inotify-tools/sync_off.png'/bin/install -c -m 644 'doc/html/sync_on.png' '/usr/local/share/doc/inotify-tools/sync_on.png'/bin/install -c -m 644 'doc/html/tab_a.png' '/usr/local/share/doc/inotify-tools/tab_a.png'/bin/install -c -m 644 'doc/html/tab_b.png' '/usr/local/share/doc/inotify-tools/tab_b.png'/bin/install -c -m 644 'doc/html/tab_h.png' '/usr/local/share/doc/inotify-tools/tab_h.png'/bin/install -c -m 644 'doc/html/tabs.css' '/usr/local/share/doc/inotify-tools/tabs.css'/bin/install -c -m 644 'doc/html/tab_s.png' '/usr/local/share/doc/inotify-tools/tab_s.png'/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"/home/code/inotify-tools-3.13/install-sh -c -m 644 'inotifytools/inotifytools.h' '/usr/local/include/inotifytools/inotifytools.h'/home/code/inotify-tools-3.13/install-sh -c -m 644 'inotifytools/inotify-nosys.h' '/usr/local/include/inotifytools/inotify-nosys.h'/home/code/inotify-tools-3.13/install-sh -c -m 644 'inotifytools/inotify.h' '/usr/local/include/inotifytools/inotify.h'
make[4]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[3]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[2]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[2]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools”
make[3]: 進入目錄“/home/code/inotify-tools-3.13”
make[3]: 離開目錄“/home/code/inotify-tools-3.13”
make[3]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools”
make[4]: 進入目錄“/home/code/inotify-tools-3.13”
make[4]: 離開目錄“/home/code/inotify-tools-3.13”
make[3]: 對“install-exec-am”無需做任何事。
make[3]: 對“install-data-am”無需做任何事。
make[3]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools”
make[2]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools”
make[1]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools”
Making install in src
make[1]: 進入目錄“/home/code/inotify-tools-3.13/src”
make[2]: 進入目錄“/home/code/inotify-tools-3.13”
make[2]: 離開目錄“/home/code/inotify-tools-3.13”
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools    -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotifywait.o -MD -MP -MF ".deps/inotifywait.Tpo" -c -o inotifywait.o inotifywait.c; \
then mv -f ".deps/inotifywait.Tpo" ".deps/inotifywait.Po"; else rm -f ".deps/inotifywait.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools    -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT common.o -MD -MP -MF ".deps/common.Tpo" -c -o common.o common.c; \
then mv -f ".deps/common.Tpo" ".deps/common.Po"; else rm -f ".deps/common.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2   -o inotifywait  inotifywait.o common.o ../libinotifytools/src/libinotifytools.la
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywait inotifywait.o common.o  -L/home/code/inotify-tools-3.13/libinotifytools/src ../libinotifytools/src/.libs/libinotifytools.so  -Wl,--rpath -Wl,/usr/local/lib
creating inotifywait
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools    -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotifywatch.o -MD -MP -MF ".deps/inotifywatch.Tpo" -c -o inotifywatch.o inotifywatch.c; \
then mv -f ".deps/inotifywatch.Tpo" ".deps/inotifywatch.Po"; else rm -f ".deps/inotifywatch.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2   -o inotifywatch  inotifywatch.o common.o ../libinotifytools/src/libinotifytools.la
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywatch inotifywatch.o common.o  -L/home/code/inotify-tools-3.13/libinotifytools/src ../libinotifytools/src/.libs/libinotifytools.so  -Wl,--rpath -Wl,/usr/local/lib
creating inotifywatch
make[2]: 進入目錄“/home/code/inotify-tools-3.13/src”
make[3]: 進入目錄“/home/code/inotify-tools-3.13”
make[3]: 離開目錄“/home/code/inotify-tools-3.13”
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"/bin/sh ../libtool --mode=install /bin/install -c 'inotifywait' '/usr/local/bin/inotifywait'
/bin/install -c .libs/inotifywait /usr/local/bin/inotifywait/bin/sh ../libtool --mode=install /bin/install -c 'inotifywatch' '/usr/local/bin/inotifywatch'
/bin/install -c .libs/inotifywatch /usr/local/bin/inotifywatch
make[2]: 對“install-data-am”無需做任何事。
make[2]: 離開目錄“/home/code/inotify-tools-3.13/src”
make[1]: 離開目錄“/home/code/inotify-tools-3.13/src”
Making install in man
make[1]: 進入目錄“/home/code/inotify-tools-3.13/man”
make[2]: 進入目錄“/home/code/inotify-tools-3.13”
make[2]: 離開目錄“/home/code/inotify-tools-3.13”
make[2]: 進入目錄“/home/code/inotify-tools-3.13/man”
make[3]: 進入目錄“/home/code/inotify-tools-3.13”
make[3]: 離開目錄“/home/code/inotify-tools-3.13”
make[2]: 對“install-exec-am”無需做任何事。
test -z "/usr/local/share/man/man1" || mkdir -p -- "/usr/local/share/man/man1"/bin/install -c -m 644 './inotifywait.1' '/usr/local/share/man/man1/inotifywait.1'/bin/install -c -m 644 './inotifywatch.1' '/usr/local/share/man/man1/inotifywatch.1'
make[2]: 離開目錄“/home/code/inotify-tools-3.13/man”
make[1]: 離開目錄“/home/code/inotify-tools-3.13/man”
make[1]: 進入目錄“/home/code/inotify-tools-3.13”
make[2]: 進入目錄“/home/code/inotify-tools-3.13”
make[2]: 對“install-exec-am”無需做任何事。
make[2]: 對“install-data-am”無需做任何事。
make[2]: 離開目錄“/home/code/inotify-tools-3.13”
make[1]: 離開目錄“/home/code/inotify-tools-3.13”
[root@nfs inotify-tools-3.13]# ls
aclocal.m4      ChangeLog     config.h.in   config.status  configure.ac  INSTALL          libtool    Makefile.am  missing  src
AUTHORS         config.guess  config.h.in~  config.sub     COPYING       install-sh       ltmain.sh  Makefile.in  NEWS     stamp-h1
autom4te.cache  config.h      config.log    configure      depcomp       libinotifytools  Makefile   man          README
[root@nfs inotify-tools-3.13]# cd /
[root@nfs /]# ls
35.txt  aa3   boot  etc          file20.java  file23.java  file4.java  file7.java  lib64  ok    root  share  tmp
aa1     app1  data  file19.java  file21.java  file2.java   file5.java  home        media  opt   run   srv    usr
aa2     bin   dev   file1.java   file22.java  file3.java   file6.java  lib         mnt    proc  sbin  sys    var
[root@nfs /]# cp /home/code/inotify-tools-3.13  /
cp: 略過目錄"/home/code/inotify-tools-3.13"
[root@nfs /]# ls
35.txt  aa3   boot  etc          file20.java  file23.java  file4.java  file7.java  lib64  ok    root  share  tmp
aa1     app1  data  file19.java  file21.java  file2.java   file5.java  home        media  opt   run   srv    usr
aa2     bin   dev   file1.java   file22.java  file3.java   file6.java  lib         mnt    proc  sbin  sys    var
[root@nfs /]# mv /home/code/inotify-tools-3.13 /
[root@nfs /]# ls
35.txt  aa3   boot  etc          file20.java  file23.java  file4.java  file7.java          lib    mnt  proc  sbin   sys  var
aa1     app1  data  file19.java  file21.java  file2.java   file5.java  home                lib64  ok   root  share  tmp
aa2     bin   dev   file1.java   file22.java  file3.java   file6.java  inotify-tools-3.13  media  opt  run   srv    usr
[root@nfs /]# cd inotify-tools-3.13/
[root@nfs inotify-tools-3.13]# ls
aclocal.m4      ChangeLog     config.h.in   config.status  configure.ac  INSTALL          libtool    Makefile.am  missing  src
AUTHORS         config.guess  config.h.in~  config.sub     COPYING       install-sh       ltmain.sh  Makefile.in  NEWS     stamp-h1
autom4te.cache  config.h      config.log    configure      depcomp       libinotifytools  Makefile   man          README
[root@nfs inotify-tools-3.13]# cd /
[root@nfs /]# ls
35.txt  aa3   boot  etc          file20.java  file23.java  file4.java  file7.java          lib    mnt  proc  sbin   sys  var
aa1     app1  data  file19.java  file21.java  file2.java   file5.java  home                lib64  ok   root  share  tmp
aa2     bin   dev   file1.java   file22.java  file3.java   file6.java  inotify-tools-3.13  media  opt  run   srv    usr
[root@nfs /]# vim rsync.sh
[root@nfs /]# cd /
[root@nfs /]# cd inotify-tools-3.13/
[root@nfs inotify-tools-3.13]# ls
aclocal.m4      ChangeLog     config.h.in   config.status  configure.ac  INSTALL          libtool    Makefile.am  missing  src
AUTHORS         config.guess  config.h.in~  config.sub     COPYING       install-sh       ltmain.sh  Makefile.in  NEWS     stamp-h1
autom4te.cache  config.h      config.log    configure      depcomp       libinotifytools  Makefile   man          README
[root@nfs inotify-tools-3.13]# cd libinotifytools/inotifytool
bash: cd: libinotifytools/inotifytool: 沒有那個文件或目錄
[root@nfs inotify-tools-3.13]# cd libinotifytools/
[root@nfs libinotifytools]# ls
Makefile  Makefile.am  Makefile.in  src
[root@nfs libinotifytools]# ls src
doc       example.c     inotifytools.c   inotifytools.o    libinotifytools.la  Makefile.am  redblack.c  redblack.lo  test.c
Doxyfile  inotifytools  inotifytools.lo  inotifytools_p.h  Makefile            Makefile.in  redblack.h  redblack.o
[root@nfs libinotifytools]# cd inotifytools
bash: cd: inotifytools: 沒有那個文件或目錄
[root@nfs libinotifytools]# ls inotifytools
ls: 無法訪問inotifytools: 沒有那個文件或目錄
[root@nfs libinotifytools]# cd inotifytools
bash: cd: inotifytools: 沒有那個文件或目錄
[root@nfs libinotifytools]# cd ~
[root@nfs ~]# ks
bash: ks: 未找到命令...
[root@nfs ~]# ls
ab.txt  anaconda-ks.cfg  bb.conf  initial-setup-ks.cfg  kk.txt  ok  sun.conf  sun.txt
[root@nfs ~]# cd  /inotify-tools-3.13/
[root@nfs inotify-tools-3.13]# ls
aclocal.m4      ChangeLog     config.h.in   config.status  configure.ac  INSTALL          libtool    Makefile.am  missing  src
AUTHORS         config.guess  config.h.in~  config.sub     COPYING       install-sh       ltmain.sh  Makefile.in  NEWS     stamp-h1
autom4te.cache  config.h      config.log    configure      depcomp       libinotifytools  Makefile   man          README
[root@nfs inotify-tools-3.13]# cd /
[root@nfs /]# rpm -qa|grep inotifywait
[root@nfs /]# rpm -ql inotifywait
未安裝軟件包 inotifywait
[root@nfs /]# find / -name inotifywait
find: ‘/proc/36827’: 沒有那個文件或目錄
find: ‘/run/user/1001/gvfs’: 權限不夠
/usr/local/bin/inotifywait
/inotify-tools-3.13/src/.libs/inotifywait
/inotify-tools-3.13/src/inotifywait

rsync.sh

[root@nfs /]# cd /usr/local/bin
[root@nfs bin]# ls
inotifywait  inotifywatch
[root@nfs bin]# cd /
[root@nfs /]# ls
35.txt  aa3   boot  etc          file20.java  file23.java  file4.java  file7.java          lib    mnt  proc      run    srv  usr
aa1     app1  data  file19.java  file21.java  file2.java   file5.java  home                lib64  ok   root      sbin   sys  var
aa2     bin   dev   file1.java   file22.java  file3.java   file6.java  inotify-tools-3.13  media  opt  rsync.sh  share  tmp
[root@nfs /]# vim rsync.sh
[root@nfs /]# cat rsync.sh
/usr/local/bin/inotifywait -mrq -e create,delete,modify,move,attrib /share |while read events
do
rsync -a --delete /share/ 192.168.235.200:/backup
echo"$(date '+%F %T')出現事件$events">>/var/log/rsync.log 2>&1
done
[root@nfs /]# vim rsync.sh
[root@nfs /]# car rsync.sh
bash: car: 未找到命令...
相似命令是: 'sar'
[root@nfs /]# cat rsync.sh
/usr/local/bin/inotifywait -mrq -e create,delete,modify,move,attrib /share |while read events
do
rsync -a --delete /share/ 192.168.235.200:/backup/
echo"$(date '+%F %T')出現事件$events">>/var/log/rsync.log 2>&1
done

執行

[root@nfs /]# chmod +X rsync.sh

沒完

源碼

192.168.235.20

root@192.168.235.20's password:┌────────────────────────────────────────────────────────────────────┐│                        ? MobaXterm 20.0 ?                          ││            (SSH client, X-server and networking tools)             ││                                                                    ││ ? SSH session to root@192.168.235.20                               ││   ? SSH compression : ?                                            ││   ? SSH-browser     : ?                                            ││   ? X11-forwarding  : ?  (remote display is forwarded through SSH) ││   ? DISPLAY         : ?  (automatically set on remote server)      ││                                                                    ││ ? For more info, ctrl+click on help or visit our website           │└────────────────────────────────────────────────────────────────────┘Last login: Sun Jun 15 15:09:05 2025 from 192.168.235.1
[root@web ~]# hostname
web.cn
您在 /var/spool/mail/root 中有新郵件
[root@web ~]# yum install httpd -y
已加載插件: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"
正在嘗試其它鏡像。
軟件包 httpd-2.4.6-95.el7.centos.x86_64 已安裝并且是最新版本
無須任何處理
您在 /var/spool/mail/root 中有郵件
[root@web ~]# 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@web ~]# setenforce 0
您在 /var/spool/mail/root 中有郵件
[root@web ~]# cat /etc/seleniux/config
cat: /etc/seleniux/config: 沒有那個文件或目錄
[root@web ~]# cat /etc/seleniux/config
cat: /etc/seleniux/config: 沒有那個文件或目錄
[root@web ~]# cd /etc/seliniux
-bash: cd: /etc/seliniux: 沒有那個文件或目錄
您在 /var/spool/mail/root 中有郵件
[root@web ~]# cd /etc
[root@web etc]# cd selinux
[root@web selinux]# cat 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@web selinux]# cd /etc/yum.repos.d
您在 /var/spool/mail/root 中有郵件
[root@web yum.repos.d]# ls
ab.txt  c.txt  local.repo  rc.local  repo.tar.gz
[root@web yum.repos.d]# yum repolist
已加載插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
源標識                                                          源名稱                                                               狀態
!local                                                          local repo                                                           4,070
repolist: 4,070
[root@web yum.repos.d]# yum install httpd
已加載插件: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"
正在嘗試其它鏡像。
軟件包 httpd-2.4.6-95.el7.centos.x86_64 已安裝并且是最新版本
無須任何處理
[root@web yum.repos.d]# cat local.yum
cat: local.yum: 沒有那個文件或目錄
您在 /var/spool/mail/root 中有郵件
[root@web yum.repos.d]# cat local.repo
[local]
name=local repo
baseurl=file:///mnt
gpgcheck=0
enabled=1
您在 /var/spool/mail/root 中有郵件
[root@web yum.repos.d]# ls
ab.txt  c.txt  local.repo  rc.local  repo.tar.gz
[root@web yum.repos.d]# cat rc.local
mount -o ro /dev/sr0 /mnt
[root@web 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
您在 /var/spool/mail/root 中有郵件
[root@web yum.repos.d]# cd /mnt
您在 /var/spool/mail/root 中有郵件
[root@web mnt]# ls
iso
[root@web mnt]# rm -rf /mnt/*
[root@web mnt]# ls
[root@web mnt]# mount -o ro /dev/sr0 /mnt
您在 /var/spool/mail/root 中有郵件
[root@web mnt]# ls
[root@web 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@web mnt]# chmod +X /etc/rc.local
您在 /var/spool/mail/root 中有郵件
[root@web mnt]# echo 'mount -o ro /dev/sr0 /mnt'>>/etc/rc.local
您在 /var/spool/mail/root 中有郵件
[root@web 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@web mnt]# yum install httpd -y
已加載插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
local                                                                                                              | 3.6 kB  00:00:00
軟件包 httpd-2.4.6-95.el7.centos.x86_64 已安裝并且是最新版本
無須任何處理
您在 /var/spool/mail/root 中有郵件
[root@web mnt]# systemctl start httpd
[root@web mnt]# echo 'NFS666'>/var/www/html/index.html
您在 /var/spool/mail/root 中有郵件
[root@web mnt]# cd /var/www/html
[root@web html]# cat index.html
NFS666
[root@web html]# mkdir /var/www/html/media
您在 /var/spool/mail/root 中有郵件
[root@web html]# mount -t nfs.cn 192.168.235.100:/share /var/www/html/media
/sbin/mount.nfs: invalid option -- 't'
usage: mount.nfs remotetarget dir [-rvVwfnsh] [-o nfsoptions]
options:-r              Mount file system readonly-v              Verbose-V              Print version-w              Mount file system read-write-f              Fake mount, do not actually mount-n              Do not update /etc/mtab-s              Tolerate sloppy mount options rather than fail-h              Print this helpnfsoptions      Refer to mount.nfs(8) or nfs(5)您在 /var/spool/mail/root 中有郵件
[root@web html]# mount - t nfs 192.168.235.100:/share /var/www/html/media用法:mount [-lhV]mount -a [選項]mount [選項] [--source] <源> | [--target] <目錄>mount [選項] <源> <目錄>mount <操作> <掛載點> [<目標>]選項:-a, --all               掛載 fstab 中的所有文件系統-c, --no-canonicalize   不對路徑規范化-f, --fake              空運行;跳過 mount(2) 系統調用-F, --fork              對每個設備禁用 fork(和 -a 選項一起使用)-T, --fstab <路徑>      /etc/fstab 的替代文件-h, --help              顯示此幫助并退出-i, --internal-only     不調用 mount.<類型> 助手程序-l, --show-labels       列出所有帶有指定標簽的掛載-n, --no-mtab           不寫 /etc/mtab-o, --options <列表>    掛載選項列表,以英文逗號分隔-O, --test-opts <列表>  限制文件系統集合(和 -a 選項一起使用)-r, --read-only         以只讀方式掛載文件系統(同 -o ro)-t, --types <列表>      限制文件系統類型集合--source <源>       指明源(路徑、標簽、uuid)--target <目標>     指明掛載點-v, --verbose           打印當前進行的操作-V, --version           顯示版本信息并退出-w, --rw, --read-write  以讀寫方式掛載文件系統(默認)-h, --help     顯示此幫助并退出-V, --version  輸出版本信息并退出源:-L, --label <標簽>      同 LABEL=<label>-U, --uuid <uuid>       同 UUID=<uuid>LABEL=<標簽>            按文件系統標簽指定設備UUID=<uuid>             按文件系統 UUID 指定設備PARTLABEL=<標簽>        按分區標簽指定設備PARTUUID=<uuid>         按分區 UUID 指定設備<設備>                  按路徑指定設備<目錄>                  綁定掛載的掛載點(參閱 --bind/rbind)<文件>                  用于設置回環設備的常規文件操作:-B, --bind              掛載其他位置的子樹(同 -o bind)-M, --move              將子樹移動到其他位置-R, --rbind             掛載其他位置的子樹及其包含的所有掛載--make-shared           將子樹標記為 共享--make-slave            將子樹標記為 從屬--make-private          將子樹標記為 私有--make-unbindable       將子樹標記為 不可綁定--make-rshared          遞歸地將整個子樹標記為 共享--make-rslave           遞歸地將整個子樹標記為 從屬--make-rprivate         遞歸地將整個子樹標記為 私有--make-runbindable      遞歸地將整個子樹標記為 不可綁定更多信息請參閱 mount(8)。
[root@web html]# df -h
文件系統                 容量  已用  可用 已用% 掛載點
devtmpfs                 470M     0  470M    0% /dev
tmpfs                    487M     0  487M    0% /dev/shm
tmpfs                    487M  8.4M  478M    2% /run
tmpfs                    487M     0  487M    0% /sys/fs/cgroup
/dev/mapper/centos-root   17G  4.9G   13G   29% /
/dev/sda1               1014M  172M  843M   17% /boot
tmpfs                     98M   12K   98M    1% /run/user/42
tmpfs                     98M     0   98M    0% /run/user/0
/dev/sr0                 4.4G  4.4G     0  100% /mnt
您在 /var/spool/mail/root 中有郵件
[root@web html]# mount -t nfs 192.168.235.100:/share /var/www/html/media
您在 /var/spool/mail/root 中有郵件
[root@web html]# df -h
文件系統                 容量  已用  可用 已用% 掛載點
devtmpfs                 470M     0  470M    0% /dev
tmpfs                    487M     0  487M    0% /dev/shm
tmpfs                    487M  8.4M  478M    2% /run
tmpfs                    487M     0  487M    0% /sys/fs/cgroup
/dev/mapper/centos-root   17G  4.9G   13G   29% /
/dev/sda1               1014M  172M  843M   17% /boot
tmpfs                     98M   12K   98M    1% /run/user/42
tmpfs                     98M     0   98M    0% /run/user/0
/dev/sr0                 4.4G  4.4G     0  100% /mnt
192.168.235.100:/share    17G  5.7G   12G   34% /var/www/html/media
[root@web html]# rpm -qa|grep httpd
httpd-2.4.6-95.el7.centos.x86_64
httpd-tools-2.4.6-95.el7.centos.x86_64
您在 /var/spool/mail/root 中有郵件
[root@web html]# rpm -ql http
未安裝軟件包 http
[root@web html]# ssh -vvv root@192.168.235.100 -p 3333
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug2: resolving "192.168.235.100" port 3333
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 192.168.235.100 [192.168.235.100] port 3333.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /root/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.4
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
debug1: match: OpenSSH_7.4 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 192.168.235.100:3333 as 'root'
debug3: put_host_port: [192.168.235.100]:3333
debug3: hostkeys_foreach: reading file "/root/.ssh/known_hosts"
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,ext-info-c
debug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com,zlib
debug2: compression stoc: none,zlib@openssh.com,zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc,blowfish-cbc,cast128-cbc,3des-cbc
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: curve25519-sha256 need=64 dh_need=64
debug1: kex: curve25519-sha256 need=64 dh_need=64
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:+8RG4GdpTOwlDCCFt0rsKQV5kuZ3v4pWCO/z9qTTqhw
debug3: put_host_port: [192.168.235.100]:3333
debug3: put_host_port: [192.168.235.100]:3333
debug3: hostkeys_foreach: reading file "/root/.ssh/known_hosts"
debug3: hostkeys_foreach: reading file "/root/.ssh/known_hosts"
debug1: checking without port identifier
debug3: hostkeys_foreach: reading file "/root/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /root/.ssh/known_hosts:2
debug3: load_hostkeys: loaded 1 keys from 192.168.235.100
debug1: Host '192.168.235.100' is known and matches the ECDSA host key.
debug1: Found key in /root/.ssh/known_hosts:2
debug1: found matching key w/out port
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey after 134217728 blocks
debug2: key: /root/.ssh/id_rsa (0x55623635d320)
debug2: key: /root/.ssh/id_dsa ((nil))
debug2: key: /root/.ssh/id_ecdsa ((nil))
debug2: key: /root/.ssh/id_ed25519 ((nil))
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup gssapi-keyex
debug3: remaining preferred: gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_is_enabled gssapi-keyex
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug2: we did not send a packet, disable method
debug3: authmethod_lookup gssapi-with-mic
debug3: remaining preferred: publickey,keyboard-interactive,password
debug3: authmethod_is_enabled gssapi-with-mic
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure.  Minor code may provide more information
No Kerberos credentials available (default cache: KEYRING:persistent:0)debug1: Unspecified GSS failure.  Minor code may provide more information
No Kerberos credentials available (default cache: KEYRING:persistent:0)debug2: we did not send a packet, disable method
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /root/.ssh/id_rsa
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Trying private key: /root/.ssh/id_dsa
debug3: no such identity: /root/.ssh/id_dsa: No such file or directory
debug1: Trying private key: /root/.ssh/id_ecdsa
debug3: no such identity: /root/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: /root/.ssh/id_ed25519
debug3: no such identity: /root/.ssh/id_ed25519: No such file or directory
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
root@192.168.235.100's password:
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
Permission denied, please try again.
root@192.168.235.100's password:
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
Permission denied, please try again.
root@192.168.235.100's password:
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
您在 /var/spool/mail/root 中有郵件
[root@web html]# ll media
總用量 4772
-rw-r--r--. 1 root root 4886296 618 21:07 share.mp4
您在 /var/spool/mail/root 中有郵件
[root@web html]# vim /var/www/html/index.html
您在 /var/spool/mail/root 中有郵件
[root@web html]# cat /var/www/html/index.html
<<video width="800" height="450" controls>
<source src="media/share.mp4">
</video>
[root@web html]# 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:97:84:5e brd ff:ff:ff:ff:ff:ffinet 192.168.235.20/24 brd 192.168.235.255 scope global ens33valid_lft forever preferred_lft foreverinet6 fe80::20c:29ff:fe97:845e/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:2a:35:da 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:2a:35:da brd ff:ff:ff:ff:ff:ff
您在 /var/spool/mail/root 中有郵件
[root@web html]#

192.168.235.100

code@192.168.235.100's password:┌────────────────────────────────────────────────────────────────────┐│                        ? MobaXterm 20.0 ?                          ││            (SSH client, X-server and networking tools)             ││                                                                    ││ ? SSH session to code@192.168.235.100                              ││   ? SSH compression : ?                                            ││   ? SSH-browser     : ?                                            ││   ? X11-forwarding  : ?  (remote display is forwarded through SSH) ││   ? DISPLAY         : ?  (automatically set on remote server)      ││                                                                    ││ ? For more info, ctrl+click on help or visit our website           │└────────────────────────────────────────────────────────────────────┘Last login: Sun Jun 15 15:08:40 2025 from 192.168.235.1
[code@nfs ~]$ hostname
nfs.cn
[code@nfs ~]$ rpm -q rpcbind
rpcbind-0.2.0-49.el7.x86_64
[code@nfs ~]$ rpm -qa|grep ^nfs
nfs4-acl-tools-0.3.3-21.el7.x86_64
nfs-utils-1.3.0-0.68.el7.x86_64
[code@nfs ~]$ yum install rpcbind nfs-utils
已加載插件:fastestmirror, langpacks
您需要 root 權限執行此命令。
[code@nfs ~]$ sudo su
[sudo] code 的密碼:
code 不在 sudoers 文件中。此事將被報告。
[code@nfs ~]$ su caozx26
su: user caozx26 does not exist
[code@nfs ~]$ 123
bash: 123: 未找到命令...
[code@nfs ~]$ su - caozx26420
密碼:
su: 鑒定故障
[code@nfs ~]$ su - caozx26420
密碼:
上一次登錄:日 6月 15 19:54:10 CST 2025pts/3 上
最后一次失敗的登錄:三 6月 18 19:30:03 CST 2025pts/0 上
最有一次成功登錄后有 1 次失敗的登錄嘗試。
[caozx26420@nfs ~]$ sudo su
[sudo] caozx26420 的密碼:
[root@nfs caozx26420]# yum install rpcbind
已加載插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
local                                                                                                              | 3.6 kB  00:00:00
軟件包 rpcbind-0.2.0-49.el7.x86_64 已安裝并且是最新版本
無須任何處理
[root@nfs caozx26420]# yum install nfs-utils
已加載插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
軟件包 1:nfs-utils-1.3.0-0.68.el7.x86_64 已安裝并且是最新版本
無須任何處理
[root@nfs caozx26420]# mkdir /share
[root@nfs caozx26420]# cd /
[root@nfs /]# ls
35.txt  aa3   boot  etc          file20.java  file23.java  file4.java  file7.java  lib64  ok    root  share  tmp
aa1     app1  data  file19.java  file21.java  file2.java   file5.java  home        media  opt   run   srv    usr
aa2     bin   dev   file1.java   file22.java  file3.java   file6.java  lib         mnt    proc  sbin  sys    var
[root@nfs /]# vim /etc/exports
[root@nfs /]# cat /etc/exports
/share   192.168.235.0/24
[root@nfs /]# systemctl start rpcbind
[root@nfs /]# systemctl start nfs
[root@nfs /]# netstat -lnlp |grep rpcbind
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      723/rpcbind
tcp6       0      0 :::111                  :::*                    LISTEN      723/rpcbind
udp        0      0 0.0.0.0:890             0.0.0.0:*                           723/rpcbind
udp        0      0 0.0.0.0:111             0.0.0.0:*                           723/rpcbind
udp6       0      0 :::890                  :::*                                723/rpcbind
udp6       0      0 :::111                  :::*                                723/rpcbind
unix  2      [ ACC ]     STREAM     LISTENING     17167    1/systemd            /var/run/rpcbind.sock
[root@nfs /]# ss -naltp |grep 111
LISTEN     0      128          *:111                      *:*                   users:(("rpcbind",pid=723,fd=8))
LISTEN     0      128       [::]:111                   [::]:*                   users:(("rpcbind",pid=723,fd=11))
[root@nfs /]# 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@nfs /]# 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:e9:ad:9e 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:fee9:ad9e/64 scope linkvalid_lft forever preferred_lft forever
[root@nfs /]# hostname
nfs.cn
[root@nfs /]# ls -l /share
總用量 0
[root@nfs /]# ll /share
總用量 0
[root@nfs /]# ls -l /share
總用量 0
[root@nfs /]# ll /share
總用量 0
[root@nfs /]# ll -d /share
drwxr-xr-x. 2 root root 6 6月  18 19:32 /share
[root@nfs /]# cd  /etc
[root@nfs etc]# cd ssh
[root@nfs ssh]# ls
moduli      sshd_config         ssh_host_ecdsa_key.pub  ssh_host_ed25519_key.pub  ssh_host_rsa_key.pub
ssh_config  ssh_host_ecdsa_key  ssh_host_ed25519_key    ssh_host_rsa_key
[root@nfs 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 3333
#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 No
#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@nfs ssh]# jobs
[root@nfs ssh]# ls
moduli      sshd_config         ssh_host_ecdsa_key.pub  ssh_host_ed25519_key.pub  ssh_host_rsa_key.pub
ssh_config  ssh_host_ecdsa_key  ssh_host_ed25519_key    ssh_host_rsa_key
[root@nfs ssh]# vim sshd_config
[root@nfs 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 3333
#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@nfs ssh]# su - caozx26420
上一次登錄:三 618 19:30:17 CST 2025pts/0 上
[caozx26420@nfs ~]$ sudo su
[sudo] caozx26420 的密碼:
[root@nfs caozx26420]# ls
525.txt  core.2691  復仇女神4.png  公共  模板  視頻  圖片  文檔  下載  音樂  桌面
[root@nfs caozx26420]# cd /etc/ssh
[root@nfs 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 3333
#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@nfs ssh]# ssh root@192.168.235.100 -p 3333
The authenticity of host '[192.168.235.100]:3333 ([192.168.235.100]:3333)' can't be established.
ECDSA key fingerprint is SHA256:+8RG4GdpTOwlDCCFt0rsKQV5kuZ3v4pWCO/z9qTTqhw.
ECDSA key fingerprint is MD5:e4:f1:b2:d5:1d:87:e6:2a:6a:0d:ef:27:4f:16:8b:df.
Are you sure you want to continue connecting (yes/no)? tes
Please type 'yes' or 'no': tes
Please type 'yes' or 'no': yes
Warning: Permanently added '[192.168.235.100]:3333' (ECDSA) to the list of known hosts.
root@192.168.235.100's password:
Permission denied, please try again.
root@192.168.235.100's password:
Permission denied, please try again.
root@192.168.235.100's password:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
[root@nfs ssh]# systemctl restart sshd
[root@nfs ssh]# systemctl status sshd
● sshd.service - OpenSSH server daemonLoaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)Active: active (running) since 三 2025-06-18 20:55:50 CST; 6s agoDocs: man:sshd(8)man:sshd_config(5)Main PID: 18575 (sshd)CGroup: /system.slice/sshd.service└─18575 /usr/sbin/sshd -D618 20:55:50 nfs.cn systemd[1]: Stopped OpenSSH server daemon.
618 20:55:50 nfs.cn systemd[1]: Starting OpenSSH server daemon...
618 20:55:50 nfs.cn sshd[18575]: Server listening on 0.0.0.0 port 3333.
618 20:55:50 nfs.cn sshd[18575]: Server listening on :: port 3333.
618 20:55:50 nfs.cn systemd[1]: Started OpenSSH server daemon.
[root@nfs ssh]# cd /home/code
[root@nfs code]# ls
backup  cc.conf  code  inotify-tools-3.13.tar.gz  rsync.sh  公共  模板  視頻  圖片  文檔  下載  音樂  桌面
[root@nfs code]# tar xf inotify-tools-3.13.tar.gz \
> ^C
[root@nfs code]# tar xf inotify-tools-3.13.tar.gz
[root@nfs code]# ls
backup  cc.conf  code  inotify-tools-3.13  inotify-tools-3.13.tar.gz  rsync.sh  公共  模板  視頻  圖片  文檔  下載  音樂  桌面
[root@nfs code]# cd inotify-tools-3.13
[root@nfs inotify-tools-3.13]# ./configure
checking for a BSD-compatible install... /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... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /bin/ld
checking if the linker (/bin/ld) is GNU ld... yes
checking for /bin/ld option to reload object files... -r
checking for BSD-compatible nm... /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 /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 (/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /bin/ld -m elf_x86_64
checking if the linker (/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... no
checking if gfortran supports -c -o file.o... yes
checking whether the gfortran linker (/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for doxygen... /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]: 進入目錄“/home/code/inotify-tools-3.13”
Making all in libinotifytools
make[2]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools”
make[3]: 進入目錄“/home/code/inotify-tools-3.13”
make[3]: 離開目錄“/home/code/inotify-tools-3.13”
Making all in src
make[3]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[4]: 進入目錄“/home/code/inotify-tools-3.13”
make[4]: 離開目錄“/home/code/inotify-tools-3.13”
Making all in inotifytools
make[4]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[5]: 進入目錄“/home/code/inotify-tools-3.13”
make[5]: 離開目錄“/home/code/inotify-tools-3.13”
cd ../../.. && /bin/sh /home/code/inotify-tools-3.13/missing --run autoheader
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:681: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:2759: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:2758: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_static_works, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:726: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:2759: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:2758: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
aclocal.m4:340: _LT_AC_SYS_LIBPATH_AIX is expanded from...
aclocal.m4:5533: AC_LIBTOOL_PROG_LD_SHLIBS is expanded from...
aclocal.m4:2759: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:2758: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
aclocal.m4:340: _LT_AC_SYS_LIBPATH_AIX is expanded from...
aclocal.m4:2836: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2835: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:681: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:2836: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2835: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_CXX, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:726: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:2836: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:2835: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:681: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:4054: _LT_AC_LANG_F77_CONFIG is expanded from...
aclocal.m4:4053: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_F77, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:726: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:4054: _LT_AC_LANG_F77_CONFIG is expanded from...
aclocal.m4:4053: AC_LIBTOOL_LANG_F77_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_pic_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:681: AC_LIBTOOL_COMPILER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:4163: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:4162: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_CACHE_VAL(lt_prog_compiler_static_works_GCJ, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:726: AC_LIBTOOL_LINKER_OPTION is expanded from...
aclocal.m4:4974: AC_LIBTOOL_PROG_COMPILER_PIC is expanded from...
aclocal.m4:4163: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:4162: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:15: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
aclocal.m4:340: _LT_AC_SYS_LIBPATH_AIX is expanded from...
aclocal.m4:5533: AC_LIBTOOL_PROG_LD_SHLIBS is expanded from...
aclocal.m4:4163: _LT_AC_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:4162: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
aclocal.m4:1884: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:86: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:66: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:31: AC_PROG_LIBTOOL is expanded from...
configure.ac:15: the top level
configure.ac:48: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2729: _AC_RUN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:639: AS_IF is expanded from...
../../lib/autoconf/general.m4:2748: AC_RUN_IFELSE is expanded from...
configure.ac:48: the top level
rm -f stamp-h2
touch inotify.h.in
cd ../../.. && /bin/sh ./config.status libinotifytools/src/inotifytools/inotify.h
config.status: creating libinotifytools/src/inotifytools/inotify.h
config.status: libinotifytools/src/inotifytools/inotify.h is unchanged
make  all-am
make[5]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[6]: 進入目錄“/home/code/inotify-tools-3.13”
make[6]: 離開目錄“/home/code/inotify-tools-3.13”
make[5]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[4]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[4]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[5]: 進入目錄“/home/code/inotify-tools-3.13”
make[5]: 離開目錄“/home/code/inotify-tools-3.13”
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools    -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF ".deps/inotifytools.Tpo" -c -o inotifytools.lo inotifytools.c; \
then mv -f ".deps/inotifytools.Tpo" ".deps/inotifytools.Plo"; else rm -f ".deps/inotifytools.Tpo"; exit 1; fi
mkdir .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 inotifytools.c  -fPIC -DPIC -o .libs/inotifytools.o
inotifytools.c: In function 'event_compare':
inotifytools.c:2027:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]int sort_event = (int)config;^
inotifytools.c: In function 'inotifytools_wd_sorted_by_event':
inotifytools.c:2048:45: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]struct rbtree *ret = rbinit(event_compare, (void*)sort_event);^gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c inotifytools.c -o inotifytools.o >/dev/null 2>&1
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools    -std=c99 -g -O2 -MT redblack.lo -MD -MP -MF ".deps/redblack.Tpo" -c -o redblack.lo redblack.c; \
then mv -f ".deps/redblack.Tpo" ".deps/redblack.Plo"; else rm -f ".deps/redblack.Tpo"; exit 1; figcc -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.ogcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT redblack.lo -MD -MP -MF .deps/redblack.Tpo -c redblack.c -o redblack.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CC --mode=link gcc -std=c99 -g -O2   -o libinotifytools.la -rpath /usr/local/lib -version-info 4:1:4 inotifytools.lo redblack.lo
gcc -shared  .libs/inotifytools.o .libs/redblack.o   -Wl,-soname -Wl,libinotifytools.so.0 -o .libs/libinotifytools.so.0.4.1
(cd .libs && rm -f libinotifytools.so.0 && ln -s libinotifytools.so.0.4.1 libinotifytools.so.0)
(cd .libs && rm -f libinotifytools.so && ln -s libinotifytools.so.0.4.1 libinotifytools.so)
ar cru .libs/libinotifytools.a  inotifytools.o redblack.o
ranlib .libs/libinotifytools.a
creating libinotifytools.la
(cd .libs && rm -f libinotifytools.la && ln -s ../libinotifytools.la libinotifytools.la)
/bin/doxygen
Warning: Tag `USE_WINDOWS_ENCODING' at line 64 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `DETAILS_AT_TOP' at line 156 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `SHOW_DIRECTORIES' at line 390 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `HTML_ALIGN_MEMBERS' at line 674 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `MAX_DOT_GRAPH_WIDTH' at line 1196 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Warning: Tag `MAX_DOT_GRAPH_HEIGHT' at line 1204 of file Doxyfile has become obsolete.
To avoid this warning please remove this line from your configuration file or upgrade it using "doxygen -u"
Notice: Output directory `doc' does not exist. I have created it for you.
Searching for include files...
Searching for example files...
Searching for files in directory /home/code/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 /home/code/inotify-tools-3.13/libinotifytools/src/inotifytools/inotifytools.h...
Parsing file /home/code/inotify-tools-3.13/libinotifytools/src/inotifytools/inotifytools.h...
Preprocessing /home/code/inotify-tools-3.13/libinotifytools/src/inotifytools.c...
Parsing file /home/code/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]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[3]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[3]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools”
make[4]: 進入目錄“/home/code/inotify-tools-3.13”
make[4]: 離開目錄“/home/code/inotify-tools-3.13”
make[3]: 對“all-am”無需做任何事。
make[3]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools”
make[2]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools”
Making all in src
make[2]: 進入目錄“/home/code/inotify-tools-3.13/src”
make[3]: 進入目錄“/home/code/inotify-tools-3.13”
make[3]: 離開目錄“/home/code/inotify-tools-3.13”
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools    -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotifywait.o -MD -MP -MF ".deps/inotifywait.Tpo" -c -o inotifywait.o inotifywait.c; \
then mv -f ".deps/inotifywait.Tpo" ".deps/inotifywait.Po"; else rm -f ".deps/inotifywait.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools    -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT common.o -MD -MP -MF ".deps/common.Tpo" -c -o common.o common.c; \
then mv -f ".deps/common.Tpo" ".deps/common.Po"; else rm -f ".deps/common.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2   -o inotifywait  inotifywait.o common.o ../libinotifytools/src/libinotifytools.la
mkdir .libs
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywait inotifywait.o common.o  -L/home/code/inotify-tools-3.13/libinotifytools/src ../libinotifytools/src/.libs/libinotifytools.so  -Wl,--rpath -Wl,/usr/local/lib
creating inotifywait
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools    -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotifywatch.o -MD -MP -MF ".deps/inotifywatch.Tpo" -c -o inotifywatch.o inotifywatch.c; \
then mv -f ".deps/inotifywatch.Tpo" ".deps/inotifywatch.Po"; else rm -f ".deps/inotifywatch.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2   -o inotifywatch  inotifywatch.o common.o ../libinotifytools/src/libinotifytools.la
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywatch inotifywatch.o common.o  -L/home/code/inotify-tools-3.13/libinotifytools/src ../libinotifytools/src/.libs/libinotifytools.so  -Wl,--rpath -Wl,/usr/local/lib
creating inotifywatch
make[2]: 離開目錄“/home/code/inotify-tools-3.13/src”
Making all in man
make[2]: 進入目錄“/home/code/inotify-tools-3.13/man”
make[3]: 進入目錄“/home/code/inotify-tools-3.13”
make[3]: 離開目錄“/home/code/inotify-tools-3.13”
make[2]: 對“all”無需做任何事。
make[2]: 離開目錄“/home/code/inotify-tools-3.13/man”
make[2]: 進入目錄“/home/code/inotify-tools-3.13”
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
make[2]: 離開目錄“/home/code/inotify-tools-3.13”
make[1]: 離開目錄“/home/code/inotify-tools-3.13”
[root@nfs inotify-tools-3.13]# make install
Making install in libinotifytools
make[1]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools”
make[2]: 進入目錄“/home/code/inotify-tools-3.13”
make[2]: 離開目錄“/home/code/inotify-tools-3.13”
Making install in src
make[2]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[3]: 進入目錄“/home/code/inotify-tools-3.13”
make[3]: 離開目錄“/home/code/inotify-tools-3.13”
Making install in inotifytools
make[3]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[4]: 進入目錄“/home/code/inotify-tools-3.13”
make[4]: 離開目錄“/home/code/inotify-tools-3.13”
make[4]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[5]: 進入目錄“/home/code/inotify-tools-3.13”
make[5]: 離開目錄“/home/code/inotify-tools-3.13”
make[4]: 對“install-exec-am”無需做任何事。
make[4]: 對“install-data-am”無需做任何事。
make[4]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[3]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools/src/inotifytools”
make[3]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[4]: 進入目錄“/home/code/inotify-tools-3.13”
make[4]: 離開目錄“/home/code/inotify-tools-3.13”
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools    -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF ".deps/inotifytools.Tpo" -c -o inotifytools.lo inotifytools.c; \
then mv -f ".deps/inotifytools.Tpo" ".deps/inotifytools.Plo"; else rm -f ".deps/inotifytools.Tpo"; exit 1; 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 inotifytools.c  -fPIC -DPIC -o .libs/inotifytools.o
inotifytools.c: In function 'event_compare':
inotifytools.c:2027:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]int sort_event = (int)config;^
inotifytools.c: In function 'inotifytools_wd_sorted_by_event':
inotifytools.c:2048:45: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]struct rbtree *ret = rbinit(event_compare, (void*)sort_event);^gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../libinotifytools/src/inotifytools -std=c99 -g -O2 -MT inotifytools.lo -MD -MP -MF .deps/inotifytools.Tpo -c inotifytools.c -o inotifytools.o >/dev/null 2>&1
/bin/sh ../../libtool --tag=CC --mode=link gcc -std=c99 -g -O2   -o libinotifytools.la -rpath /usr/local/lib -version-info 4:1:4 inotifytools.lo redblack.lo
rm -fr  .libs/libinotifytools.a .libs/libinotifytools.la .libs/libinotifytools.lai .libs/libinotifytools.so .libs/libinotifytools.so.0 .libs/libinotifytools.so.0.4.1
gcc -shared  .libs/inotifytools.o .libs/redblack.o   -Wl,-soname -Wl,libinotifytools.so.0 -o .libs/libinotifytools.so.0.4.1
(cd .libs && rm -f libinotifytools.so.0 && ln -s libinotifytools.so.0.4.1 libinotifytools.so.0)
(cd .libs && rm -f libinotifytools.so && ln -s libinotifytools.so.0.4.1 libinotifytools.so)
ar cru .libs/libinotifytools.a  inotifytools.o redblack.o
ranlib .libs/libinotifytools.a
creating libinotifytools.la
(cd .libs && rm -f libinotifytools.la && ln -s ../libinotifytools.la libinotifytools.la)
make[4]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[5]: 進入目錄“/home/code/inotify-tools-3.13”
make[5]: 離開目錄“/home/code/inotify-tools-3.13”
test -z "/usr/local/lib" || mkdir -p -- "/usr/local/lib"/bin/sh ../../libtool --mode=install /bin/install -c  'libinotifytools.la' '/usr/local/lib/libinotifytools.la'
/bin/install -c .libs/libinotifytools.so.0.4.1 /usr/local/lib/libinotifytools.so.0.4.1
(cd /usr/local/lib && { ln -s -f libinotifytools.so.0.4.1 libinotifytools.so.0 || { rm -f libinotifytools.so.0 && ln -s libinotifytools.so.0.4.1 libinotifytools.so.0; }; })
(cd /usr/local/lib && { ln -s -f libinotifytools.so.0.4.1 libinotifytools.so || { rm -f libinotifytools.so && ln -s libinotifytools.so.0.4.1 libinotifytools.so; }; })
/bin/install -c .libs/libinotifytools.lai /usr/local/lib/libinotifytools.la
/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/doc/inotify-tools"/bin/install -c -m 644 'doc/html/bc_s.png' '/usr/local/share/doc/inotify-tools/bc_s.png'/bin/install -c -m 644 'doc/html/bdwn.png' '/usr/local/share/doc/inotify-tools/bdwn.png'/bin/install -c -m 644 'doc/html/closed.png' '/usr/local/share/doc/inotify-tools/closed.png'/bin/install -c -m 644 'doc/html/dir_6f9162800bb6dbbe5c86171e8602f383.html' '/usr/local/share/doc/inotify-tools/dir_6f9162800bb6dbbe5c86171e8602f383.html'/bin/install -c -m 644 'doc/html/doxygen.css' '/usr/local/share/doc/inotify-tools/doxygen.css'/bin/install -c -m 644 'doc/html/doxygen.png' '/usr/local/share/doc/inotify-tools/doxygen.png'/bin/install -c -m 644 'doc/html/dynsections.js' '/usr/local/share/doc/inotify-tools/dynsections.js'/bin/install -c -m 644 'doc/html/files.html' '/usr/local/share/doc/inotify-tools/files.html'/bin/install -c -m 644 'doc/html/ftv2blank.png' '/usr/local/share/doc/inotify-tools/ftv2blank.png'/bin/install -c -m 644 'doc/html/ftv2cl.png' '/usr/local/share/doc/inotify-tools/ftv2cl.png'/bin/install -c -m 644 'doc/html/ftv2doc.png' '/usr/local/share/doc/inotify-tools/ftv2doc.png'/bin/install -c -m 644 'doc/html/ftv2folderclosed.png' '/usr/local/share/doc/inotify-tools/ftv2folderclosed.png'/bin/install -c -m 644 'doc/html/ftv2folderopen.png' '/usr/local/share/doc/inotify-tools/ftv2folderopen.png'/bin/install -c -m 644 'doc/html/ftv2lastnode.png' '/usr/local/share/doc/inotify-tools/ftv2lastnode.png'/bin/install -c -m 644 'doc/html/ftv2link.png' '/usr/local/share/doc/inotify-tools/ftv2link.png'/bin/install -c -m 644 'doc/html/ftv2mlastnode.png' '/usr/local/share/doc/inotify-tools/ftv2mlastnode.png'/bin/install -c -m 644 'doc/html/ftv2mnode.png' '/usr/local/share/doc/inotify-tools/ftv2mnode.png'/bin/install -c -m 644 'doc/html/ftv2mo.png' '/usr/local/share/doc/inotify-tools/ftv2mo.png'/bin/install -c -m 644 'doc/html/ftv2node.png' '/usr/local/share/doc/inotify-tools/ftv2node.png'/bin/install -c -m 644 'doc/html/ftv2ns.png' '/usr/local/share/doc/inotify-tools/ftv2ns.png'/bin/install -c -m 644 'doc/html/ftv2plastnode.png' '/usr/local/share/doc/inotify-tools/ftv2plastnode.png'/bin/install -c -m 644 'doc/html/ftv2pnode.png' '/usr/local/share/doc/inotify-tools/ftv2pnode.png'/bin/install -c -m 644 'doc/html/ftv2splitbar.png' '/usr/local/share/doc/inotify-tools/ftv2splitbar.png'/bin/install -c -m 644 'doc/html/ftv2vertline.png' '/usr/local/share/doc/inotify-tools/ftv2vertline.png'/bin/install -c -m 644 'doc/html/globals_func.html' '/usr/local/share/doc/inotify-tools/globals_func.html'/bin/install -c -m 644 'doc/html/globals.html' '/usr/local/share/doc/inotify-tools/globals.html'/bin/install -c -m 644 'doc/html/index.html' '/usr/local/share/doc/inotify-tools/index.html'/bin/install -c -m 644 'doc/html/inotifytools_8c_source.html' '/usr/local/share/doc/inotify-tools/inotifytools_8c_source.html'/bin/install -c -m 644 'doc/html/inotifytools_8h.html' '/usr/local/share/doc/inotify-tools/inotifytools_8h.html'/bin/install -c -m 644 'doc/html/inotifytools_8h_source.html' '/usr/local/share/doc/inotify-tools/inotifytools_8h_source.html'/bin/install -c -m 644 'doc/html/jquery.js' '/usr/local/share/doc/inotify-tools/jquery.js'/bin/install -c -m 644 'doc/html/nav_f.png' '/usr/local/share/doc/inotify-tools/nav_f.png'/bin/install -c -m 644 'doc/html/nav_g.png' '/usr/local/share/doc/inotify-tools/nav_g.png'/bin/install -c -m 644 'doc/html/nav_h.png' '/usr/local/share/doc/inotify-tools/nav_h.png'/bin/install -c -m 644 'doc/html/open.png' '/usr/local/share/doc/inotify-tools/open.png'/bin/install -c -m 644 'doc/html/pages.html' '/usr/local/share/doc/inotify-tools/pages.html'/bin/install -c -m 644 'doc/html/sync_off.png' '/usr/local/share/doc/inotify-tools/sync_off.png'/bin/install -c -m 644 'doc/html/sync_on.png' '/usr/local/share/doc/inotify-tools/sync_on.png'/bin/install -c -m 644 'doc/html/tab_a.png' '/usr/local/share/doc/inotify-tools/tab_a.png'/bin/install -c -m 644 'doc/html/tab_b.png' '/usr/local/share/doc/inotify-tools/tab_b.png'/bin/install -c -m 644 'doc/html/tab_h.png' '/usr/local/share/doc/inotify-tools/tab_h.png'/bin/install -c -m 644 'doc/html/tabs.css' '/usr/local/share/doc/inotify-tools/tabs.css'/bin/install -c -m 644 'doc/html/tab_s.png' '/usr/local/share/doc/inotify-tools/tab_s.png'/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"/home/code/inotify-tools-3.13/install-sh -c -m 644 'inotifytools/inotifytools.h' '/usr/local/include/inotifytools/inotifytools.h'/home/code/inotify-tools-3.13/install-sh -c -m 644 'inotifytools/inotify-nosys.h' '/usr/local/include/inotifytools/inotify-nosys.h'/home/code/inotify-tools-3.13/install-sh -c -m 644 'inotifytools/inotify.h' '/usr/local/include/inotifytools/inotify.h'
make[4]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[3]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[2]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools/src”
make[2]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools”
make[3]: 進入目錄“/home/code/inotify-tools-3.13”
make[3]: 離開目錄“/home/code/inotify-tools-3.13”
make[3]: 進入目錄“/home/code/inotify-tools-3.13/libinotifytools”
make[4]: 進入目錄“/home/code/inotify-tools-3.13”
make[4]: 離開目錄“/home/code/inotify-tools-3.13”
make[3]: 對“install-exec-am”無需做任何事。
make[3]: 對“install-data-am”無需做任何事。
make[3]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools”
make[2]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools”
make[1]: 離開目錄“/home/code/inotify-tools-3.13/libinotifytools”
Making install in src
make[1]: 進入目錄“/home/code/inotify-tools-3.13/src”
make[2]: 進入目錄“/home/code/inotify-tools-3.13”
make[2]: 離開目錄“/home/code/inotify-tools-3.13”
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools    -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotifywait.o -MD -MP -MF ".deps/inotifywait.Tpo" -c -o inotifywait.o inotifywait.c; \
then mv -f ".deps/inotifywait.Tpo" ".deps/inotifywait.Po"; else rm -f ".deps/inotifywait.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools    -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT common.o -MD -MP -MF ".deps/common.Tpo" -c -o common.o common.c; \
then mv -f ".deps/common.Tpo" ".deps/common.Po"; else rm -f ".deps/common.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2   -o inotifywait  inotifywait.o common.o ../libinotifytools/src/libinotifytools.la
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywait inotifywait.o common.o  -L/home/code/inotify-tools-3.13/libinotifytools/src ../libinotifytools/src/.libs/libinotifytools.so  -Wl,--rpath -Wl,/usr/local/lib
creating inotifywait
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libinotifytools/src/inotifytools    -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2 -MT inotifywatch.o -MD -MP -MF ".deps/inotifywatch.Tpo" -c -o inotifywatch.o inotifywatch.c; \
then mv -f ".deps/inotifywatch.Tpo" ".deps/inotifywatch.Po"; else rm -f ".deps/inotifywatch.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link gcc -std=c99 -I../libinotifytools/src -L../libinotifytools/src -g -O2   -o inotifywatch  inotifywatch.o common.o ../libinotifytools/src/libinotifytools.la
gcc -std=c99 -I../libinotifytools/src -g -O2 -o .libs/inotifywatch inotifywatch.o common.o  -L/home/code/inotify-tools-3.13/libinotifytools/src ../libinotifytools/src/.libs/libinotifytools.so  -Wl,--rpath -Wl,/usr/local/lib
creating inotifywatch
make[2]: 進入目錄“/home/code/inotify-tools-3.13/src”
make[3]: 進入目錄“/home/code/inotify-tools-3.13”
make[3]: 離開目錄“/home/code/inotify-tools-3.13”
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"/bin/sh ../libtool --mode=install /bin/install -c 'inotifywait' '/usr/local/bin/inotifywait'
/bin/install -c .libs/inotifywait /usr/local/bin/inotifywait/bin/sh ../libtool --mode=install /bin/install -c 'inotifywatch' '/usr/local/bin/inotifywatch'
/bin/install -c .libs/inotifywatch /usr/local/bin/inotifywatch
make[2]: 對“install-data-am”無需做任何事。
make[2]: 離開目錄“/home/code/inotify-tools-3.13/src”
make[1]: 離開目錄“/home/code/inotify-tools-3.13/src”
Making install in man
make[1]: 進入目錄“/home/code/inotify-tools-3.13/man”
make[2]: 進入目錄“/home/code/inotify-tools-3.13”
make[2]: 離開目錄“/home/code/inotify-tools-3.13”
make[2]: 進入目錄“/home/code/inotify-tools-3.13/man”
make[3]: 進入目錄“/home/code/inotify-tools-3.13”
make[3]: 離開目錄“/home/code/inotify-tools-3.13”
make[2]: 對“install-exec-am”無需做任何事。
test -z "/usr/local/share/man/man1" || mkdir -p -- "/usr/local/share/man/man1"/bin/install -c -m 644 './inotifywait.1' '/usr/local/share/man/man1/inotifywait.1'/bin/install -c -m 644 './inotifywatch.1' '/usr/local/share/man/man1/inotifywatch.1'
make[2]: 離開目錄“/home/code/inotify-tools-3.13/man”
make[1]: 離開目錄“/home/code/inotify-tools-3.13/man”
make[1]: 進入目錄“/home/code/inotify-tools-3.13”
make[2]: 進入目錄“/home/code/inotify-tools-3.13”
make[2]: 對“install-exec-am”無需做任何事。
make[2]: 對“install-data-am”無需做任何事。
make[2]: 離開目錄“/home/code/inotify-tools-3.13”
make[1]: 離開目錄“/home/code/inotify-tools-3.13”
[root@nfs inotify-tools-3.13]# ls
aclocal.m4      ChangeLog     config.h.in   config.status  configure.ac  INSTALL          libtool    Makefile.am  missing  src
AUTHORS         config.guess  config.h.in~  config.sub     COPYING       install-sh       ltmain.sh  Makefile.in  NEWS     stamp-h1
autom4te.cache  config.h      config.log    configure      depcomp       libinotifytools  Makefile   man          README
[root@nfs inotify-tools-3.13]# cd /
[root@nfs /]# ls
35.txt  aa3   boot  etc          file20.java  file23.java  file4.java  file7.java  lib64  ok    root  share  tmp
aa1     app1  data  file19.java  file21.java  file2.java   file5.java  home        media  opt   run   srv    usr
aa2     bin   dev   file1.java   file22.java  file3.java   file6.java  lib         mnt    proc  sbin  sys    var
[root@nfs /]# cp /home/code/inotify-tools-3.13  /
cp: 略過目錄"/home/code/inotify-tools-3.13"
[root@nfs /]# ls
35.txt  aa3   boot  etc          file20.java  file23.java  file4.java  file7.java  lib64  ok    root  share  tmp
aa1     app1  data  file19.java  file21.java  file2.java   file5.java  home        media  opt   run   srv    usr
aa2     bin   dev   file1.java   file22.java  file3.java   file6.java  lib         mnt    proc  sbin  sys    var
[root@nfs /]# mv /home/code/inotify-tools-3.13 /
[root@nfs /]# ls
35.txt  aa3   boot  etc          file20.java  file23.java  file4.java  file7.java          lib    mnt  proc  sbin   sys  var
aa1     app1  data  file19.java  file21.java  file2.java   file5.java  home                lib64  ok   root  share  tmp
aa2     bin   dev   file1.java   file22.java  file3.java   file6.java  inotify-tools-3.13  media  opt  run   srv    usr
[root@nfs /]# cd inotify-tools-3.13/
[root@nfs inotify-tools-3.13]# ls
aclocal.m4      ChangeLog     config.h.in   config.status  configure.ac  INSTALL          libtool    Makefile.am  missing  src
AUTHORS         config.guess  config.h.in~  config.sub     COPYING       install-sh       ltmain.sh  Makefile.in  NEWS     stamp-h1
autom4te.cache  config.h      config.log    configure      depcomp       libinotifytools  Makefile   man          README
[root@nfs inotify-tools-3.13]# cd /
[root@nfs /]# ls
35.txt  aa3   boot  etc          file20.java  file23.java  file4.java  file7.java          lib    mnt  proc  sbin   sys  var
aa1     app1  data  file19.java  file21.java  file2.java   file5.java  home                lib64  ok   root  share  tmp
aa2     bin   dev   file1.java   file22.java  file3.java   file6.java  inotify-tools-3.13  media  opt  run   srv    usr
[root@nfs /]# vim rsync.sh
[root@nfs /]# cd /
[root@nfs /]# cd inotify-tools-3.13/
[root@nfs inotify-tools-3.13]# ls
aclocal.m4      ChangeLog     config.h.in   config.status  configure.ac  INSTALL          libtool    Makefile.am  missing  src
AUTHORS         config.guess  config.h.in~  config.sub     COPYING       install-sh       ltmain.sh  Makefile.in  NEWS     stamp-h1
autom4te.cache  config.h      config.log    configure      depcomp       libinotifytools  Makefile   man          README
[root@nfs inotify-tools-3.13]# cd libinotifytools/inotifytool
bash: cd: libinotifytools/inotifytool: 沒有那個文件或目錄
[root@nfs inotify-tools-3.13]# cd libinotifytools/
[root@nfs libinotifytools]# ls
Makefile  Makefile.am  Makefile.in  src
[root@nfs libinotifytools]# ls src
doc       example.c     inotifytools.c   inotifytools.o    libinotifytools.la  Makefile.am  redblack.c  redblack.lo  test.c
Doxyfile  inotifytools  inotifytools.lo  inotifytools_p.h  Makefile            Makefile.in  redblack.h  redblack.o
[root@nfs libinotifytools]# cd inotifytools
bash: cd: inotifytools: 沒有那個文件或目錄
[root@nfs libinotifytools]# ls inotifytools
ls: 無法訪問inotifytools: 沒有那個文件或目錄
[root@nfs libinotifytools]# cd inotifytools
bash: cd: inotifytools: 沒有那個文件或目錄
[root@nfs libinotifytools]# cd ~
[root@nfs ~]# ks
bash: ks: 未找到命令...
[root@nfs ~]# ls
ab.txt  anaconda-ks.cfg  bb.conf  initial-setup-ks.cfg  kk.txt  ok  sun.conf  sun.txt
[root@nfs ~]# cd  /inotify-tools-3.13/
[root@nfs inotify-tools-3.13]# ls
aclocal.m4      ChangeLog     config.h.in   config.status  configure.ac  INSTALL          libtool    Makefile.am  missing  src
AUTHORS         config.guess  config.h.in~  config.sub     COPYING       install-sh       ltmain.sh  Makefile.in  NEWS     stamp-h1
autom4te.cache  config.h      config.log    configure      depcomp       libinotifytools  Makefile   man          README
[root@nfs inotify-tools-3.13]# cd /
[root@nfs /]# rpm -qa|grep inotifywait
[root@nfs /]# rpm -ql inotifywait
未安裝軟件包 inotifywait
[root@nfs /]# find / -name inotifywait
find: ‘/proc/36827’: 沒有那個文件或目錄
find: ‘/run/user/1001/gvfs’: 權限不夠
/usr/local/bin/inotifywait
/inotify-tools-3.13/src/.libs/inotifywait
/inotify-tools-3.13/src/inotifywait
[root@nfs /]# cd /usr/local/bin
[root@nfs bin]# ls
inotifywait  inotifywatch
[root@nfs bin]# cd /
[root@nfs /]# ls
35.txt  aa3   boot  etc          file20.java  file23.java  file4.java  file7.java          lib    mnt  proc      run    srv  usr
aa1     app1  data  file19.java  file21.java  file2.java   file5.java  home                lib64  ok   root      sbin   sys  var
aa2     bin   dev   file1.java   file22.java  file3.java   file6.java  inotify-tools-3.13  media  opt  rsync.sh  share  tmp
[root@nfs /]# vim rsync.sh
[root@nfs /]# cat rsync.sh
/usr/local/bin/inotifywait -mrq -e create,delete,modify,move,attrib /share |while read events
do
rsync -a --delete /share/ 192.168.235.200:/backup
echo"$(date '+%F %T')出現事件$events">>/var/log/rsync.log 2>&1
done
[root@nfs /]# vim rsync.sh
[root@nfs /]# car rsync.sh
bash: car: 未找到命令...
相似命令是: 'sar'
[root@nfs /]# cat rsync.sh
/usr/local/bin/inotifywait -mrq -e create,delete,modify,move,attrib /share |while read events
do
rsync -a --delete /share/ 192.168.235.200:/backup/
echo"$(date '+%F %T')出現事件$events">>/var/log/rsync.log 2>&1
done
[root@nfs /]# chmod +X rsync.sh
[root@nfs /]# 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:e9:ad:9e 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:fee9:ad9e/64 scope linkvalid_lft forever preferred_lft forever
[root@nfs /]# vim /etc/exports
[root@nfs /]# cat /etc/exports
/share   192.168.235.0/24(rw,sync)
[root@nfs /]# systemctl start rpcbind
[root@nfs /]# ststemctl start nfs
bash: ststemctl: 未找到命令...
[root@nfs /]# systemctl start nfs
[root@nfs /]# ss -naltp|grep 111
LISTEN     0      128          *:111                      *:*                   users:(("rpcbind",pid=723,fd=8))
LISTEN     0      128       [::]:111                   [::]:*                   users:(("rpcbind",pid=723,fd=11))
[root@nfs /]#
root@192.168.235.100's password:
????????
root@192.168.235.100's password:
????????
root@192.168.235.100's password:
????????
root@192.168.235.100's password:
????????
root@192.168.235.100's password:
????????
root@192.168.235.100's password:Remote side sent disconnect messagetype 2 (protocol error):"Too many authentication failures"──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────Session stopped- Press <return> to exit tab- Press R to restart session- Press S to save terminal output to file
root@192.168.235.100's password:
????????
root@192.168.235.100's password:
????????
root@192.168.235.100's password:
????????
root@192.168.235.100's password:
Remote side unexpectedly closed network connection──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────Session stopped- Press <return> to exit tab- Press R to restart session- Press S to save terminal output to file
root@192.168.235.100's password:
????????
root@192.168.235.100's password:
????????
root@192.168.235.100's password:
Remote side unexpectedly closed network connection──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────Session stopped- Press <return> to exit tab- Press R to restart session- Press S to save terminal output to file
root@192.168.235.100's password:┌────────────────────────────────────────────────────────────────────┐│                        ? MobaXterm 20.0 ?                          ││            (SSH client, X-server and networking tools)             ││                                                                    ││ ? SSH session to root@192.168.235.100                              ││   ? SSH compression : ?                                            ││   ? SSH-browser     : ?                                            ││   ? X11-forwarding  : ?  (remote display is forwarded through SSH) ││   ? DISPLAY         : ?  (automatically set on remote server)      ││                                                                    ││ ? For more info, ctrl+click on help or visit our website           │└────────────────────────────────────────────────────────────────────┘Last failed login: Wed Jun 18 20:53:29 CST 2025 from 192.168.235.20 on ssh:notty
There were 6 failed login attempts since the last successful login.
Last login: Wed Jun 18 20:48:39 2025
/usr/bin/xauth:  file /root/.Xauthority does not exist
[root@nfs ~]#
[code@nfs ~]$ sudo su
[sudo] code 的密碼:
code 不在 sudoers 文件中。此事將被報告。
[code@nfs ~]$ date
2025年 06月 18日 星期三 20:48:03 CST
[code@nfs ~]$ su -caozx26420
密碼:
su: 鑒定故障
[code@nfs ~]$ su - caozx26420
密碼:
上一次登錄:三 618 20:31:20 CST 2025pts/0 上
[caozx26420@nfs ~]$ sudd su
bash: sudd: 未找到命令...
[caozx26420@nfs ~]$ sudo su
[sudo] caozx26420 的密碼:
[root@nfs caozx26420]# 

.200

caozx26@192.168.235.200's password:┌────────────────────────────────────────────────────────────────────┐│                        ? MobaXterm 20.0 ?                          ││            (SSH client, X-server and networking tools)             ││                                                                    ││ ? SSH session to caozx26@192.168.235.200                           ││   ? SSH compression : ?                                            ││   ? SSH-browser     : ?                                            ││   ? X11-forwarding  : ?  (remote display is forwarded through SSH) ││   ? DISPLAY         : ?  (automatically set on remote server)      ││                                                                    ││ ? For more info, ctrl+click on help or visit our website           │└────────────────────────────────────────────────────────────────────┘Last login: Sun Jun 15 15:10:02 2025 from 192.168.235.1
[caozx26@backup ~]$ hostname
backup.cn
[caozx26@backup ~]$ 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
[caozx26@backup ~]$ sudo su
[sudo] caozx26 的密碼:
[root@backup caozx26]# ls
1828.txt  1.java  2.java  3.java  5.java  app1                inotify-tools-3.13.tar.gz  模板  圖片  下載  桌面
1837.txt  2041    35.txt  4.java  app     inotify-tools-3.13  公共                       視頻  文檔  音樂
[root@backup caozx26]# cd /
[root@backup /]# ls
bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
[root@backup /]# cd /
[root@backup /]# ls
bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
[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:d2:84:d0 brd ff:ff:ff:ff:ff:ffinet 192.168.235.200/24 brd 192.168.235.255 scope global noprefixroute ens33valid_lft forever preferred_lft foreverinet6 fe80::20c:29ff:fed2:84d0/64 scope linkvalid_lft forever preferred_lft forever
3: ens34: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000link/ether 00:0c:29:d2:84:da brd ff:ff:ff:ff:ff:ffinet 11.1.1.10/24 brd 11.1.1.255 scope global noprefixroute ens34valid_lft forever preferred_lft foreverinet6 fe80::20c:29ff:fed2:84da/64 scope linkvalid_lft forever preferred_lft forever
4: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000link/ether 52:54:00:2b:f9:1b 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
5: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000link/ether 52:54:00:2b:f9:1b brd ff:ff:ff:ff:ff:ff
[root@backup /]#

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/909769.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/909769.shtml
英文地址,請注明出處:http://en.pswp.cn/news/909769.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

氧化鐿:稀土科技的“夜視高手”

氧化鐿&#xff08;Yb?O?&#xff09;是一種重要的稀土氧化物&#xff0c;這種略帶黃色的粉末&#xff0c;既不像黃金那樣耀眼&#xff0c;也不像稀土家族里的“明星”如釹、鋱那樣廣為人知&#xff0c;卻在背后默默支撐著許多高科技產業&#xff0c;特別是在紅外技術領域&am…

class對象【C#】2025復習

對象 西方思想是&#xff1a;復雜的事讓秘書去做就行。老板只需簡單的下達命令。 代碼格式如下 秘書類型 秘書A new 秘書類型(); . 秘書A.開始工作(); // 調用實例對象的方法。 特別注意的是&#xff0c;程序只會用到 秘書A&#xff0c;秘書B&…

Qt程序啟動動畫

一、Qt有3種方式實現程序啟動動畫&#xff08;介紹&#xff09; 1、QSplashScreen 靜態圖片(png、jpg等格式) 2、QMovie 動態圖片(gif格式) 3、QAxWidget 視頻(swf格式) 1.QSplashScreen 靜態圖片(png、jpg等格式) //創建啟動動畫類實例 QSplashScreen splash(QPixmap(&qu…

貪心算法經典問題

目錄 貪心思想 一、Dijkstra最短路問題 問題描述&#xff1a; 貪心策略&#xff1a; 二、Prim 和 Kruskal 最小生成樹問題 Prim 算法&#xff1a; Kruskal 算法&#xff1a; 三、Huffman樹問題 問題描述&#xff1a; 貪心策略&#xff1a; 四、背包問題 問題描述&a…

零知開源——STM32F4實現ILI9486顯示屏UI界面系列教程(一):電子書閱讀器功能

本教程將詳細介紹如何在零知增強板上使用3.5寸ILI9486顯示屏實現電子書閱讀器功能。我們將使用LVGL庫構建用戶界面&#xff0c;并實現翻頁、進度顯示等核心功能。 目錄 一、硬件連接 二、軟件UI組件實現 三、零知IDE配置 四、演示效果 五、常見問題解決 六、總結與擴展 一…

支持selenium的chrome driver更新到137.0.7151.119

最近chrome釋放新版本&#xff1a;137.0.7151.119 如果運行selenium自動化測試出現以下問題&#xff0c;是需要升級chromedriver才可以解決的。 selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only s…

架構下的最終瓶頸:數據庫如何破局?

在分布式系統和云原生架構逐漸成熟的當下&#xff0c;我們已能夠靈活擴展計算資源、水平擴展服務節點、拆分業務模塊等。然而&#xff0c;在經歷過多輪架構優化之后&#xff0c;數據庫常常成為系統的“最后瓶頸”。尤其當數據量、并發量、實時性要求劇增時&#xff0c;數據庫即…

湖北理元理律師事務所小微企業債務重組方案:司法與經營的共生邏輯

小微企業債務問題常陷入“救企業還是保老板”的困局。湖北理元理律師事務所為某汽車零部件供應商設計的“經營性債務重組”方案&#xff0c;提供了創新解題思路。 核心矛盾拆解 該企業面臨三重困境&#xff1a; 矛盾類型 具體表現 法律風險等級 擔保鏈危機 老板個人擔保牽…

FastAdmin退出登錄不提示的修改方法

修改退出登錄后的提示行為 在FastAdmin中&#xff0c;默認退出登錄后會顯示"退出成功"的提示信息并跳轉頁面。要實現不顯示提示信息直接跳轉&#xff0c;可以通過以下方式修改&#xff1a; 方法一&#xff1a;修改控制器邏輯 找到application/admin/controller/Log…

工信部發布《中國工業軟件產業發展研究報告(2025)》:PLM壟斷加劇,Ai為國產PLM軟件發展契機

在6月17日上午舉行的2025南京軟件大會開幕式上&#xff0c;工信部電子第五研究所現場發布《中國工業軟件產業發展研究報告&#xff08;2025&#xff09;》&#xff08;以下簡稱《研究報告》&#xff09;&#xff0c;并從工業軟件產業發展現狀、產業發展趨勢&#xff0c;以及我國…

Flutter JSON解析全攻略:使用json_serializable實現高效序列化

引言&#xff1a;為什么我們需要JSON序列化工具&#xff1f; 在現代移動應用開發中&#xff0c;與服務器進行數據交互是必不可少的功能。JSON&#xff08;JavaScript Object Notation&#xff09;作為一種輕量級的數據交換格式&#xff0c;因其易讀性、簡潔性和廣泛支持性&…

shelve模塊的使用

shelve模塊的使用 1. 什么是Shelve2. Shelve模塊的數據存儲與讀取3. Shelve的讀取數據4. Shelve模塊的高級操作_ Shelve的數據更新和刪除5. 刪除操作可以使用del語句&#xff1a;6. Shelve的數據查詢和處理_使用for循環來遍歷Shelve對象中的所有鍵值對&#xff1a;7. Shelve模塊…

python大學校園舊物捐贈系統

目錄 技術棧介紹具體實現截圖系統設計研究方法&#xff1a;設計步驟設計流程核心代碼部分展示研究方法詳細視頻演示試驗方案論文大綱源碼獲取/詳細視頻演示 技術棧介紹 Django-SpringBoot-php-Node.js-flask 本課題的研究方法和研究步驟基本合理&#xff0c;難度適中&#xf…

Python爬蟲實戰:研究eventlet庫相關技術

1. 引言 在當今信息爆炸的時代,網絡上的數據量呈現出指數級增長的趨勢。從海量的網絡信息中獲取有價值的數據并進行分析,對于企業決策、學術研究以及個人興趣等方面都具有重要意義。網絡爬蟲作為一種自動化獲取網頁內容的技術手段,應運而生并得到了廣泛的應用。 網絡爬蟲(…

文字識別接口-智能文本處理-文字提取技術

文字識別接口&#xff0c;顧名思義&#xff0c;就是一種將圖像文字或手寫文字轉換為可編輯文本的技術。文字識別接口&#xff0c;基于深度學習算法與自主ocr核心實現多種場景字符的高精度識別與結構化信息提取&#xff0c;現已被廣泛應用于銀行、醫療、財會、教育等多個領域。 …

Redis的持久化機制詳細解析

Redis的持久化機制詳細解析 今天我們來聊聊Redis的持久化機制。想象一下&#xff0c;你正在玩一個非常精彩的游戲&#xff0c;突然斷電了&#xff0c;如果沒有存檔功能&#xff0c;所有的進度都會丟失&#xff0c;是不是很崩潰&#xff1f; Redis作為內存數據庫&#xff0c;同…

2025年SYN-CC混合攻擊防御實戰:某金融平臺抵御800Gbps雙重風暴實錄

“你以為防住SYN Flood就能高枕無憂&#xff1f;新型SYN-CC混合鏈正在撕裂傳統防御體系&#xff01;” 一、事件現場&#xff1a;一場精準的“協議層絞殺” 2025年5月&#xff0c;某跨境支付平臺遭遇史上首次SYN-CC混合攻擊&#xff0c;峰值流量達 800Gbps&#xff0c;核心交易…

JSON 編輯器:從語法到數據處理(二)

JSON 編輯器&#xff1a;從語法編寫到結構可視化&#xff08;一&#xff09;-CSDN博客 在上一篇中&#xff0c;我們了解了 JSON 的語法和編輯器&#xff0c;解決了 “怎么寫對 JSON” 的問題。 而實際開發中&#xff0c;更關鍵的是 “怎么高效處理 JSON 數據” —— 如何從商品…

按鍵開關的結構、功能與環保安全?

工業控制的核心觸手&#xff1a;深度解析按鍵開關的結構、功能與環保安全 一、 結構基石&#xff1a;雙觸點轉換機制 按鍵開關的核心在于其精妙的觸點系統。絕大多數按鍵開關都配備有兩對獨立的觸點&#xff0c;這是實現復雜控制邏輯的基礎。每一對觸點并非隨意組合&#xff…

BigDetection:改進目標檢測器預訓練的大規模基準之論文閱讀

摘要 近年來,多個數據集和開放挑戰已被引入用于目標檢測研究。為了構建更通用且強大 的目標檢測系統,本文提出了一個新的大規模基準數據集,稱為 BigDetection。我們的目標是 整合現有數據集(LVIS、OpenImages 和 Object365)的訓練數據,并遵循精心設計的原則,構建一個更…