问轩博客

展开菜单

Linux内核参数说明

Linux内核参数说明
文档涉及的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当内核处理速度比网卡接收速度慢时,这部分多出来的包就...

Inotify监测部署

Inotify监测部署
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...

NFS客户端开机自启动

NFS客户端开机自启动
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...

Linux之NFS配置

Linux之NFS配置
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...

Rsync 常见错误

Rsync 常见错误
错误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...

Rsync 守护进程模式配置 CentOS 7

Rsync 守护进程模式配置 CentOS 7
服务端配置一、添加配置文件备份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...

CentOS 7优化系统内核

CentOS 7优化系统内核
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_...

Centos7配置永久路由方法

Centos7配置永久路由方法
路由永久生效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...