10 2016 档案
navicat连接错误
摘要:错误提示: lost connection to MySQL server at "sending authentication information",system error:0 解决方案: 关闭360等安全软件 阅读全文
posted @ 2016-10-31 16:33 魄灠 阅读(643) 评论(0) 推荐(0)
数据库主从配置
摘要:mysql服务器版本:5.5.52 master主机:ip1(看具体情况) slave从机:ip2(看具体情况) master配置(/etc/mysql/my.cnf): server-id = 1#log_bin = /var/log/mysql/mysql-bin.loglog_binbinlo 阅读全文
posted @ 2016-10-31 15:32 魄灠 阅读(209) 评论(0) 推荐(0)
数据库服务器端配置
摘要:数据库版本:mysql 5.5.52 问题 1、 grant all privileges on *.* to root@'%' identified by '123456'; 2、修改/etc/mysql/my.conf 找到bind-address = 127.0.0.1这一行 改为bind-a 阅读全文
posted @ 2016-10-31 15:24 魄灠 阅读(317) 评论(0) 推荐(0)
C语言牛逼代码
摘要:/***** first 表示linux下gcc编译没有过 ****/ #include<stdio.h>int main(void){ float a; printf(" 数据排列\n\n"); printf("input a data:"); scanf("%f", &a); printf("o 阅读全文
posted @ 2016-10-30 22:49 魄灠 阅读(4909) 评论(0) 推荐(0)
socket 编程 服务器端-客户端
摘要:/**** 服务器端代码 *****/ #include<sys/types.h>#include<sys/socket.h>#include<stdio.h>#include<netinet/in.h>#include<arpa/inet.h>#include<unistd.h>#define P 阅读全文
posted @ 2016-10-29 22:14 魄灠 阅读(264) 评论(0) 推荐(0)
C管道通讯
摘要:/***** linux下的pipe管道通讯 ****/ #include<unistd.h>#include<stdio.h>#include<string.h>#define MAXSIZE 100int main(void){ int fd[2],pid,line; char message[ 阅读全文
posted @ 2016-10-26 22:00 魄灠 阅读(200) 评论(0) 推荐(0)
C 进程
摘要:/**** 进程 ***/ #include<sys/types.h>#include<stdio.h>#include<stdlib.h>#include<unistd.h>int main(){ pid_t pid; if( ( pid = fork() ) < 0 ) { printf("fo 阅读全文
posted @ 2016-10-26 10:51 魄灠 阅读(225) 评论(0) 推荐(0)
一般面试题
摘要:1.浏览器访问一个网页的整个过程,附带连接协议? 2.tcp和upd的区别? 3.tcp报头? 4.网络协议的7层和5层分别是什么? 5.ipv6的知识? 6.网络分包? 7.求素数的改进方法? 阅读全文
posted @ 2016-10-24 16:49 魄灠 阅读(108) 评论(0) 推荐(0)
vim 配置tab缩进
摘要:在/etc/vim/下有两个文件,分别为vimrc 和vimrc.tiny 1. 在vimrc文件中加入:set tabstop=4 2.保存退出即可 3.再次使用vim时,设置就会生效 在vim写代码可以完美tab键,不用按空格来控制格式 补充: vim显示行号:set number 阅读全文
posted @ 2016-10-23 10:48 魄灠 阅读(1562) 评论(0) 推荐(0)
C 创建链表
摘要:#include<malloc.h>#include<stdio.h>#define LEN sizeof(struct student)typedef struct student{ int num; int age; float score; struct student *next;}stu; 阅读全文
posted @ 2016-10-23 10:33 魄灠 阅读(216) 评论(0) 推荐(0)
C 32个关键字
摘要:auto 系统自动管理变量 double int struct break else long switch case enum register 寄存器变量 typedef char extern 外部变量,由其他文件 return union const 本进程不可更改,但是其他进程可以更改 f 阅读全文
posted @ 2016-10-21 22:13 魄灠 阅读(110) 评论(0) 推荐(0)
求职经历
摘要:第1家 腾讯 (2面) 一面:自我介绍,问些基础问题,主要是网络支持,比如tcp报头,协议等。linux下服务器运行监控状态。谈已经做过的项目,和直接给一个题目编写程序。 二面:自我介绍,上来就写用shell编写查询cpu使用率前5的脚本。然后解释什么是业务运维,业务运维分为那几块。微信红包在大年三 阅读全文
posted @ 2016-10-21 22:00 魄灠 阅读(169) 评论(0) 推荐(0)
C 内存操作 ---自《C程序员从校园到职场》
摘要:1. memset and memcpy /**********************************************/ 2. strcat and strncat /*********************************************/ 3.strcpy a 阅读全文
posted @ 2016-10-19 09:06 魄灠 阅读(103) 评论(0) 推荐(0)
系统架构的演变 -----自 罗文浩
摘要:转自:https://my.oschina.net/lwhmdj0823/blog/617713 版权声明:罗文浩所有 摘要: 一个成熟的大型网站(如淘宝、京东等)的系统架构并不是开始设计就具备完整的高性能、高可用、安全等特性,它总是随着用户量的增加,业务功能的扩展逐渐演变完善的,在这个过程中,开发 阅读全文
posted @ 2016-10-19 08:58 魄灠 阅读(299) 评论(0) 推荐(0)
C语言编程标准 ----自《C程序员从校园到职场》
摘要:/*************************************************** * 版权所有 公司或者个人名称 * * 文件名称: * 内容摘要: * 其他说明: * 当前版本: * 作 者: * 完成日期: * * 修改记录1: * 修改日期: * 版 本 号: * 修 阅读全文
posted @ 2016-10-19 08:53 魄灠 阅读(181) 评论(0) 推荐(0)