From 7fc5664f3e5931c699d8eff42a4f2e551fa621fb Mon Sep 17 00:00:00 2001 From: lingxiao Date: Thu, 7 Mar 2024 14:36:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=90=AF=E5=8A=A8=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/start.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) mode change 100644 => 100755 bin/start.sh diff --git a/bin/start.sh b/bin/start.sh old mode 100644 new mode 100755 index 4ddb37b2b9c..5f352fbb074 --- a/bin/start.sh +++ b/bin/start.sh @@ -1 +1,7 @@ -nohup ./vtgate --topo_implementation etcd2 --topo_global_server_address http://preglo151.etcd.jddb.com:4001 --topo_global_root /vt/global --log_dir /export/data/mysql/tmp --redact-debug-ui-queries --port 15009 --grpc_port 15999 --grpc_max_message_size 67108864 --mysql_server_port 3359 --service_map grpc-vtgateservice --cells_to_watch zyx151a --tablet_types_to_wait MASTER,REPLICA --mysql_auth_server_config_file /etc/config/acl/user2.json --cell zyx151a > /dev/null & \ No newline at end of file +LOGS_DIR="/export/log/vtgate" + +if [ ! -d $LOGS_DIR ]; then + mkdir -p $LOGS_DIR +fi + +nohup ./vtgate --topo_implementation etcd2 --topo_global_server_address http://preglo151.etcd.jddb.com:4001 --topo_global_root /vt/global --log_dir /export/log/vtgate/tmp --redact-debug-ui-queries --port 15009 --grpc_port 15999 --grpc_max_message_size 67108864 --mysql_server_port 3359 --service_map grpc-vtgateservice --cells_to_watch zyx151a --tablet_types_to_wait MASTER,REPLICA --mysql_auth_server_config_file /etc/config/acl/user2.json --cell zyx151a > /export/log/vtgate/vtgate_console.log 2>&1 & \ No newline at end of file