上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 65 下一页
摘要: 系统设置 ~# cat /etc/security/limits.conf root soft core unlimited root hard core unlimited root soft nproc 1000000 root hard nproc 1000000 root soft nofi 阅读全文
posted @ 2022-04-19 17:58 小吉猫 阅读(2011) 评论(0) 推荐(0)
摘要: map $http_x_forwarded_for $accessip { default false; 10.10.10.10 true; #定义白名单 } server { listen 80; server_name 127.0.0.1; root html; access_log logs/ 阅读全文
posted @ 2022-04-18 10:52 小吉猫 阅读(717) 评论(0) 推荐(0)
摘要: 官方文档 https://www.percona.com/doc/percona-xtrabackup/2.4/index.html Percona XtraBackup介绍 Percona XtraBackup是基于MySQL的服务器的开源热备份实用程序,在备份期间不会锁定您的数据库。 它可以备份 阅读全文
posted @ 2022-03-21 14:25 小吉猫 阅读(928) 评论(0) 推荐(0)
摘要: 背景 接口性能压测 架构 nginx+php_fpm+go 请求方法 POST nginx返回信息 状态码499 nginx 499定义 cat src/http/ngx_http_special_response.c ngx_string(ngx_http_error_494_page), /* 阅读全文
posted @ 2022-03-18 10:30 小吉猫 阅读(841) 评论(0) 推荐(0)
摘要: zabbix agent需要开启远程命令执行 sed -i 's@#EnableRemoteCommands=0@EnableRemoteCommands=1@' /etc/zabbix/zabbix_agentd.conf sed -i 's@#UnsafeUserParameters=0@Uns 阅读全文
posted @ 2022-03-14 16:37 小吉猫 阅读(144) 评论(0) 推荐(0)
摘要: 安装tideways拓展 git clone https://github.com/tideways/php-xhprof-extension.git cd php-xhprof-extension/ /usr/local/php-7.4.24/bin/phpize ./configure --wi 阅读全文
posted @ 2022-03-11 01:35 小吉猫 阅读(121) 评论(0) 推荐(0)
摘要: 安装xhprof /usr/local/php/bin/pecl install xhprof 配置php.ini文件 echo "extension=xhprof.so" >> /usr/local/php/conf/php.ini echo "xhprof.output_dir=/tmp" >> 阅读全文
posted @ 2022-03-10 20:10 小吉猫 阅读(196) 评论(0) 推荐(0)
摘要: 创建cache目录 mkdir -pv /var/cache/nginx/fastcgi_cache 修改/etc/fstab文件 tmpfs /var/cache/nginx/fastcgi_cache tmpfs defaults,size=200m,context=system_u:objec 阅读全文
posted @ 2022-03-06 01:31 小吉猫 阅读(118) 评论(0) 推荐(0)
摘要: 安装goaccess $ wget -O - https://deb.goaccess.io/gnugpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/goaccess.gpg >/dev/null $ echo "deb [signed-b 阅读全文
posted @ 2022-03-05 19:44 小吉猫 阅读(906) 评论(0) 推荐(0)
摘要: 1.先进入主库,进行锁表,防止数据写入 mysql> flush tables with read lock; 2.进行数据备份 /usr/local/mysql/bin/mysqldump -uroot -p --quick --routines --master-data=2 --single- 阅读全文
posted @ 2022-03-03 17:52 小吉猫 阅读(238) 评论(0) 推荐(0)
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 65 下一页