linux总结

2019-02-02 15:43:00 xhs
#bash语法,等号两边不能有空格 [root@xhs bash]# FreeMem=`free -m | grep Mem: | awk '{print $4}'` [root@xhs bash]# ech...

安装mysql5.6,5.7

2019-06-14 16:55:57 xhs
rpm -ivh http://repo.mysql.com/yum/mysql-5.5-community/el/6/x86_64/mysql-community-release-el6-5.noarch....

git 公钥登录 Authentication refused: bad ownership or modes for file /home/git/.ssh/authorized_keys

2019-03-10 21:28:45 xhs
Authentication refused: bad ownership or modes for file /home/git/.ssh/authorized_keys > chmod g-w /home/...

UPDATE语句写错了

2018-09-06 10:54:32 xhs
想更新物品数量,本来是9,需要减5,并且更新时间 SQL写成这样 UPDATE user_borrow_goods SET num=num-5 AND update_time=1535363307 WHERE...

openssl生成证书

2019-03-21 16:33:09 xhs
[root@to8to cert]# openssl genrsa -des3 -out pc_xiaohuasheng_com.key 1024 Generating RSA private key, 102...

ES听课心得

2019-02-20 21:45:00 xhs
ES 1.一秒延迟 2.类型,可分词和不可分词 3.分布式查询 每个分片都要查from+size的数量 协调结点整合数据,并取回 multi 深度分页 scroll 快照 after search...

mybatis mapper 生成代码

2019-01-04 21:57:43 xhs
过程: 1、在pom.xml加插件配置 在plugins加入: <plugin> <artifactId>maven-compiler-plugin</ar...

bash support 快捷键

2019-02-02 15:43:33 xhs
\sc – case in … esac (n, i) \sei – elif then (n, i) \sf – for in do done (n, i, v) \sfo – for ((…)) do ...

centos7安装openresty

2019-03-13 15:51:41 xhs
yum install pcre-devel openssl-devel gcc curl sudo yum install yum-utils -y sudo yum-config-manager --ad...

centos7安装mysql

2019-08-16 10:03:17 xhs
wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm yum -y install mysql57-co...