2020年9月8日

第一周:程序结构|基本数据|复合数据类型

摘要: 恢复内容开始 基本数据: 整形;int8,int16,int32,int64,uint8,uiny16,uint32,uint64 浮点数:float32,float64 复数:complex64,complex128 布尔值:true,false 字符串:string 字符串和数字的互相转换: s 阅读全文

posted @ 2020-09-08 14:26 Xiaox-xin 阅读(155) 评论(0) 推荐(0) 编辑

2018年12月12日

redis主从搭建(哨兵模式)

摘要: 1、准备 (1)、服务器两台,局域网ip:192.168.0.7,192.168.0.6 (2)、redis 5.0 下载,安装 wget http://download.redis.io/releases/redis-5.0.2.tar.gz tar -xvf redis-5.0.2.tar.gz 阅读全文

posted @ 2018-12-12 16:17 Xiaox-xin 阅读(230) 评论(0) 推荐(0) 编辑

2018年10月26日

mysql按照条件导出数据

摘要: mysqldump条件导出 mysqldump -h127.0.0.1 -uadmin -padmin -t dbName tableName --where="number is null and add_date<=1539691917000 and add_date>=153442088100 阅读全文

posted @ 2018-10-26 11:15 Xiaox-xin 阅读(289) 评论(0) 推荐(0) 编辑

2018年8月30日

Centos 7 配置静态ip

摘要: 1、配置ip vim /etc/sysconfig/network-scripts/ifcfg-eno16777736 BOOTPROTO=static ONBOOT=yes IPADDR=192.168.1.99 NETMASK=255.255.255.0 GATEWAY=192.168.1.1 阅读全文

posted @ 2018-08-30 21:52 Xiaox-xin 阅读(106) 评论(0) 推荐(0) 编辑

2018年8月3日

Git 合并多个commit 和 cherry-pick的使用

摘要: 合并多个commit 1、三个commit合并 git rebase -i commit_id 其中,-i 的参数是不需要合并的 commit 的 hash 值,这里指的是第一条 commit, 接着我们就进入到 vi 的编辑模式 2、pick 和 squash 选择 pick 的意思是要会执行这个 阅读全文

posted @ 2018-08-03 10:54 Xiaox-xin 阅读(1253) 评论(0) 推荐(0) 编辑

2018年7月13日

TCP连接的状态与关闭方式,及其对Server与Client的影响

摘要: 1. TCP连接的状态 首先介绍一下TCP连接建立与关闭过程中的状态。TCP连接过程是状态的转换,促使状态发生转换的因素包括用户调用、特定数据包以及超时等,具体状态如下所示: CLOSED:初始状态,表示没有任何连接。 LISTEN:Server端的某个Socket正在监听来自远方的TCP端口的连接 阅读全文

posted @ 2018-07-13 17:34 Xiaox-xin 阅读(173) 评论(0) 推荐(0) 编辑

2018年6月5日

spring boot通用配置项

摘要: 来自于:http://blog.csdn.net/yuchao2015/article/details/52588407 最近新接触了spring boot,刚刚入门有了些了解,但是对于加载配置文件这一块还是不太懂,只是知道默认配置文件application.properties文件,貌似还支持一种名为YAML(yet a markup language, 同xml一样,也是一种标记语... 阅读全文

posted @ 2018-06-05 11:29 Xiaox-xin 阅读(340) 评论(0) 推荐(0) 编辑

2018年5月30日

Linux lrzsz 实战

摘要: 安装指令 安装指令 yum -y install lrzsz 使用方式 现在就可以正常使用rz、sz命令上传、下载数据了。 上传文件,执行命令rz,会跳出文件选择窗口,选择好文件,点击确认即可。 下载文件,执行命令sz yum -y install lrzsz 使用方式 现在就可以正常使用rz、sz 阅读全文

posted @ 2018-05-30 10:03 Xiaox-xin 阅读(134) 评论(0) 推荐(0) 编辑

2018年5月22日

IDEA中Spring boot配置热部署

摘要: pom文件中添加 file-》settings-》build,execution,deployment-》Compiler alt + shift + a 搜索 registry 选第一个 弹出框后下拉找到 compiler.automake.allow.when.app.running 勾选上即可 阅读全文

posted @ 2018-05-22 16:16 Xiaox-xin 阅读(135) 评论(0) 推荐(0) 编辑

2018年5月10日

MySQL 对于千万级的大表要怎么优化?

摘要: 第一优化你的sql和索引; 第二加缓存,memcached,redis; 第三以上都做了后,还是慢,就做主从复制或主主复制,读写分离,可以在应用层做,效率高,也可以用三方工具,第三方工具推荐360的atlas,其它的要么效率不高,要么没人维护; 第四如果以上都做了还是慢,不要想着去做切分,mysql 阅读全文

posted @ 2018-05-10 10:53 Xiaox-xin 阅读(116) 评论(0) 推荐(0) 编辑

导航