文档涉及的Linux内核参数说明如下,可参见以下参数说明进行相关操作。参数描述net.core.rmem_default默认的TCP数据接收窗口大小(字节)。net.core.rmem_max最大的TCP数据接收窗口(字节)。net.core.wmem_default默认的TCP数据发送窗口大小(字节)。net.core.wmem_max最大的TCP数据发送窗口(字节)。net.core.netdev_max_backlog当内核处理速度比网卡接收速度慢时,这部分多出来的包就...
1.确保rsync服务端配置完成,客户端nfs可以推送rsync -avz /data/ rsync_backup@172.16.1.41::backup --password-file=/etc/rsync.password2.检查系统是否支持inotifyuname -r3.是否存在下面三个文件[root@nfs01 ~]$ll /proc/sys/fs/inotify/
total 0...
1.放在/etc/rc.localchmod +x /etc/rc.localecho "/bin/mount -t nfs 172.16.1.31:/data /mnt" >> /etc/rc.localtail -2 /etc/rc.local2.放在/etc/fstab(坑) 1.加载/etc/fstab 2.加载防火墙 3.加载网卡添加以下内容172.16.1.31:/data &n...
1.服务端安装yum -y install nfs-utils rpcbindrpm -qa nfs-utils rpcbind启动RPCsystemctl start rpcbindsystemctl enable rpcbind查看注册端口rpcinfo -p 127.0.0.1启动nfssystemctl start nfssystemctl enable nfs实践:[root@nfs01 ~]$vi /etc/exports/data 172.16.1.0/24(r...
错误1:
[root@nfs01 ~]$rsync -avz /data rsync_backup@172.16.1.41::backup --password-file=/etc/rsync.password
@ERROR: invalid uid rsync
rsync error: error starting client-serv...
服务端配置一、添加配置文件备份cp /etc/rsyncd.conf{,.ori}添加内容cat > /etc/rsyncd.conf<<EOF
#rsync config
#created by shnne
#site:https://www.shnne.com
uid = rsync
gid = rsync
use chroot&nb...
cat >>/etc/sysctl.conf<<EOFnet.ipv4.tcp_fin_timeout = 2net.ipv4.tcp_tw_reuse = 1net.ipv4.tcp_tw_recycle = 1net.ipv4.tcp_syncookies= 1net.ipv4.tcp_keepalive_time = 600net.ipv4.ip_local_port_range = 4000 65000net.ipv4.tcp_max_syn_...
路由永久生效1.默认文件不存在(C7)vi /etc/sysconfig/network-scripts/route-eth0172.16.1.0/24 via 192.168.1.1重启网络服务或者系统生效2.默认文件不存在(C6)vi /etc/sysconfig/static-routesany net 172.16.1.0/24 gw 192.168.1.1重启网络服务或者系统生效3.放在rc.local文件vi /etc/rc.localroute add -net...
...
...