Linux上mysql占用内存大的解决方法

/etc/my.cnf中加入下面的参数character-set-server=utf8 default-storage-engine=MYISAM default-tmp-storage-engine=MYISAM table_open_cache=128 performance_schema_max_table_instances=200 table_definition_cache=200保

- 阅读全文 -

thread.error: can't start new thread 的解决方法

当Linux执行yum相关操作时,有时候会报如下错误(一般都是因为服务器配置太低导致的)Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfileepel/metalink | 18 kB 00:00 Traceback (most recent call last):File "/usr/bin

- 阅读全文 -

crontab中iptables执行后不生效的解决思路

在crontab中执行iptables命令或者执行的sh中有iptables命令那么需要如下格式/sbin/iptables -I INPUT -s ip.xxx.xxx.xxx -j DROP而不是iptables -I INPUT -s ip.xxx.xxx.xxx -j DROP总是环境变量的问题,如果不服可以改/etc/crontab中的PATH增加相关路径。总之crontab中无法执行命

- 阅读全文 -

Linux防火墙:iptables禁止IP与解封IP常用命令

在Linux下,使用ipteables来维护IP规则表。要封停或者是解封IP,其实就是在IP规则表中对入站部分的规则进行添加操作。要封停一个IP,使用下面这条命令:iptables -I INPUT -s ***.***.***.*** -j DROP要解封一个IP,使用下面这条命令:iptables -D INPUT -s ***.***.***.*** -j DROP参数-I是表示Insert

- 阅读全文 -

最新文章

最近回复

分类

标签

归档

其它