tar -xzvf check_mysql_health-2.2.2.tar.gz
cd check_mysql_health-2.2.2
# configure
./configure --prefix=/usr/local/nagios/libexec --with-nagios-user=nagios --with-nagios-group=nagios --with-perl=/usr/bin/perl
# make
sudo make
# install
sudo make install
复制代码
1,封装:将对象的属性集成在 class person:def __init__(self,name,idnum):self.namenameself.idnumidnum 2,继承:子类自动拥有父类的的封装,除了非私有之外 class person: def __init__(self,name,idnum): self.namena…
1. 比较的是值 a2 b2 print(a b) # True lis1 [1,2,3] lis2 [1,2,3] print(lis1 lis2) # True 2.is 是比较的是内存地址 a name print(id(a)) # 内存地址 字符串 a name b name print(a is b) # True 数字 n 10 n110 print(n is n1) # True 小数据池 数字 -5~256 字…
--创建测试表 SQL> create table t as select object_id,object_name from dba_objects;表已创建。SQL> select min(object_id),max(object_id) from t;MIN(OBJECT_ID) MAX(OBJECT_ID)-------------- --------------2 76083SQL> create table t_part(object…