一、如果向磁盘写入数据提示如下错误:No space left on device,通过df -h查看磁盘空间,发现没有满,请问可能原因是什么?企业场景什么情况下会导致这个问题发生?解答:小文件多,可能是Inode数量被消耗尽了。产生原因:企业工作重临时文件对应太多/var/spool/clientmquene 大量的小文件(centos5默认安装sendmail)二、一个100M(100000K)的磁盘分区,分别写入1K的文件或写入1M的文件,分别可以写多少个?解答:1.主...
报错如下ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)解决方法:解决办法也有两种,第一种是在创...
[root@shnne ~]# cat liu.log
I am shnne welcome to my blog.
[root@shnne ~]# cat liu.sh
#!/bin/sh
array=($(cat liu.log))
for((i=0;i<${#array[@]};i++))
do...