mysqld: Can't change dir to 'D:\TONG\mysql-5.7.19-winx64\data\' (Errcode: 2 - No such file or directory)2017-09-20T07:27:11.588451Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server o…
1.问题描述 由于安装VS15 Preview 5,搞的系统由重新安装一次:在用vscdoe编译go语言时,出现以下问题: # odbcexec: "gcc": executable file not found in %PATH%exit status 2 2.解决方案 2.1 mingw 64 MinGW分为较早开发的MinGW32和之后为编译64位程序开发的MinGW-w64,MinGW32只能编译32位的程序,而mingw64不仅能编译64位程序,也能编译32位程序,还能进行交…
win下使用go,在进行go run build.go时,提示 exec: "gcc": executable file not found in %PATH% 原因是sqlitle3是个cgo库,需要gcd编译c代码然后下载安装tdm-gcc即可(windosw版本)下载地址:http://tdm-gcc.tdragon.net/download…
在类Unix操作系统里面,.dup2和dup都通过系统调用来产生一份file descriptor 的拷贝. dup对我来说还很简单 int dup(int filedes); dup2就有点犯迷糊了 int dup2(int filedes1,int filedes2); 其实这样declaration更好 int dup2(int oldfd,int newfd) 下面是apue给出的解释 With dup2, we specify the value of…
当配置完个人中心的ssh公钥的时候,在客户端拉取代码的时候,提示如下错误: Cloning into 'comix-b2m'... Gogs: Internal error fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 一度认为是ssh公钥配置问题 后端serv日志报错如下: exec: "gi…
windows下打开命令窗口,安装pm2:npm install pm2 -g pm2成功安装,在项目目录下用pm2启动服务:pm2 start index.js,结果启动失败,错误如下: .pm2\pm2.log last 15 lines:PM2 | 2018-11-13T12:57:17: PM2 log: App [index:0] exited with code [1] via signal [SIGINT]\index.js had too many unstable restar…
poll同select,用于监控file descriptor事件,推荐用poll的升级版epool来实现功能,但在简单应用中使用poll更方便. #include <poll.h> int poll(struct pollfd *fds, nfds_t nfds, int timeout); struct pollfd { int fd; short events; short revents; }; fds是文件描述符集的数组,nfds指定数组元素个数. pollfd中fd是打开文件的文件…
今天安装了uwsgi+supervisord+nginx,一直访问不了 直接启动uwsgi使用nginx访问,查看有大量报错:epoll_ctl(): Bad file descriptor [core/event.c line 521] 查看strace和lsof也没有头绪,仔细看报错有epoll_create(): Too many open files [core/event.c line 504] 可能是进程数太多了超过文件句柄数,把uwsgi进程数改小后就可以了,待会改一下文件句柄数也…