摘要: Host 列: 对应的允许访问域(%表示全域,192.168.%.%表示对应账号对该段均可访问,192.168.1.1表示对应账号仅这台机器可访问) 删除用户: drop user 用户名@'%'; drop user 用户名@ localhost; 刷新权限: flush privileges; 阅读全文
posted @ 2016-07-05 13:58 RushoutAsia 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 用途: 关联主机名和IP地址 在机器启动时,在DNS正常工作前,需要知道一些主机名和IP地址的映射关系,这个映射关系就保存在/etc/hosts文件中,在DNS不能正常工作是,系统中所有的网络程序将查看该文件以决定IP地址对应的主机名。 格式: 每行一个IP地址 IP_address canonic 阅读全文
posted @ 2016-07-05 13:24 RushoutAsia 阅读(458) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-07-05 10:28 RushoutAsia 阅读(81) 评论(0) 推荐(0) 编辑
摘要: -Wall 打开警告选项 -ggdb3 添加调试信息 阅读全文
posted @ 2016-07-04 22:36 RushoutAsia 阅读(793) 评论(0) 推荐(0) 编辑
摘要: 换行: The encoded output stream must be represented in lines of no more than 76 characters each。 MIME规定,base64编码中,每76个字符后,要加一个\n 避免换行: Android: 通过指定标志位: 阅读全文
posted @ 2016-06-29 21:55 RushoutAsia 阅读(231) 评论(0) 推荐(0) 编辑
摘要: Golang 操作MySql,导致MySql连接数过多。 阅读全文
posted @ 2016-06-28 11:44 RushoutAsia 阅读(294) 评论(0) 推荐(0) 编辑
摘要: google protobuf 编译安装(Linux) 下载: protobuf-2.6.1.tar.gz MD5(f3916ce13b7fcb3072a1fa8cf02b2423) 编译: tar -zxpvf protobuf-2.6.1.tar.gz; cd protobuf-2.6.1; . 阅读全文
posted @ 2016-06-25 15:52 RushoutAsia 阅读(748) 评论(0) 推荐(0) 编辑
摘要: 1、添加文件到/etc/ld.so.conf.d 将需要添加的目录路径添加到 xxx.conf文件中 将该文件添加到 /etc/ld.so.conf.d目录中 2.执行命令 ldconfig 使配置文件生效 临时方案: 使用环境变量LD_LIBRARY_PATH 阅读全文
posted @ 2016-06-25 02:20 RushoutAsia 阅读(764) 评论(0) 推荐(0) 编辑
摘要: 1、下载安装包 https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz 2、解压缩安装包到/usr/local目录 tar -C /usr/local -xzf go1.6.2.linux-amd64.tar.gz 3、配置G 阅读全文
posted @ 2016-06-25 00:39 RushoutAsia 阅读(775) 评论(0) 推荐(0) 编辑
摘要: 一、段错误的定义及产生原因 A segmentation fault (often shortened to segfault) is a particular error condition that can occur during the operation of computer softw 阅读全文
posted @ 2016-05-13 17:01 RushoutAsia 阅读(227) 评论(0) 推荐(0) 编辑