Common commands for project deployment and Common commands for deployment

Source: Internet
Author: User

Common commands for project deployment and Common commands for deployment

Connect to the ssh root@172.16.2.245
Exit
View tomcat process ps-ef | grep tomcat
Go to the cd folder
File List ll

Edit the configuration file vim/usr/local/tomcat/conf/server. xml
Edit
Save wq!
Do not save and exit q!

Run chmod 777 *. sh
Start tomcat to view logs./restart. sh & tail-f logs/catalina. out
Synchronize files to scp-r on another server
View scheduled task crontab-l
Edit Scheduled task crontab-e
Scheduled restart tomcat 15 3 ***/usr/local/tomcat/restart. sh>/usr/local/tomcat-restart.out

View tail-f logs/catalina. out
Log search statistics and other grep
Grep 'exception' catalina. out
Grep 'exception' catalina. out-c


Nginx ing file vim/usr/local/nginx/conf/nginx. conf

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.