centos7安装Python3

2019-05-18 13:46:57 xhs
wget下载最新的Python包,比如3.7 解压 安装依赖 yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-de...

java 内存溢出排查

2019-05-15 17:51:00 xhs
在开发环境把运行内存调小 -XX:NativeMemoryTracking=summary -Xms128m -Xmx128m -XX:MaxDirectMemorySize=64M 让它溢出,根据报错的调用...

centos内核升级

2018-09-06 21:55:13 xhs
查看当前系统情况 uname -r cat /etc/issue 更新安装 yum update -y rpm --import https://www.elrepo.org/RPM-GPG-KEY-e...

scp传输报错

2019-05-15 10:17:01 xhs
The authenticity of host '[192.168.1.154]:10086 ([192.168.1.154]:10086)' can't be established. RSA key fi...

linux总结

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

isset() 的误区

2017-12-05 00:11:40 xhs
线上代码出错了,原因是用错了 isset() ,来判断数组的key是否存在, $arr['real_boss'] = NULL; $res = isset($arr['real_boss']); var_d...

composer 命令

2018-12-21 10:16:57 xhs
#安装一个包 composer require "sunra/php-simple-html-dom-parser:1.5.2" #设置全局参数 composer config -g repo.packa...

php curl CURLOPT_CONNECTTIMEOUT_MS 不起作用

2018-12-02 19:57:01 xhs
php curl CURLOPT_CONNECTTIMEOUT_MS no effect https://stackoverflow.com/questions/14397083/php-curl-curlop...

ES学习

2019-06-18 10:39:25 xhs
删除索引 curl -XDELETE 192.168.1.95:9200/*2020.06*,*2020.07*,*2020.08* { "query": { "bool": { ...

git hooks 钩子使用

2018-12-29 22:31:44 xhs
进入git服务端仓库钩子目录 /home/git/repositories/blog/.git/hooks cp post-receive.sample post-receive vi post-recei...