Skip to content

Instantly share code, notes, and snippets.

环境介绍

在整个贡献代码过程中,应该牢记以下几个环境。其实绝大部分的操作都是在我们的本地电脑完成。  

- 别人的github项目A: https://github.com/rwx------/zabbix-templates  
- 我的github账号B:   https://github.com/RickieL  
- 我的本地电脑C:      local  

后面的介绍中,每个步骤的操作环境都会以[A]、[B]、[C]来标示。
@RickieL
RickieL / benchmark-commands.txt
Last active August 1, 2016 12:40 — forked from jkreps/benchmark-commands.txt
Kafka Benchmark Commands
Producer
Setup
bin/kafka-topics.sh --zookeeper hdp-241:2181 --create --topic test-rep-one --partitions 6 --replication-factor 1
bin/kafka-topics.sh --zookeeper hdp-241:2181 --create --topic test --partitions 6 --replication-factor 3
Single thread, no replication
bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=hdp-241:9092 buffer.memory=67108864 batch.size=8196
@RickieL
RickieL / launch-nmp.sh
Last active July 18, 2022 03:38 — forked from un1ko85/new_gist_file.sh
Starting and stopping NginX / MySQL / PHP-FPM on Mac OS X
#!/usr/local/bin/zsh
DirConf="/usr/local/etc"
PIDPATH="/usr/local/var/run"
PHPVersion="5.6"
MYSQL="/usr/local/bin/mysql.server"
NGINX="/usr/local/bin/nginx"
PHPFPM="/usr/local/sbin/php-fpm"
MEMCACHED="/usr/local/bin/memcached -m 24 -P $PIDPATH/memcached.pid -u root"