1. Open the Mac terminal and use the scp command
2. Use pwd to view the current directory path
The upload command is as follows
scp 本地文件路径 [email protected]:需要上传到服务器的路径
Only using scp is to upload a single file, scp -r uploads all the contents in the folder
3. sh or ./shutdown.sh to close tomcat, then start
4. Check whether tomcat is started
ps aux|grep tomcat
5. Delete files
rm -f /var/log/httpd/access.log
rm -rf 目录名字