mac 下调整虚拟内存的大小

配置文件位于 /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist 打开看到 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST »

SBT 配置

sbt配置 @(scala) http://www.scala-sbt.org/0.13/tutorial/zh-cn/Library-Dependencies.html 源依赖 远程 resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots" »

aws cli 安装和s3 操作

[root@master ~]# pip install awscli [root@master ~]# aws configure AWS Access Key ID [None]: A****** AWS Secret Access Key [None]: ************* Default region name [None]: ap-northeast-1 Default »

kafka build

get clone git clone git@github.com:apache/kafka.git 安装gradle brew install gradle gradle wrapper ./gradlew jar 如果不gradle wrapper 会报错 Error: Could not find or »

hadoop群集排查

确定网络有没有问题 使用fabfile @task def check_network(): cmds = ["ping -c 1 {0}".format(i.split('@')[-1].split(':')[0]) for i in env.hosts] »

centos常用的备记

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm rpm -Uvh remi-release-6*.rpm epel-release-6* »

redis 中清除 rq 不需要的任务

import redis r = redis.Redis? r = redis.Redis(host='10.100.1.47') ## 所有的 keys keys = r.keys() # 定义匹配规则的函数 check_ip=lambda x:any([('54.223. »

centos 安装 nodejs

yum install epel-release wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -Uvh epel-release-6*.rpm yum install nodejs npm 可能需要代理 剩下各种 »

centos golang 环境

rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm cd /etc/yum.repos.d wget http://www.hop5.in/yum/el6/ »