提交 1ee5dbb9 编写于 作者: P plum-lihui

[modify]

上级 cc34ba1a
......@@ -6,13 +6,17 @@ set -e
#set -x
dnodeNumber=1
serverPort=6030
while getopts "hn:" arg
while getopts "hn:p:" arg
do
case $arg in
n)
dnodeNumber=$(echo $OPTARG)
;;
p)
serverPort=$(echo $OPTARG)
;;
h)
echo "Usage: `basename $0` -n [ dnode number] "
exit 0
......@@ -24,8 +28,6 @@ do
esac
done
serverPort=6030
for ((i=2; i<=${dnodeNumber}; i++)); do
taos -s "create dnode node${i} port ${serverPort};" ||:
echo "create dnode node${i} port ${serverPort};"
......
......@@ -40,8 +40,6 @@ echo "dnodeNumber=${dnodeNumber} dataRootDir=${dataRootDir} firstEp=${firstEp}"
createTaosCfg() {
cfgFile=$1/cfg/taos.cfg
#dataDir=$1/data
#logDir=$1/log
firstEp=$2
fqdn=$3
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册