File transfer between mac and linux service

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 目录名字 

-r recurse downward, no matter how many levels of directories there are, delete them together

-f force delete directly without any prompt

6. View the tomcat log

Switch to the tomcat logs folder

tail -f catalina.out

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325026623&siteId=291194637