Shell script, automating the release of the Tomcat Project "Go"

Source: Internet
Author: User

Shell scripts, automating the release of Tomcat project scripts,

1. vko2c_auto_build_by_scp.sh

File contents:

#---------------------Start---------------------#

#封装shutdown函数, close the Tomcat service

#封装kill函数, force the process of shutting down Tomcat

# Call Close function with Project backup

# using expect, use SCP free password, remote copy Root.war package

# Tomcat launcher with realistic boot log

#---------------------End---------------------#

2. Test scripts

#chmod +x vko2c_auto_build_by_scp.sh

#./vko2c_auto_build_by_scp.sh Tomcat_xiaoyuan

3. Using aliases

#./vko2c_auto_build_by_scp.sh

# #名字有点长, input is inconvenient, we can use alias processing

To view an existing alias

#alias

Then in execution, it can be done (the name of the above has been changed)

#vko2c_build Tomcat_xiaoyuan

To this, our automatic release of the foot of the completed, hope that everyone write their own, practice a practice, and improve together.

Turn from:

Shell scripting, automating the release of the Tomcat project-today's headline (toutiao.com)
http://toutiao.com/a6320300161852817666/

Shell script, automating the release of the Tomcat Project "Go"

Related Article

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.