摘要:
安装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 阅读全文
摘要:
安装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" >> 阅读全文
摘要:
创建cache目录 mkdir -pv /var/cache/nginx/fastcgi_cache 修改/etc/fstab文件 tmpfs /var/cache/nginx/fastcgi_cache tmpfs defaults,size=200m,context=system_u:objec 阅读全文
摘要:
安装goaccess $ wget -O - https://deb.goaccess.io/gnugpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/goaccess.gpg >/dev/null $ echo "deb [signed-b 阅读全文
摘要:
1.先进入主库,进行锁表,防止数据写入 mysql> flush tables with read lock; 2.进行数据备份 /usr/local/mysql/bin/mysqldump -uroot -p --quick --routines --master-data=2 --single- 阅读全文
摘要:
MySQL server has gone away https://dev.mysql.com/doc/refman/5.7/en/gone-away.html Lost connection to server during query 该MySQL server has gone away错误 阅读全文
摘要:
max_connections 命令行格式 --max-connections=# 系统变量 max_connections 范围 global 动态的 是的 类型 整数 默认值 151 最小值 1 最大值 100000 允许的最大同时客户端连接数。最大有效值是open_files_limit-81 阅读全文
摘要:
安装依赖 apt -y install gcc make libssl-dev zlib1g-dev libgd-dev libgeoip-dev libpcre2-dev libpcre3-dev 创建用户 groupadd -g 113 -r nginx && useradd -M -N -g 阅读全文
摘要:
安装依赖 apt-get -y install libpcre3-dev libssl-dev perl libperl-dev make build-essential curl 下载安装包 wget https://openresty.org/download/openresty-1.19.9. 阅读全文
摘要:
创建监控用户 CREATE USER 'zbx_monitor'@'%' IDENTIFIED BY '123456'; GRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW ON *.* TO 'zbx_monitor'@'%'; fl 阅读全文