sh kafka bash别名bash脚本

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh kafka bash别名bash脚本相关的知识,希望对你有一定的参考价值。

kf_dir=~/sw/kafka_2.11-1.0.0

echo "...starting zookeeper..."
gnome-terminal --title="zookeeper" --geometry 80x30+1+1 \
  -e "$kf_dir/bin/zookeeper-server-start.sh $kf_dir/config/zookeeper.properties"

echo "...waiting for 5 sec..."
sleep 5

echo "...starting kafka broker 0..."
gnome-terminal --title="broker-0" --geometry 80x13+400+1 \
  -e "$kf_dir/bin/kafka-server-start.sh $kf_dir/config/server.properties"

echo "...starting kafka broker 1"...
gnome-terminal --title="broker-1" --geometry 80x13+400+380 \
  -e "$kf_dir/bin/kafka-server-start.sh $kf_dir/config/server-1.properties"

echo "...starting kafka broker 2"...
gnome-terminal --title="broker-2" --geometry 80x13+400+700 \
  -e "$kf_dir/bin/kafka-server-start.sh $kf_dir/config/server-2.properties"

-----------------------------------------------------------------------------------------------
alias cdk='cd ~/sw/kafka_2.11-1.0.0'
alias psk='ps aux | grep kafka'
alias sa='. ~/.aliases'
alias showa='alias'
alias startk='cdk; bin/kafka-server-start.sh config/server.properties'
alias startz='cdk; bin/zookeeper-server-start.sh config/zookeeper.properties'

以上是关于sh kafka bash别名bash脚本的主要内容,如果未能解决你的问题,请参考以下文章

sh bash别名

sh BASH常用别名及设置

sh Bash别名

sh git的Bash别名

sh Bash别名

sh 有用的bash别名或命令