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

 

posted @ 2019-05-11 13:31  任国强  阅读(373)  评论(0编辑  收藏  举报