一、选择一种桌面环境并安装1. XFCE 桌面$ yum install -y epel-release
$ yum groupinstall -y "Xfce"
$ ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target...
CONFIG GET dir
CONFIG GET dbfilename
config set dir /opt/redis
CONFIG set dbfilename dump.rdb
在redis.conf最后面追加
# 禁用 FLUSHDB 命令
rename-command FLUSHDB "...
一、关闭firewalld,安装iptables过程:
停止并禁用firewalld:
systemctl stop firewalld
systemctl disable firewalld
安装iptables-services:
yum -y install iptables-services
设置开机启动:
systemctl enable iptables...
通过iptables实现IP端口数据包转发服务配置VPS会经常使用到端口转发,以解决不同网络之间互联互通问题。例如我们的laxA-QN机房对联通更好,laxB-C3机房对电信更好。这时如果有一台VPS用作中转,这样就能达到稳定且快速的效果。这里,我们介绍一个使用iptables来进行中转的教程。使用iptables的好处就是不用额外装东西,且同时支持tcp及udp。关于CentOS 7系统:需要删除firewalld装回iptables.# 安装命令(已默认安装):syste...
CentOS系统运行时/var/log/cron频繁输出FAILED to authorize user with PAM (Module is unknown)错误
重启下定时任务 /etc/init.d/crond restart
重启下系统日志服务/etc/init.d/rsyslog restart
再次查看日志tail -f /...
参数说明net.core.rmem_default默认的socket数据接收窗口大小(字节)。net.core.rmem_max最大的socket数据接收窗口(字节)。net.core.wmem_default默认的socket数据发送窗口大小(字节)。net.core.wmem_max最大的socket数据发送窗口(字节)。net.core.netdev_max_backlog当内核处理速度比网卡接收速度慢时,这部分多出来的包就会被保存在网卡的接收队列上。该参数说明了这个队...
项目地址https://github.com/jlyo/tcping安装git clone https://github.com/jlyo/tcping.gitcd tcpingmake install使用tcping -p 端口 服务器地址tcping -p 端口 服务器地址 -c ping次数tcping -p 端口 服务器地址 -i 间隔(秒)加时间脚本cat tcping.sh
#!/bin/bash
while true;&n...
1、查看当前#最大值
[shnne@localhost ~]$ cat /proc/sys/net/core/rmem_max
212992
[shnne@localhost ~]$ cat /proc/sys/net/core/wmem_max
212992
#初始值
[shnne@localhost ~]$ cat /proc/sys/net/core/rmem_de...
nginx的error日志出现2024/11/01 06:28:03 [error] 17113#0: *823738 upstream sent too big header while reading response header from upstream, client:解决办法,在nginx.conf里对应...
mysql replication 中slave机器上有两个关键的进程,死一个都不行,
一个是slave_sql_running,
一个是Slave_IO_Running,
一个负责与主机的io通信,
一个负责自己的slave mysql进程。此次出现的问题,是因为服务器重启导致,先到主库mysql> show master status;
+------------------+----------...
2024-10-21 /
765 次浏览 /
Win技术