Ubuntu16.04下部署Oracle docker环境
Docker , Ubuntu / 2018年9月30日

1 安装 docker apt-get install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - add-apt-repository "deb [ar...

zabbix利用lld监控memcached
Zabbix , 监控 / 2018年9月26日

一、引言 很多人在工作中一般喜欢把Redis、Memcached、MongoDB等数据库按照实例的方式对外提供服务。一般都是一台高配的服务器上开启多个实例给每个业务使用。如果一台服务器有几个实例,那如果集群呢,如果要监控,你得手动添加到什么时候,而且可能会出现手敲的错误,导致诸多的不顺利,因此就用到了这个自动发现功能。 二、监控采集依据 类似吞吐量,缓存的查询次数,命中率之类的 三、主要监控指标解...

zabbix自动发现mysql端口并监控 Mysql 5.7
Zabbix / 2018年9月14日

一、需求: 因为我们是游戏业务,要用到mysql,一个服务器上面跑多个mysql实例也是很正常。如果单独手动一台台修改agent.conf,添加web监控,太费时费力。所以就想的要用zabbix 的自动发现来监控 二、配置Agent 1.编写自动发现端口脚本 [root@test ~]# cat /etc/zabbix/alertscripts/zabbix_discovery_mysql.sh ...

mysql5.7.x:this is incompatible with DISTINCT
Mysql / 2018年8月1日

DISTINCT关键字经常在MySQL中使用,在mysql5.7以前的版本中一般没有什么问题,但是在5.7以后的版本中会遇到这样的错误 Caused by: java.sql.SQLException: Expression #1 of ORDER BY clause is not in SELECT list, references column ‘game.giftbag0_.create_d...

CentOS 7 yum 安装php5.6
CentOS , PHP / 2018年7月25日

配置yum源 追加CentOS 6.5的epel及remi源。 rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm 以下是CentOS ...

Debain Ubuntu安装 VUE 环境
Ubuntu / 2018年6月25日

更新ubuntu软件源 sudo apt-get update sudo apt-get install -y python-software-properties software-properties-common sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update apt-get install nodejs n...