redis cluster 搭建 redis cluster 是 redis 官方一个高可用解决方案,cluster 中 redis 共有 2^14 (16384)个slot 槽。创建 cluster 后会平均分配到每个 redis 上。cluster 可以对标 分片机制。这里介绍为本机启动6个redis集群服务 redis、cluster 8年前 4667 浏览
MySQL运行状态show status详解 要查看MySQL运行状态,要优化MySQL运行效率都少不了要运行show status查看各种状态,下面是参考官方文档及网上资料整理出来的中文详细解释,不管你是初学mysql还是你是mysql专业级的dba,这都是值得看的.状态名作用域详细解释Aborted_client mysql、status 9年前 4664 浏览
扩展系统盘 - 增加系统磁盘大小 系统盘太小时需要扩展系统磁盘,我这里以Azure为例,系统盘默认8G,需要扩展增加磁盘容量。分为两个步骤:1. 停止实例,调整磁盘大小(实例运行时无法调整,Azure 停止实例注意保存数据)2. 重新启动实例,扩展磁盘分区大小第一步 xfs、扩展系统磁盘、调整磁盘 4年前 4662 浏览
Redis config 漏洞修复 使用redis默认使用root账号启动,如果主机没有放在内网,限制ip访问会导致,安全漏洞:目前主要是redis config set问题,可以使用如下三种方案解决,优先级从低到高。1、临时解决方案:去掉config命令,修改redis.conf,增加如下 redis、php、config 9年前 4656 浏览
集群监控:Elasticsearch 5.4 Head安装 安装文档: https://github.com/mobz/elasticsearch-headhead 插件,需要 nodejs 启动,需要先装 node elk、elasticsearch-head 8年前 4653 浏览
What are the differences between Apache Kafka and RabbitMQ? (Updated May 2017 - it’s been 4.5 years!)Kafka is a general purpose message broker, like RabbItMQ, with similar distributed deployment goals kafka、rabbitmq 8年前 4649 浏览
sublime注释--DocBlockr 想让sublime支持这样的注释,phper的福利: /** * [cc_get_desc description] * @param [type] $module * @param [type] sublime、注释、DocBlockr 11年前 4632 浏览
mysql 忘记密码 修改mysql 配置文件vim /etc/my.cnf # 追加 skip-grant-tables [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock skip-nam mysql 9年前 4619 浏览
Glogrotate: glog日志切割与清理工具 项目地址github.com/cleey/glogrotate简介Glogrotate (glog rotate) 是 Go 语言编写的 glog、glog clean、golang 5年前 4588 浏览
Squid安装与使用--设置代理服务器 Squid是一个缓存internet数据的一个软件,它接收用户的下载申请,并自动处理所下载的数据。也就是说,当一个用户象要下载一个主页时,它向Squid发出一个申请,要Squid替它下载,然后Squid连接所申请网站并请求该主页,接着把该主页传给用户同时保留一个备份,当别的用户申请同样的页面时,Sq squid配置、squid安装、squid下载 11年前 4536 浏览
wordpress修改侧边栏sidebar wordpress的侧边栏钩子; 将下面的代码追加到你的function.php后面: 可以完成侧边栏的修改: function testname{ register_widget( 'Twenty_El php、wordpress、sidebar 11年前 4519 浏览
CentOS7.9 使用 Yum 安装 MySQL8.0 1、yum仓库下载MySQL: yum localinstall https://repo.mysql.com/ centos7、mysql8、yum 3年前 4502 浏览
elasticsearch 扩展安装 及 head 1、elasticsearch-head是一个elasticsearch的集群管理工具:./elasticsearch-1.7.1/bin/plugin -install mobz/elasticsearch-headcd elastic elasticsearch、elasticsearch-head 8年前 4499 浏览
centos设置代理 YUM代理设置 编辑/etc/yum.conf,在最后加入 # Proxy proxy=http://username:password@proxy_ip:port/ 也可以使用prox linux、centos、代理 11年前 4495 浏览