配置网络IP修改/etc/network/interfaces,增加以下内容auto eth0 iface eth0 inet static address 192.168.1.10 netmask 255.255.255.0 gateway 192.168.1.1重启网络systemctl restart networking配置apt源修改/etc/apt/sources.list,增加...
阅读全文

查询是否开启慢查询日志mysql> show variables like 'slow_query_log';编辑my.cnf,增加以下参数,开启慢查询日志log_output=file slow_query_log=on slow_query_log_file = /tmp/mysql-slow.log log_queries_not_using_indexes=...
阅读全文