1)配置脚本获取mysql的各种参数

注意:脚本中定义host

#vim /etc/zabbix/zabbix_agentd.d/mysql_status.sh
#!/bin/bash
MySQlBin=/usr/bin/mysql
MySQLAdminBin=mysqladmin
Host=localhost
if [[ $# == ]];then
case $ in
Ping)
result=$($MySQLAdminBin -h$Host ping|grep alive|wc -l)
echo $result
;;
Threads)
result=$($MySQLAdminBin -h$Host status|cut -f3 -d":"|cut -f1 -d"Q")
echo $result
;;
Questions)
result=$($MySQLAdminBin -h$Host status|cut -f4 -d":"|cut -f1 -d"S")
echo $result
;;
Slowqueries)
result=$($MySQLAdminBin -h$Host status|cut -f5 -d":"|cut -f1 -d"O")
echo $result
;;
Qps)
result=$($MySQLAdminBin -h$Host status|cut -f9 -d":")
echo $result
;;
Slave_IO_State)
result=$(if [ "$($MySQlBin -h$Host -e "show slave status\G"| grep Slave_IO_Running|awk '{print $2}')" == "Yes" ];then echo ; else echo ;fi)
echo $result
;;
Slave_SQL_State)
result=$(if [ "$($MySQlBin -h$Host -e "show slave status\G"| grep Slave_SQL_Running|awk '{print $2}')" == "Yes" ];then echo ; else echo ;fi)
echo $result
;;
Key_buffer_size)
result=$($MySQlBin -h$Host -e "show variables like 'key_buffer_size';"| grep -v Value |awk '{print $2/1024^2}')
echo $result
;;
Key_reads)
result=$($MySQlBin -h$Host -e "show status like 'key_reads';"| grep -v Value |awk '{print $2}')
echo $result
;;
Key_read_requests)
result=$($MySQlBin -h$Host -e "show status like 'key_read_requests';"| grep -v Value |awk '{print $2}')
echo $result
;;
Key_cache_miss_rate)
result=$(echo $($MySQlBin -h$Host -e "show status like 'key_reads';"| grep -v Value |awk '{print $2}') $($MySQlBin -h$Host -e "show status like 'key_read_requests';"| grep -v Value |awk '{print $2}')| awk '{if($2==0)printf("%1.4f\n",0);else printf("%1.4f\n",$1/$2*100);}')
echo $result
;;
Key_blocks_used)
result=$($MySQlBin -h$Host -e "show status like 'key_blocks_used';"| grep -v Value |awk '{print $2}')
echo $result
;;
Key_blocks_unused)
result=$($MySQlBin -h$Host -e "show status like 'key_blocks_unused';"| grep -v Value |awk '{print $2}')
echo $result
;;
Key_blocks_used_rate)
result=$(echo $($MySQlBin -h$Host -e "show status like 'key_blocks_used';"| grep -v Value |awk '{print $2}') $($MySQlBin -h$Host -e "show status like 'key_blocks_unused';"| grep -v Value |awk '{print $2}')| awk '{if(($1==0) && ($2==0))printf("%1.4f\n",0);else printf("%1.4f\n",$1/($1+$2)*100);}')
echo $result
;;
Innodb_buffer_pool_size)
result=$($MySQlBin -h$Host -e "show variables like 'innodb_buffer_pool_size';"| grep -v Value |awk '{print $2/1024^2}')
echo $result
;;
Innodb_log_file_size)
result=$($MySQlBin -h$Host -e "show variables like 'innodb_log_file_size';"| grep -v Value |awk '{print $2/1024^2}')
echo $result
;;
Innodb_log_buffer_size)
result=$($MySQlBin -h$Host -e "show variables like 'innodb_log_buffer_size';"| grep -v Value |awk '{print $2/1024^2}')
echo $result
;;
Table_open_cache)
result=$($MySQlBin -h$Host -e "show variables like 'table_open_cache';"| grep -v Value |awk '{print $2}')
echo $result
;;
Open_tables)
result=$($MySQlBin -h$Host -e "show status like 'open_tables';"| grep -v Value |awk '{print $2}')
echo $result
;;
Opened_tables)
result=$($MySQlBin -h$Host -e "show status like 'opened_tables';"| grep -v Value |awk '{print $2}')
echo $result
;;
Open_tables_rate)
result=$(echo $($MySQlBin -h$Host -e "show status like 'open_tables';"| grep -v Value |awk '{print $2}') $($MySQlBin -h$Host -e "show status like 'opened_tables';"| grep -v Value |awk '{print $2}')| awk '{if(($1==0) && ($2==0))printf("%1.4f\n",0);else printf("%1.4f\n",$1/($1+$2)*100);}')
echo $result
;;
Table_open_cache_used_rate)
result=$(echo $($MySQlBin -h$Host -e "show status like 'open_tables';"| grep -v Value |awk '{print $2}') $($MySQlBin -h$Host -e "show variables like 'table_open_cache';"| grep -v Value |awk '{print $2}')| awk '{if(($1==0) && ($2==0))printf("%1.4f\n",0);else printf("%1.4f\n",$1/($1+$2)*100);}')
echo $result
;;
Thread_cache_size)
result=$($MySQlBin -h$Host -e "show variables like 'thread_cache_size';"| grep -v Value |awk '{print $2}')
echo $result
;;
Threads_cached)
result=$($MySQlBin -h$Host -e "show status like 'Threads_cached';"| grep -v Value |awk '{print $2}')
echo $result
;;
Threads_connected)
result=$($MySQlBin -h$Host -e "show status like 'Threads_connected';"| grep -v Value |awk '{print $2}')
echo $result
;;
Threads_created)
result=$($MySQlBin -h$Host -e "show status like 'Threads_created';"| grep -v Value |awk '{print $2}')
echo $result
;;
Threads_running)
result=$($MySQlBin -h$Host -e "show status like 'Threads_running';"| grep -v Value |awk '{print $2}')
echo $result
;;
Qcache_free_blocks)
result=$($MySQlBin -h$Host -e "show status like 'Qcache_free_blocks';"| grep -v Value |awk '{print $2}')
echo $result
;;
Qcache_free_memory)
result=$($MySQlBin -h$Host -e "show status like 'Qcache_free_memory';"| grep -v Value |awk '{print $2}')
echo $result
;;
Qcache_hits)
result=$($MySQlBin -h$Host -e "show status like 'Qcache_hits';"| grep -v Value |awk '{print $2}')
echo $result
;;
Qcache_inserts)
result=$($MySQlBin -h$Host -e "show status like 'Qcache_inserts';"| grep -v Value |awk '{print $2}')
echo $result
;;
Qcache_lowmem_prunes)
result=$($MySQlBin -h$Host -e "show status like 'Qcache_lowmem_prunes';"| grep -v Value |awk '{print $2}')
echo $result
;;
Qcache_not_cached)
result=$($MySQlBin -h$Host -e "show status like 'Qcache_not_cached';"| grep -v Value |awk '{print $2}')
echo $result
;;
Qcache_queries_in_cache)
result=$($MySQlBin -h$Host -e "show status like 'Qcache_queries_in_cache';"| grep -v Value |awk '{print $2}')
echo $result
;;
Qcache_total_blocks)
result=$($MySQlBin -h$Host -e "show status like 'Qcache_total_blocks';"| grep -v Value |awk '{print $2}')
echo $result
;;
Qcache_fragment_rate)
result=$(echo $($MySQlBin -h$Host -e "show status like 'Qcache_free_blocks';"| grep -v Value |awk '{print $2}') $($MySQlBin -h$Host -e "show status like 'Qcache_total_blocks';"| grep -v Value |awk '{print $2}')| awk '{if($2==0)printf("%1.4f\n",0);else printf("%1.4f\n",$1/$2*100);}')
echo $result
;;
Qcache_used_rate)
result=$(echo $($MySQlBin -h$Host -e "show variables like 'query_cache_size';"| grep -v Value |awk '{print $2}') $($MySQlBin -h$Host -e "show status like 'Qcache_free_memory';"| grep -v Value |awk '{print $2}')| awk '{if($1==0)printf("%1.4f\n",0);else printf("%1.4f\n",($1-$2)/$1*100);}')
echo $result
;;
Qcache_hits_rate)
result=$(echo $($MySQlBin -h$Host -e "show status like 'Qcache_hits';"| grep -v Value |awk '{print $2}') $($MySQlBin -h$Host -e "show status like 'Qcache_inserts';"| grep -v Value |awk '{print $2}')| awk '{if($1==0)printf("%1.4f\n",0);else printf("%1.4f\n",($1-$2)/$1*100);}')
echo $result
;;
Query_cache_limit)
result=$($MySQlBin -h$Host -e "show variables like 'query_cache_limit';"| grep -v Value |awk '{print $2}')
echo $result
;;
Query_cache_min_res_unit)
result=$($MySQlBin -h$Host -e "show variables like 'query_cache_min_res_unit';"| grep -v Value |awk '{print $2}')
echo $result
;;
Query_cache_size)
result=$($MySQlBin -h$Host -e "show variables like 'query_cache_size';"| grep -v Value |awk '{print $2}')
echo $result
;;
Sort_merge_passes)
result=$($MySQlBin -h$Host -e "show status like 'Sort_merge_passes';"| grep -v Value |awk '{print $2}')
echo $result
;;
Sort_range)
result=$($MySQlBin -h$Host -e "show status like 'Sort_range';"| grep -v Value |awk '{print $2}')
echo $result
;;
Sort_rows)
result=$($MySQlBin -h$Host -e "show status like 'Sort_rows';"| grep -v Value |awk '{print $2}')
echo $result
;;
Sort_scan)
result=$($MySQlBin -h$Host -e "show status like 'Sort_scan';"| grep -v Value |awk '{print $2}')
echo $result
;;
Handler_read_first)
result=$($MySQlBin -h$Host -e "show status like 'Handler_read_first';"| grep -v Value |awk '{print $2}')
echo $result
;;
Handler_read_key)
result=$($MySQlBin -h$Host -e "show status like 'Handler_read_key';"| grep -v Value |awk '{print $2}')
echo $result
;;
Handler_read_next)
result=$($MySQlBin -h$Host -e "show status like 'Handler_read_next';"| grep -v Value |awk '{print $2}')
echo $result
;;
Handler_read_prev)
result=$($MySQlBin -h$Host -e "show status like 'Handler_read_prev';"| grep -v Value |awk '{print $2}')
echo $result
;;
Handler_read_rnd)
result=$($MySQlBin -h$Host -e "show status like 'Handler_read_rnd';"| grep -v Value |awk '{print $2}')
echo $result
;;
Handler_read_rnd_next)
result=$($MySQlBin -h$Host -e "show status like 'Handler_read_rnd_next';"| grep -v Value |awk '{print $2}')
echo $result
;;
Com_select)
result=$($MySQlBin -h$Host -e "show status like 'com_select';"| grep -v Value |awk '{print $2}')
echo $result
;;
Com_insert)
result=$($MySQlBin -h$Host -e "show status like 'com_insert';"| grep -v Value |awk '{print $2}')
echo $result
;;
Com_insert_select)
result=$($MySQlBin -h$Host -e "show status like 'com_insert_select';"| grep -v Value |awk '{print $2}')
echo $result
;;
Com_update)
result=$($MySQlBin -h$Host -e "show status like 'com_update';"| grep -v Value |awk '{print $2}')
echo $result
;;
Com_replace)
result=$($MySQlBin -h$Host -e "show status like 'com_replace';"| grep -v Value |awk '{print $2}')
echo $result
;;
Com_replace_select)
result=$($MySQlBin -h$Host -e "show status like 'com_replace_select';"| grep -v Value |awk '{print $2}')
echo $result
;;
Table_scan_rate)
result=$(echo $($MySQlBin -h$Host -e "show status like 'Handler_read_rnd_next';"| grep -v Value |awk '{print $2}') $($MySQlBin -h$Host -e "show status like 'com_select';"| grep -v Value |awk '{print $2}')| awk '{if($2==0)printf("%1.4f\n",0);else printf("%1.4f\n",$1/$2*100);}')
echo $result
;;
Open_files)
result=$($MySQlBin -h$Host -e "show status like 'open_files';"| grep -v Value |awk '{print $2}')
echo $result
;;
Open_files_limit)
result=$($MySQlBin -h$Host -e "show variables like 'open_files_limit';"| grep -v Value |awk '{print $2}')
echo $result
;;
Open_files_rate)
result=$(echo $($MySQlBin -h$Host -e "show status like 'open_files';"| grep -v Value |awk '{print $2}') $($MySQlBin -h$Host -e "show variables like 'open_files_limit';"| grep -v Value |awk '{print $2}')| awk '{if($2==0)printf("%1.4f\n",0);else printf("%1.4f\n",$1/$2*100);}')
echo $result
;;
Created_tmp_disk_tables)
result=$($MySQlBin -h$Host -e "show status like 'created_tmp_disk_tables';"| grep -v Value |awk '{print $2}')
echo $result
;;
Created_tmp_tables)
result=$($MySQlBin -h$Host -e "show status like 'created_tmp_tables';"| grep -v Value |awk '{print $2}')
echo $result
;;
Created_tmp_disk_tables_rate)
result=$(echo $($MySQlBin -h$Host -e "show status like 'created_tmp_disk_tables';"| grep -v Value |awk '{print $2}') $($MySQlBin -h$Host -e "show status like 'created_tmp_tables';"| grep -v Value |awk '{print $2}')| awk '{if($2==0)printf("%1.4f\n",0);else printf("%1.4f\n",$1/$2*100);}')
echo $result
;;
Max_connections)
result=$($MySQlBin -h$Host -e "show variables like 'max_connections';"| grep -v Value |awk '{print $2}')
echo $result
;;
Max_used_connections)
result=$($MySQlBin -h$Host -e "show status like 'Max_used_connections';"| grep -v Value |awk '{print $2}')
echo $result
;;
Processlist)
result=$($MySQlBin -h$Host -e "show processlist" | grep -v "Id" | wc -l)
echo $result
;;
Max_connections_used_rate)
result=$(echo $($MySQlBin -h$Host -e "show status like 'Max_used_connections';"| grep -v Value |awk '{print $2}') $($MySQlBin -h$Host -e "show variables like 'max_connections';"| grep -v Value |awk '{print $2}')| awk '{if($2==0)printf("%1.4f\n",0);else printf("%1.4f\n",$1/$2*100);}')
echo $result
;;
Connection_occupancy_rate)
result=$(echo $($MySQlBin -h$Host -e "show status like 'Threads_connected';"| grep -v Value |awk '{print $2}') $($MySQlBin -h$Host -e "show variables like 'max_connections';"| grep -v Value |awk '{print $2}')| awk '{if($2==0)printf("%1.4f\n",0);else printf("%5.4f\n",$1/$2*100);}')
echo $result
;; Table_locks_immediate)
result=$($MySQlBin -h$Host -e "show status like 'Table_locks_immediate';"| grep -v Value |awk '{print $2}')
echo $result
;;
Table_locks_waited)
result=$($MySQlBin -h$Host -e "show status like 'table_locks_waited';"| grep -v Value |awk '{print $2}')
echo $result
;;
Engine_select)
result=$(echo $($MySQlBin -h$Host -e "show status like 'Table_locks_immediate';"| grep -v Value |awk '{print $2}') $($MySQlBin -h$Host -e "show status like 'table_locks_waited';"| grep -v Value | awk '{print $2}') | awk '{if($2==0)printf("%1.4f\n",0);else printf("%5.4f\n",$1/$2*100);}')
echo $result
;;
*)
echo -e "\033[33mUsage: ./getmysqlinfo {Ping|Threads|Questions|Slowqueries|Qps|Slave_IO_State|Slave_SQL_State|Key_buffer_size|Key_reads|Key_read_requests|Key_cache_miss_rate|Key_blocks_used|Key_blocks_unused|Key_blocks_used_rate|Innodb_buffer_pool_size|Innodb_log_file_size|Innodb_log_buffer_size|Table_open_cache|Open_tables|Opened_tables|Open_tables_rate|Table_open_cache_used_rate|Thread_cache_size|Threads_cached|Threads_connected|Threads_created|Threads_running|Qcache_free_blocks|Qcache_free_memory|Qcache_hits|Qcache_inserts|Qcache_lowmem_prunes|Qcache_not_cached|Qcache_queries_in_cache|Qcache_total_blocks|Qcache_fragment_rate|Qcache_used_rate|Qcache_hits_rate|Query_cache_limit|Query_cache_min_res_unit|Query_cache_size|Sort_merge_passes|Sort_range|Sort_rows|Sort_scan|Handler_read_first|Handler_read_key|Handler_read_next|Handler_read_prev|Handler_read_rnd|Handler_read_rnd_next|Com_select|Com_insert|Com_insert_select|Com_update|Com_replace|Com_replace_select|Table_scan_rate|Open_files|Open_files_limit|Open_files_rate|Created_tmp_disk_tables|Created_tmp_tables|Created_tmp_disk_tables_rate|Max_connections|Max_used_connections|Processlist|Max_connections_used_rate|Table_locks_immediate|Table_locks_waited|Engine_select|Connection_occupancy_rate} \033[0m" ;;
esac
fi

2)修改脚本权限

chmod +x /etc/zabbix/zabbix_agentd.d/mysql_status.sh

3)修改agent配置文件

#vim /etc/zabbix/zabbix_agentd.d/userparameter_mysql.conf
UserParameter=mysql.status[*],/etc/zabbix/zabbix_agentd.d/mysql_status.sh $

4)重启服务

systemctl restart zabbix-agent 

5)修改mysql配置文件:定义脚本中命令使用的用户名和密码,这样脚本中就不需要带user和password选项了

#vim /etc/my.cnf
[client]
user = root
password = redhat

2)server端配置

思路:定义mysql模板--->定义应用集---定义监控项---定义图集---定义触发器---->添加主机或主机关联这个模板

1)zabbix-server端zabbix_get测试获取

# zabbix_get -s 192.168.1.33 -k mysql.status[Max_connections]

2)key值

mysql.status[Ping]
mysql.status[Threads]
mysql.status[Questions]
mysql.status[Slowqueries]
mysql.status[Qps]
mysql.status[Slave_IO_State]
mysql.status[Slave_SQL_State]
mysql.status[Key_buffer_size]
mysql.status[Key_reads]
mysql.status[Key_read_requests]
mysql.status[Key_cache_miss_rate]
mysql.status[Key_blocks_used]
mysql.status[Key_blocks_unused]
mysql.status[Key_blocks_used_rate]
mysql.status[Innodb_buffer_pool_size]
mysql.status[Innodb_log_file_size]
mysql.status[Innodb_log_buffer_size]
mysql.status[Table_open_cache]
mysql.status[Open_tables]
mysql.status[Opened_tables]
mysql.status[Open_tables_rate]
mysql.status[Table_open_cache_used_rate]
mysql.status[Thread_cache_size]
mysql.status[Threads_cached]
mysql.status[Threads_connected]
mysql.status[Threads_created]
mysql.status[Threads_running]
mysql.status[Qcache_free_blocks]
mysql.status[Qcache_free_memory]
mysql.status[Qcache_hits]
mysql.status[Qcache_inserts]
mysql.status[Qcache_lowmem_prunes]
mysql.status[Qcache_not_cached]
mysql.status[Qcache_queries_in_cache]
mysql.status[Qcache_total_blocks]
mysql.status[Qcache_fragment_rate]
mysql.status[Qcache_used_rate]
mysql.status[Qcache_hits_rate]
mysql.status[Query_cache_limit]
mysql.status[Query_cache_min_res_unit]
mysql.status[Query_cache_size]
mysql.status[Sort_merge_passes]
mysql.status[Sort_range]
mysql.status[Sort_rows]
mysql.status[Sort_scan]
mysql.status[Handler_read_first]
mysql.status[Handler_read_key]
mysql.status[Handler_read_next]
mysql.status[Handler_read_prev]
mysql.status[Handler_read_rnd]
mysql.status[Handler_read_rnd_next]
mysql.status[Com_select]
mysql.status[Com_insert]
mysql.status[Com_insert_select]
mysql.status[Com_update]
mysql.status[Com_replace]
mysql.status[Com_replace_select]
mysql.status[Table_scan_rate]
mysql.status[Open_files]
mysql.status[Open_files_limit]
mysql.status[Open_files_rate]
mysql.status[Created_tmp_disk_tables]
mysql.status[Created_tmp_tables]
mysql.status[Created_tmp_disk_tables_rate]
mysql.status[Max_connections]
mysql.status[Max_used_connections]
mysql.status[Processlist]
mysql.status[Max_connections_used_rate]
mysql.status[Table_locks_immediate]
mysql.status[Table_locks_waited]
mysql.status[Engine_select]
mysql.status[Connection_occupancy_rate]

3)定义监控项

4)定义图形

5)验证图形

 

(十一)zabbix监控mysql的更多相关文章

  1. Zabbix监控mysql performance

    介绍 zabbix监控mysql性能,使用zabbix自带的mysql监控模板,可以监控以下内容OPS(增删改查).mysql慢查询数量.mysql请求\响应流量带宽 配置 新建mysql监控用户 G ...

  2. zabbix 监控MySQL

    现在我来说一下我的监控环境 zabbix-3.0.3 MySQL-5.6.23 1.首先我们要登录MySQL,创建一个监控MySQL的用户 GRANT USAGE,PROCESS,SUPER,REPL ...

  3. Zabbix监控mysql配置及故障告警配置

    本文主要介绍zabbix监控mysql的配置,包含使用zabbix自带模板监控mysql相关信息及自定义key监控mysql同步情况.同时介绍了触发器的创建及zabbix通过邮件方式告警配置. 一.配 ...

  4. 分布式数据存储 - Zabbix监控MySQL性能

    Zabbix如何监控mysql性能,我们可以使用mysql自带的模板,可以监控如下内容:OPS(增删改查).mysql请求流量带宽,mysql响应流量带宽,最后会附上相应的监控图! 编写check_m ...

  5. 使用zabbix监控mysql的三种方式

    使用zabbix监控mysql的三种方式 1.只是安装agent 2.启用模板监控 3.启用自定义脚本的模板监控 zabbix中默认有mysql的监控模板.默认已经在zabbix2.2及以上的版本中. ...

  6. zabbix监控mysql性能

    使用zabbix监控mysql的三种方式 1.只是安装agent 2.启用模板监控 3.启用自定义脚本的模板监控 zabbix中默认有mysql的监控模板.默认已经在zabbix2.2及以上的版本中. ...

  7. zabbix监控mysql最简单的方法

    该实验基于我的上一篇文章监控第一台主机的基础上 首先,因为水平有限,我选择直接关闭了防火墙和SELinux. 环境: 两台centos7,服务器端IP是192.168.200.128(以下简称主机), ...

  8. Zabbix 监控 Mysql 状态

    简介: 如何使用 Zabbix 来监控 Mysql 状态 ? Zabbix 有自带监控 Mysql 的模板,但是却不能直接使用.. 需要我们根据模板提供的 Key 自己写脚本获取数据 1.查看都有哪些 ...

  9. zabbix监控mysql以及其他常见

    zabbix监控mysql以及其他常见,监控mysql,也可是使用percona提供的详细的模板,里面的监控项目非常的详细 <template>Template Percona MySQL ...

  10. Zabbix监控,Mysql,Nginx,PHP-FTPM

    一 Zabbix监控Mysql 监控Mysql,Zabbix提供了一个监控模板,所有可以直接使用.或者使用Percona提供的监控模板. 1. 使用自带监控模板 1.1.1 编写监控模板 #!/bin ...

随机推荐

  1. ZOJ Problem Set - 1006

    注意:A的ascii为65,a为97就行了 其他没什么,略过. 代码参看: http://my.oschina.net/dianpaopao/blog/124545

  2. poj1905 Expanding Rods(二分)

    题目链接:https://vjudge.net/problem/POJ-1905 题意:有一根长len的木棍,加热了n度,长度会膨胀为len*(1+n*c),c为膨胀系数.现在把这根木棍夹在两堵墙之间 ...

  3. spring boot 项目开发常用目录结构

    在spring boot开发中一些常用的目录划分 转载自https://blog.csdn.net/Auntvt/article/details/80381756: 一.代码层结构 根目录:net.c ...

  4. POJ - 3249 Test for Job (在DAG图利用拓扑排序中求最长路)

    (点击此处查看原题) 题意 给出一个有n个结点,m条边的DAG图,每个点都有权值,每条路径(注意不是边)的权值为其经过的结点的权值之和,每条路径总是从入度为0的点开始,直至出度为0的点,问所有路径中权 ...

  5. python中property属性的介绍及其应用

    Python的property属性的功能是:property属性内部进行一系列的逻辑计算,最终将计算结果返回. 使用property修饰的实例方法被调用时,可以把它当做实例属性一样 property的 ...

  6. Java 线程控制

    一.线程控制 和线程相关的操作都定义在Thread类中,但在运行时可以获得线程执行环境的信息.比如查看可用的处理器数目(这也行?): public class RunTimeTest { public ...

  7. Linux下离线安装Docker最新版本

    一.基础环境1.操作系统:CentOS 7.32.Docker版本:18.06.1 官方下载地址(打不开可能需要梯子)3.百度云Docker 18.06.1地址:https://pan.baidu.c ...

  8. 执行sql语句,不依靠实体 获取string值

     IList<string> list2 = Session.CreateSQLQuery(sql.ToString()).List<string>();

  9. luogu题解 P3709 【大爷的字符串题】

    题目链接: https://www.luogu.org/problemnew/show/P3709 思路: 首先我是没读懂题目的,浏览了讨论区的dalao发现才知道就是求区间众数的出现次数. 然后肯定 ...

  10. Java基础第三天--内部类、常用API

    形参和返回值 抽象类名作为形参和返回值 方法的形参是抽象类名,其实需要的是该抽象类的子类对象 方法的返回值是抽象类名,其实返回的是该抽象类的子类对象 接口名作为形参和返回值 方法的形象是接口名,其实需 ...