2016年10月31日
摘要: 数据库版本: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 魄灠 阅读(281) 评论(0) 推荐(0) 编辑
  2016年10月30日
摘要: /***** 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 魄灠 阅读(4819) 评论(0) 推荐(0) 编辑
  2016年10月29日
摘要: /**** 服务器端代码 *****/ #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 魄灠 阅读(246) 评论(0) 推荐(0) 编辑
  2016年10月26日
摘要: /***** 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 魄灠 阅读(183) 评论(0) 推荐(0) 编辑
摘要: /**** 进程 ***/ #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 魄灠 阅读(211) 评论(0) 推荐(0) 编辑
  2016年10月24日
摘要: 1.浏览器访问一个网页的整个过程,附带连接协议? 2.tcp和upd的区别? 3.tcp报头? 4.网络协议的7层和5层分别是什么? 5.ipv6的知识? 6.网络分包? 7.求素数的改进方法? 阅读全文
posted @ 2016-10-24 16:49 魄灠 阅读(93) 评论(0) 推荐(0) 编辑
  2016年10月23日
摘要: 在/etc/vim/下有两个文件,分别为vimrc 和vimrc.tiny 1. 在vimrc文件中加入:set tabstop=4 2.保存退出即可 3.再次使用vim时,设置就会生效 在vim写代码可以完美tab键,不用按空格来控制格式 补充: vim显示行号:set number 阅读全文
posted @ 2016-10-23 10:48 魄灠 阅读(1536) 评论(0) 推荐(0) 编辑
摘要: #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 魄灠 阅读(199) 评论(0) 推荐(0) 编辑
  2016年10月21日
摘要: auto 系统自动管理变量 double int struct break else long switch case enum register 寄存器变量 typedef char extern 外部变量,由其他文件 return union const 本进程不可更改,但是其他进程可以更改 f 阅读全文
posted @ 2016-10-21 22:13 魄灠 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 第1家 腾讯 (2面) 一面:自我介绍,问些基础问题,主要是网络支持,比如tcp报头,协议等。linux下服务器运行监控状态。谈已经做过的项目,和直接给一个题目编写程序。 二面:自我介绍,上来就写用shell编写查询cpu使用率前5的脚本。然后解释什么是业务运维,业务运维分为那几块。微信红包在大年三 阅读全文
posted @ 2016-10-21 22:00 魄灠 阅读(145) 评论(0) 推荐(0) 编辑