Deploy War packages for Linux tomcat, deploy JavaWeb projects for Linux Tomcat, deploy War packages for Linux, and deploy tomcatjavaweb
Deploy the War package for Linux tomcat, deploy the JavaWeb project for Linux Tomcat, and deploy the War package for Linux
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
©Copyright Yao March 6, 2017
Http://www.cnblogs.com/fanshuyao/
1. quick deployment of War packages in Linux is currently the simplest operation
1. Disable Tomcat first
Java code
- /Home/java/tomcat7/bin/shutdown. sh
2. Enter the War package storage directory (you can use the tool: SSH Secure Shell Client to transfer the War to the Linux Server)
Java code
- Cd/home/project
3. decompress the War package to the deployed project.
Java code
- Unzip-oq finance. war-d/home/java/tomcat7/webapps/finance/
Note:
Unzip-o: Do not ask the user first. After unzip is executed, overwrite the original file.
Unzip-q: No information is displayed during execution.
4. Start Tomcat after deployment
Java code
- /Home/java/tomcat7/bin/startup. sh
Ii. commands that may be used
Java code
- 1. View Tomcat Process
- Ps-ef | grep java
- 2. Killing a process (10740 is the process Pid)
- Kill-9 10740
- 3. Restart the Linux Server
- Reboot
- 4. Go to the logs directory under Tomcat, dynamically view the log file, and exit to view the log using: Ctrl + Z
- Tail-f catalina. out
- 5. Unzip the war package using the jar command
- Jar-xvf game. war
- Decompress the package to the current directory.
- 6. delete a folder instance:
- Rm-rf/var/log/httpd/access
- The/var/log/httpd/access Directory and all files and folders under it will be deleted.
- Delete all files in a folder. Do not delete this folder.
- Rm-rf/test /*
- Or enter the test Folder: cd test, and then: rm-rf *
- Delete a single folder: rmdir folder name, for example, rmdir aa
- 7. delete an instance for file use:
- Rm-f/var/log/httpd/access. log
- The file/var/log/httpd/access. log will be forcibly deleted.
Deploy the War package for Linux tomcat, deploy the JavaWeb project for Linux Tomcat, and deploy the War package for Linux
Http://www.cnblogs.com/fanshuyao/p/6508516.html
Modify favicon. ico in Tomcat in Linux
Http://www.cnblogs.com/fanshuyao/p/6489128.html
Set IP address for direct access to Linux tomcat
Http://www.cnblogs.com/fanshuyao/p/6488989.html
Linux Tomcat installation, Linux Tomcat configuration, Linux Tomcat modification memory, and Linux tomcat modification end
Http://www.cnblogs.com/fanshuyao/p/6485245.html
Download jdk in Linux
Http://www.cnblogs.com/fanshuyao/p/6227125.html
Install Jdk in Linux and Jdk in CentOS
Http://www.cnblogs.com/fanshuyao/p/6227126.html
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
©Copyright Yao March 6, 2017
Http://www.cnblogs.com/fanshuyao/