摘要:
【环境】centos7 安装: $sudo yum install redis 修改配置: 默认启动不是后台启动,需要修改,修改 /etc/redis.conf文件中的 daemonize no 改为 daemonize yes 关闭 redis-cli -h 127.0.0.1 -p 6379 s 阅读全文
摘要:
在1.10版本上单元测试时默认会启动缓存,如下关闭缓存方法:$go test -count=1 -v xxx_test.go 阅读全文
摘要:
find . "(" -name "*.m" -or -name "*.mm" -or -name "*.cpp" -or -name "*.h" -or -name "*.rss" ")" -print | xargs wc -l 阅读全文
摘要:
问题现象 默认情况下(ssh username@hostname)登录服务器并通过./a启动服务a后,关闭ssh,此时被启动的服务a也会自动关闭 问题解决 ssh登录服务器后,修改启动服务命令为:#nohup ./a启动服务a即可。 查看所有进程 #ps aux 杀掉进程 #kill <pid> 阅读全文
摘要:
转自“http://blog.csdn.net/panshiqu/article/details/53788067” Golang 支持交叉编译,在一个平台上生成另一个平台的可执行程序,最近使用了一下,非常好用,这里备忘一下。 Mac 下编译 Linux 和 Windows 64位可执行程序 Lin 阅读全文
摘要:
说明:idlist字段为数组,值为 [{"idtype":15,"id":"f4:70:ab:85:b3:6a"},{"idtype":13,"id":"864552030217876"},{"idtype":17,"id":"88d3dddf16f41b0b"},{"idtype":19,"id" 阅读全文
摘要:
已实机验证ok 环境在win7 64位上通过vmware虚拟机安装三台centos7.2,内存分配分别为6G,1G,1G其它必要软件:CM:http://archive.cloudera.com/cm5/cm/5parcel:http://archive.cloudera.com/cdh5/parc 阅读全文
摘要:
原文地址:http://blog.csdn.net/cwj649956781/article/details/37913637 mac本身安装了ssh服务,默认情况下不会开机自启 1.启动sshd服务:sudo launchctl load -w /System/Library/LaunchDaem 阅读全文
摘要:
用分号作为分隔符 function test() { echo "mkdir /opt/a; ls -l; pwd; ls -l" } 用分号作为分隔符 function test() { echo "mkdir /opt/a; ls -l; pwd; ls -l" } 阅读全文