3 Star 1 Fork 2

rplees / tomcat-shell

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
install-tomcat-8.sh 587 Bytes
一键复制 编辑 原始数据 按行查看 历史
rplees 提交于 2016-08-10 13:47 . add shell install-tomcat-8.sh
#!/bin/sh
. ./config.sh "$@"
LOCAL_TOMCAT_INSTALL_DIR="/usr/local/apache-tomcat-8/"
REMOTE_TOMCAT_INSTALL_DIR=LOCAL_TOMCAT_INSTALL_DIR
#创建logs目录
if [ ! -d "$LOCAL_TOMCAT_INSTALL_DIR" ]; then
echo "请确保本地${LOCAL_TOMCAT_INSTALL_DIR}有tomcat的安装文件...."
else
#)上传项目代码、配置脚本
for ser in ${MM_SERVERS};do
if ssh root@${ser} test -e $REMOTE_TOMCAT_INSTALL_DIR; then
echo "服务器已经有安装的tomcat8,将跳过."
else
echo "安装tomcat8到${ser}"
scp -r $LOCAL_TOMCAT_INSTALL_DIR root@${ser}:/usr/local/
fi
done
fi
Shell
1
https://gitee.com/rplees/tomcat-shell.git
git@gitee.com:rplees/tomcat-shell.git
rplees
tomcat-shell
tomcat-shell
master

搜索帮助