上一页 1 2 3 4 5 6 7 8 ··· 23 下一页

2018年5月2日

摘要: 【环境】centos7 安装: $sudo yum install redis 修改配置: 默认启动不是后台启动,需要修改,修改 /etc/redis.conf文件中的 daemonize no 改为 daemonize yes 关闭 redis-cli -h 127.0.0.1 -p 6379 s 阅读全文
posted @ 2018-05-02 09:50 trako 阅读(115) 评论(0) 推荐(0) 编辑

2018年4月18日

摘要: 在1.10版本上单元测试时默认会启动缓存,如下关闭缓存方法:$go test -count=1 -v xxx_test.go 阅读全文
posted @ 2018-04-18 10:58 trako 阅读(833) 评论(0) 推荐(0) 编辑

2018年4月12日

摘要: $git reset --hard 阅读全文
posted @ 2018-04-12 09:22 trako 阅读(77) 评论(0) 推荐(0) 编辑

2018年1月16日

摘要: find . "(" -name "*.m" -or -name "*.mm" -or -name "*.cpp" -or -name "*.h" -or -name "*.rss" ")" -print | xargs wc -l 阅读全文
posted @ 2018-01-16 10:53 trako 阅读(171) 评论(0) 推荐(0) 编辑

2017年11月29日

摘要: 问题现象 默认情况下(ssh username@hostname)登录服务器并通过./a启动服务a后,关闭ssh,此时被启动的服务a也会自动关闭 问题解决 ssh登录服务器后,修改启动服务命令为:#nohup ./a启动服务a即可。 查看所有进程 #ps aux 杀掉进程 #kill <pid> 阅读全文
posted @ 2017-11-29 15:32 trako 阅读(328) 评论(0) 推荐(0) 编辑
摘要: 转自“http://blog.csdn.net/panshiqu/article/details/53788067” Golang 支持交叉编译,在一个平台上生成另一个平台的可执行程序,最近使用了一下,非常好用,这里备忘一下。 Mac 下编译 Linux 和 Windows 64位可执行程序 Lin 阅读全文
posted @ 2017-11-29 11:56 trako 阅读(423) 评论(0) 推荐(0) 编辑

2017年11月16日

摘要: 说明:idlist字段为数组,值为 [{"idtype":15,"id":"f4:70:ab:85:b3:6a"},{"idtype":13,"id":"864552030217876"},{"idtype":17,"id":"88d3dddf16f41b0b"},{"idtype":19,"id" 阅读全文
posted @ 2017-11-16 14:17 trako 阅读(298) 评论(0) 推荐(0) 编辑

2017年11月6日

摘要: 已实机验证ok 环境在win7 64位上通过vmware虚拟机安装三台centos7.2,内存分配分别为6G,1G,1G其它必要软件:CM:http://archive.cloudera.com/cm5/cm/5parcel:http://archive.cloudera.com/cdh5/parc 阅读全文
posted @ 2017-11-06 10:20 trako 阅读(194) 评论(0) 推荐(0) 编辑

2017年10月31日

摘要: 原文地址:http://blog.csdn.net/cwj649956781/article/details/37913637 mac本身安装了ssh服务,默认情况下不会开机自启 1.启动sshd服务:sudo launchctl load -w /System/Library/LaunchDaem 阅读全文
posted @ 2017-10-31 16:17 trako 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 用分号作为分隔符 function test() { echo "mkdir /opt/a; ls -l; pwd; ls -l" } 用分号作为分隔符 function test() { echo "mkdir /opt/a; ls -l; pwd; ls -l" } 阅读全文
posted @ 2017-10-31 10:39 trako 阅读(207) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 23 下一页

导航