[root@VM_0_5_centos shell]# cat tomcat.sh
#!/bin/bash
rpm -ivh jdk-8u131-linux-x64_.rpm
java -version
mkdir -p /opt/tomcat1
mkdir -p /opt/tomcat2
tar zxf apache-tomcat-8.5.35.tar.gz
cp -rf apache-tomcat-8.5.35/* /opt/tomcat1
cp -rf apache-tomcat-8.5.35/* /opt/tomcat2
sed -i '22s/8005/8006/' /opt/tomcat2/conf/server.xml
sed -i '69s/8080/8081/' /opt/tomcat2/conf/server.xml
sed -i '116s/8009/8010/' /opt/tomcat2/conf/server.xml
/opt/tomcat1/bin/startup.sh
/opt/tomcat2/bin/startup.sh
shell-tomcat
最新推荐文章于 2023-08-07 10:50:41 发布