上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 169 下一页
摘要: 一,配置redis.conf [root@web conf]# vi redis.conf 修改两个参数 # So for instance if you have a four cores boxes, try to use 2 or 3 I/O # threads, if you have a 阅读全文
posted @ 2024-09-30 16:12 刘宏缔的架构森林 阅读(346) 评论(0) 推荐(0)
摘要: 一,代码: opcache的各项参数设置效果怎么样?是否需要调整?我们需要了解一个opcache使用情况的统计,以供调整参数时处理 看php代码: <?php // 确保已经启用了Opcache if (extension_loaded('Zend OPcache') && function_exi 阅读全文
posted @ 2024-09-30 11:43 刘宏缔的架构森林 阅读(143) 评论(0) 推荐(0)
摘要: 一,列出所有监听中的端口 #-l: 仅显示处于监听状态的套接字#-n: 以数字格式显示地址和端口。使用此选项可以避免将地址和端口转换为主机名或服务名,从而加快查询速度#-t: 仅显示TCP套接字信息#-p: 显示与每个套接字相关联的进程信息,包括进程ID和进程名称 ss -lntp 二,查看所有状态 阅读全文
posted @ 2024-09-29 19:12 刘宏缔的架构森林 阅读(166) 评论(0) 推荐(0)
摘要: 一,客户端浏览器报错: nginx 503 Service Temporarily Unavailable 问题的原因: http下: limit_req_zone $binary_remote_addr zone=peripreq:20m rate=10r/s; 此server下: limit_r 阅读全文
posted @ 2024-09-29 16:40 刘宏缔的架构森林 阅读(552) 评论(0) 推荐(0)
摘要: 一,问题现象: firewalld未重新加载规则前,可以看到fail2ban添加的防火墙规则: [root@web ~]# firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfa 阅读全文
posted @ 2024-09-29 11:08 刘宏缔的架构森林 阅读(146) 评论(0) 推荐(0)
摘要: 一,使用ip命令: 命令: ip -s link -s[tatistics] : 统计 [root@web mysql]# ip -s link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFA 阅读全文
posted @ 2024-09-28 17:44 刘宏缔的架构森林 阅读(410) 评论(0) 推荐(0)
摘要: 一,删除所有别名 #!/bin/bash # Elasticsearch 地址 ES_HOST="http://localhost:9200" content=$(curl -s -X GET "$ES_HOST/_alias/*") # echo $content # 获取所有alias inde 阅读全文
posted @ 2024-09-27 14:32 刘宏缔的架构森林 阅读(163) 评论(0) 推荐(0)
摘要: 一,报错信息: Next Illuminate\\Contracts\\Container\\BindingResolutionException: Target class [view] does not exist. in /web/api/vendor/laravel/framework/sr 阅读全文
posted @ 2024-09-26 15:53 刘宏缔的架构森林 阅读(341) 评论(0) 推荐(0)
摘要: 一,问题现象: 1,一台新服务器上安装了snoopy之后,发现一个问题,它只能记录root的操作命令,其他用户的操作命令完全记录不下来 2,查看配置: [root@backup ~]# snoopyctl conf ; Options from config file (or defaults): 阅读全文
posted @ 2024-09-26 14:04 刘宏缔的架构森林 阅读(34) 评论(0) 推荐(0)
摘要: 一,关于limit_req和limit_conn的区别 what is the difference between connection and request? connection是连接,即常说的tcp连接,通过三次握手而建立的一个完整状态机。建立一个连接,必须得要三次握手。断开连接时要有四次 阅读全文
posted @ 2024-09-26 11:32 刘宏缔的架构森林 阅读(31) 评论(0) 推荐(0)
上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 169 下一页