Tomcat清理无用应用防止漏洞

mv /home/soft/apache-tomcat-7.0.92/webapps/host-manager /home/renguoqiang
mv /home/soft/apache-tomcat-7.0.92/webapps/manager /home/renguoqiang

rm -rf /home/soft/apache-tomcat-7.0.92/webapps/host-manager
rm -rf /home/soft/apache-tomcat-7.0.92_1/webapps/host-manager
rm -rf /home/soft/apache-tomcat-7.0.92_2/webapps/host-manager

rm -rf /home/soft/apache-tomcat-7.0.92/webapps/manager
rm -rf /home/soft/apache-tomcat-7.0.92_1/webapps/manager
rm -rf /home/soft/apache-tomcat-7.0.92_2/webapps/manager

ll /home/renguoqiang

ll /home/soft/apache-tomcat-7.0.92/webapps
ll /home/soft/apache-tomcat-7.0.92_1/webapps
ll /home/soft/apache-tomcat-7.0.92_2/webapps

mv /home/soft/apache-tomcat-7.0.92/webapps/host-manager /home/renguoqiangmv /home/soft/apache-tomcat-7.0.92/webapps/manager /home/renguoqiang
rm -rf /home/soft/apache-tomcat-7.0.92/webapps/host-managerrm -rf /home/soft/apache-tomcat-7.0.92_1/webapps/host-managerrm -rf /home/soft/apache-tomcat-7.0.92_2/webapps/host-manager
rm -rf /home/soft/apache-tomcat-7.0.92/webapps/managerrm -rf /home/soft/apache-tomcat-7.0.92_1/webapps/managerrm -rf /home/soft/apache-tomcat-7.0.92_2/webapps/manager
ll /home/renguoqiang
ll /home/soft/apache-tomcat-7.0.92/webappsll /home/soft/apache-tomcat-7.0.92_1/webappsll /home/soft/apache-tomcat-7.0.92_2/webapps

原文地址:https://www.cnblogs.com/rgqancy/p/10848412.html