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保
/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保
当Linux执行yum相关操作时,有时候会报如下错误(一般都是因为服务器配置太低导致的)Loaded plugins: fastestmirror Loading mirror speeds from cachedhostfile epel/metalink | 18 kB 00:00
当Linux执行yum check-update有时候会报如下错误(一般都是因为服务器配置太低导致的)Loaded plugins: fastestmirror Loading mirror speeds from cachedhostfile Could not get metalinkhttps://mirrors.fedoraproject.org/metalink?repo=epel-6&
当Linux执行yum相关操作时,有时候会报如下错误(一般都是因为服务器配置太低导致的)Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfileepel/metalink | 18 kB 00:00 Traceback (most recent call last):File "/usr/bin
当Linux执行yum check-update有时候会报如下错误(一般都是因为服务器配置太低导致的)Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfileCould not get metalink https://mirrors.fedoraproject.org/metalink?repo=epel-6&
加个-n参数,不然会解析DNSiptables -L -n
在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中无法执行命
编辑配置文件vim /etc/vim/vimrc增加下面3个参数,保存退出即可set ts=4 set expandtab set autoindent
在Linux下,使用ipteables来维护IP规则表。要封停或者是解封IP,其实就是在IP规则表中对入站部分的规则进行添加操作。要封停一个IP,使用下面这条命令:iptables -I INPUT -s ***.***.***.*** -j DROP要解封一个IP,使用下面这条命令:iptables -D INPUT -s ***.***.***.*** -j DROP参数-I是表示Insert
首先开启openssl.cafile参数vi /etc/php.ini配置如下:openssl.cafile=/var/www/html/ssl/cert.pem设置完毕后可以使用openssl_get_cert_locations()来检测<?php print_r(openssl_get_cert_locations()); ?>或者命令行中执行php -r "print