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...
...
...
一、问题现象监控发现Nginx服务日志中出现较多的499状态码,499状态码在Nginx中代表的是客户端在服务端返回之前主动断开了连接,由于客户端设置的超时时间为2s,故到达2s未收到服务端响应客户端主动断开了连接造成了499响应码。二、可能的故障点服务器的问题,例如CPU使用率高,队列堵塞,导致无法及时处理请求,从而导致客户端超时断开连接网络出现问题,丢包或者出现网络堵塞专线线路存在问题后端服务存在性能瓶颈,当流量变大时,响应时间提高,导致客户端超时断开连接三、排查服务器问...
方法1:rsync -av rsync://mirrors.ustc.edu.cn/centos/7/os/x86_64/Packages/ /var/ftp/centos7/#更新epelrsync -av --exclude=debug rsync://mirrors.ustc.edu.cn/epel/7/x86_64/Packages/ /var/ftp/centos7/#更新索引createrepo --update /var/ftp/centos7/方法2:y...