当前位置:网站首页>Start the Nacos server of shell script

Start the Nacos server of shell script

2022-06-11 06:52:00 [email protected]

1、 Upper script command

prepare.sh:

#!/bin/bash
// File and save in a directory 
wget -O /home/shell/nacos-server-1.3.2.tar.gz https://handson.oss-cn-shanghai.aliyuncs.com/nacos-server-1.3.2.tar.gz
// Extract files to -C The directory specified later 
tar -xzvf /home/shell/nacos-server-1.3.2.tar.gz -C /home/shell/
// perform nacos The startup script 
sh /home/shell/nacos/bin/startup.sh -m standalone

2、 Execute script command

sh ~/prepare.sh
原网站

版权声明
本文为[[email protected] micro fatty]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206110649304372.html