联系我们:416326801#qq.com(#改成@)

Latest from the blog

到ICANN投诉三五互联获取域名转移密码成功

标签: ICANN

三五互联对域名转出设置各种门槛,让域名持有人提供各种不合理的证明。如遇类似情况,在邮件和电话协商无效的情况下,请各位域名持有人直接向ICANN反应!!

声明:本文是亲身经历,绝对属实,请厦门三五互联科技股份有限公司的员工不要再发所谓“删除不实帖子”的邮件了。

阅读全文>>

{"errcode":45047,"errmsg":"out of response count limit hint]"}

标签: Weixin

微信公众号发送客服消息返回错误码45047, 官方并没有给出45047的具体含义.

根据字面意思和测试结果, 该错误值代表: 对同一用户频发发送客服消息超过限制, 避免对用户造成骚扰. 

一般只会发调试的时候出现, 解决办法: 接收人给公众号发条消息, 或者换个openid测试. 

Fatal error: cannot allocate memory for the buffer pool

标签: MySQL

今天线上数据库异常挂了两次,查看日志发现致命错误Fatal error: cannot allocate memory for the buffer pool

修改/etc/my.cnf,适当降低innodb_buffer_pool_size参数值,从256M调整为128M

170602 17:51:27 mysqld_safe Number of processes running now: 0
170602 17:51:27 mysqld_safe mysqld restarted
170602 17:51:27 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.5.48-log) starting as process 3476 ...
170602 17:51:27 InnoDB: The InnoDB memory heap is disabled
170602 17:51:27 InnoDB: Mutexes and rw_locks use GCC atomic builtins
170602 17:51:27 InnoDB: Compressed tables use zlib 1.2.7
170602 17:51:27 InnoDB: Initializing buffer pool, size = 256.0M
170602 17:51:27 InnoDB: Completed initialization of buffer pool
170602 17:51:27 InnoDB: Fatal error: cannot allocate memory for the buffer pool
170602 17:51:27 [ERROR] Plugin 'InnoDB' init function returned error.
170602 17:51:27 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
170602 17:51:27 [ERROR] Unknown/unsupported storage engine: InnoDB
170602 17:51:27 [ERROR] Aborting
170602 17:51:27 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
170602 17:51:27 mysqld_safe mysqld from pid file /data/mysql/yuxinle.pid ended


贴上几个关键指标,供以后出现同类问题时参考

mysql> show global variables like 'innodb_buffer_pool_size';
+-------------------------+-----------+
| Variable_name           | Value     |
+-------------------------+-----------+
| innodb_buffer_pool_size | 134217728 |
+-------------------------+-----------+
1 row in set (0.00 sec)

mysql> show global status like 'Innodb_buffer_pool_pages_data';
+-------------------------------+-------+
| Variable_name                 | Value |
+-------------------------------+-------+
| Innodb_buffer_pool_pages_data | 574   |
+-------------------------------+-------+
1 row in set (0.00 sec)

mysql> show global status like 'Innodb_buffer_pool_pages_total';
+--------------------------------+-------+
| Variable_name                  | Value |
+--------------------------------+-------+
| Innodb_buffer_pool_pages_total | 8191  |
+--------------------------------+-------+
1 row in set (0.00 sec)

mysql> show global status like 'Innodb_page_size';
+------------------+-------+
| Variable_name    | Value |
+------------------+-------+
| Innodb_page_size | 16384 |
+------------------+-------+
1 row in set (0.00 sec)

mysql> show variables like 'max_connections';
+-----------------+-------+
| Variable_name   | Value |
+-----------------+-------+
| max_connections | 3000  |
+-----------------+-------+
1 row in set (0.00 sec)

mysql>  show global status like 'Max_used_connections';
+----------------------+-------+
| Variable_name        | Value |
+----------------------+-------+
| Max_used_connections | 4     |
+----------------------+-------+
1 row in set (0.00 sec)

Linux修改密码提示passwd /usr/share/cracklib/pw_dict: error reading header

标签: Linux rpm

今天在修改一台Linux服务器密码时出现提示

/usr/share/cracklib/pw_dict: error reading header

/usr/share/cracklib/pw_dict.pwd: No such file or directory

这是因为cracklib-dicts函数库出问题了,先查看下版本

rpm -qa | grep cracklib-dicts
cracklib-dicts-2.8.9-3.3
卸载安装包并重装
rpm -e cracklib-dicts --nodeps
yum install cracklib-dicts
如果yum install安装失败,可以尝试安装rpm包
rpm -ivh cracklib-dicts-2.8.9-3.3.x86_64.rpm 

rpm -ql cracklib-dicts检查下是否安装成功

rpm -ql cracklib-dicts
/usr/lib64/cracklib_dict.hwm
/usr/lib64/cracklib_dict.pwd
/usr/lib64/cracklib_dict.pwi
/usr/sbin/mkdict
/usr/sbin/packer
/usr/share/cracklib
/usr/share/cracklib/pw_dict.hwm
/usr/share/cracklib/pw_dict.pwd
/usr/share/cracklib/pw_dict.pwi

rpm包可以在光盘镜像Server目录中找到, 最好安装相同,否则有可能产生依赖问题,拔出萝卜带出泥....

cracklib-dicts-2.9.6-5.fc26.x86_64.zip


CrackLib是一个可用于类UNIX系统下的函数库,   一般来说,   通常只使用其中的一个函数.它可以用于编写和passwd有关的程序中,   其基本思想是很简单的,   就是防止用户使用过于简单,   容易被猜测出来或容易被一些工具搜索到的密码.CrackLib并不是一个可以直接运行使用的程序,   它是一个函数库,   你可以利用其中的函数写自己的程序,   或是加入其它程序中,   用来提高安全性。

1 2 3 4 5 6 ... Next »... Last »