修改上传文件和初始化环境的脚本
This commit is contained in:
@@ -27,6 +27,12 @@ elif [ ${1} == 'distribute' ] ; then
|
|||||||
elif [ ${1} == 'sq1' ] ; then
|
elif [ ${1} == 'sq1' ] ; then
|
||||||
destUrl="root@sq1:/root/zyz/"
|
destUrl="root@sq1:/root/zyz/"
|
||||||
port=3737
|
port=3737
|
||||||
|
elif [ ${1} == 'sq2' ] ; then
|
||||||
|
destUrl="root@sq2:/root/zyz/"
|
||||||
|
port=3737
|
||||||
|
elif [ ${1} == 'sq3' ] ; then
|
||||||
|
destUrl="root@sq3:/root/zyz/"
|
||||||
|
port=3737
|
||||||
else
|
else
|
||||||
echo "需要一个参数指明服务器"
|
echo "需要一个参数指明服务器"
|
||||||
exit 1;
|
exit 1;
|
||||||
|
|||||||
4
scripts/envInit.sh
Executable file
4
scripts/envInit.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
|
||||||
|
apt-get install -y nodejs
|
||||||
|
npm config set registry https://registry.npm.taobao.org
|
||||||
|
npm install -g pm2
|
||||||
Reference in New Issue
Block a user