diff --git a/plugins/tidb/index.py b/plugins/tidb/index.py index eb2e1bab2..74a6f0296 100755 --- a/plugins/tidb/index.py +++ b/plugins/tidb/index.py @@ -119,16 +119,16 @@ def getPidFile(): return tmp.groups()[0].strip() def status(): - pid_file = getPidFile() - if not os.path.exists(pid_file): - return 'stop' + # pid_file = getPidFile() + # if not os.path.exists(pid_file): + # return 'stop' # data = mw.execShell( # "ps aux|grep redis |grep -v grep | grep -v python | grep -v mdserver-web | awk '{print $2}'") # if data[0] == '': # return 'stop' - return 'start' + return 'stop' def contentReplace(content): service_path = mw.getServerDir() diff --git a/plugins/tidb/install.sh b/plugins/tidb/install.sh index ee77205c1..566cf9f28 100755 --- a/plugins/tidb/install.sh +++ b/plugins/tidb/install.sh @@ -19,8 +19,10 @@ echo "use system: ${sysName}" # cd /www/server/source/tidb/tidb-community-server-v7.5.1-linux-amd64 && ./local_install.sh -# tiup cluster deploy tidb v7.5.1 /www/server/tidb/tidb.yaml --user root -p -i /root/.ssh/id_rsa +# tiup cluster deploy tidb v7.5.1 /www/server/tidb/tidb.yaml --user root -i /root/.ssh/id_rsa +# tiup cluster deploy tidb v7.5.1 /www/server/tidb/tidb.yaml --user root -p # ssh 192.168.4.1 -l root +# useradd -d /home/tidb1 tidb1 && passwd tidb1 install_tmp=${rootPath}/tmp/mw_install.pl VERSION=$2