Shell脚本 centOS7中自动安装Tomcat7
2017-07-25 08:33
951 查看
#切换 sduo su tomcat_dir="/usr/local/tomcat" #创建tomcat文件夹 if [ ! -d "$tomcat_dir" ]; then mkdir $tomcat_dir fi cd $tomcat_dir #远程获取tomcat if [ ! -d "apache-tomcat-7.0.79.tar.gz" ]; then wget https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-7/v7.0.79/bin/apache-tomcat-7.0.79.tar.gz fi #解压 tar -xvf apache-tomcat-7.0.79.tar.gz #改变端口 port 8080 to 80 sed -i 's/8080/80/' apache-tomcat-7.0.79/conf/server.xml #赋予./权限 chmod u+x *.sh #启动 cd $tomcat_dir/apache-tomcat-7.0.79/bin ./startup.sh
相关文章推荐
- 实用脚本----Linux下Jdk和Tomcat自动安装shell脚本总结
- 实用脚本----Linux下Jdk和Tomcat自动安装shell脚本总结
- Linux系统tomcat自动安装shell脚本
- 自动安装多个tomcat shell脚本
- shell脚本自动 进行配置免密登录,安装java环境,安装tomcat
- Centos7安装配置tomcat 9并设置自动启动
- RHEL自动安装zookeeper的shell脚本
- centos7 lamp+nginx搭建(附自动安装脚本)
- zabbix agentd客户端插件Shell一键自动安装脚本
- mac shell脚本自动安装指定apk到安装android手机
- RHEL自动安装zookeeper的shell脚本
- Linux通用KVM自动安装Shell脚本(兼容所有Linux发行版/CentOS/Ubuntu)
- Shell脚本实现自动安装zookeeper
- shell脚本实现自动创建模拟器、启动模拟器、自动安装apk并进行monkey测试
- shell脚本 tomcat自动备份发布war包
- Linux一键安装tomcat的shell脚本
- 检测tomcat运行状态,自动重启TOMCAT脚本SHELL
- Linux下使用shell脚本自动监控重启tomcat
- shell脚本_自动安装mysql
- Shell脚本--自动部署tomcat应用服务