在运行 “sudo gem install cocoapods” 的时候出现问题:ERROR: While executing gem ... (Errno::EPERM)Operation not permitted - /usr/bin/fuzzy_match 则可以改为:sudo gem in ...
分类:
其他好文 时间:
2016-07-15 23:45:28
阅读次数:
140
主从同步描述如下: 由于主机故障,导致从库的mysql实例重启了。重启后,从库的slave status报下面的错误: Last_SQL_Errno: 1062Last_SQL_Error: Could not execute Write_rows event on table qrcode.t_q... ...
分类:
其他好文 时间:
2016-07-14 19:01:52
阅读次数:
319
主从架构。今天发现从库SQL线程报错,主从复制停止了。查看错误发现: Last_SQL_Errno: 1205 Last_SQL_Error: Slave SQL thread retried transaction 10 time(s) in vain, giving up. Consider r... ...
分类:
数据库 时间:
2016-07-11 12:27:12
阅读次数:
680
/** * * upload.class.php 文件上传类,实现文件上传功能 * 2013年3月27日0:37:15 * */class Upload{ private $path; //文件上传目录 private $max_size; //上传文件大小限制 private $errno; // ...
分类:
Web程序 时间:
2016-07-07 12:38:24
阅读次数:
149
背景由于笔者需要情况紧急的更新服务,官方的源[http://mirrorlist.centos.org]访问速度和下载速度已不能满足紧急的生产环境中,无奈之下,只好选择国内的源.国内比较好的源如下:阿里云[http://mirrors.aliyun.com/]163网易[http://mirrors.163.com/]搜狐[http://mirrors..
分类:
其他好文 时间:
2016-07-05 19:11:19
阅读次数:
4390
C、传统 C++ #include <assert.h> 设定插入点 #include <ctype.h> 字符处理 #include <errno.h> 定义错误码 #include <float.h> 浮点数处理 #include <fstream.h> 文件输入/输出 #include <io ...
分类:
编程语言 时间:
2016-07-05 11:50:42
阅读次数:
195
C/C++头文件一览 C #include <assert.h> //设定插入点#include <ctype.h> //字符处理#include <errno.h> //定义错误码#include <float.h> //浮点数处理#include <iso646.h> //对应各种运算符的宏#i ...
分类:
编程语言 时间:
2016-07-04 20:36:22
阅读次数:
193
gitlab可以成功clone和push,但是提交后的文件却无法查看。从页面上看的话只显示出500错误。 查了下gitlab的日志 显示如下异常: 查了下内存为2G,已经满足gitlab最小内存1G的要求。 但是非常诡异的是swap为0,网上找了发现也有人遇到相应的问题。于是修改下swap的大小 修 ...
分类:
其他好文 时间:
2016-07-04 20:16:42
阅读次数:
358
MySQL启动失败找不到原因后来查询/var/lib/mysql目录下的localhost.localdomain.err文件出现错误是[root@localhostlocal]#servicemysqlstart
16070415:57:28[ERROR]/usr/sbin/mysqld:Can‘tfindfile:‘./mysql/host.frm‘(errno:13)
16070415:57:28[ERROR]Fatalerror:Can‘topenand..
分类:
数据库 时间:
2016-07-04 19:04:55
阅读次数:
534