Typically developed under Windows, now deployed to Linux:
1, the project to reach the war package (with Eclipse, Project right key-->export--> Select War file)
2, will Tomcat (with WINSCP of course you can also use SECURECRT, with SECURCRT need to build sftp (that is, upload file directory), with the put Tomcat command) to the ilunx corresponding directory
3, and then put the war package of the project under Tomcat's WebApps directory
4, Start tomcat (command:./startup.sh (Start Tomcat under Linux is. sh file instead of. bat file))
Problems encountered are as follows:
run./startup.sh is an error.
Reason: no permission to run. Sh
Solution: chmod 777 *.sh
Note: What does Linux chmod +755 and chmod +777 mean?
755 on behalf of the user on the file has read, write, execute permissions, the same group of other people have the right to execute and read, there is no write permission, the other user's permissions and the same group of people's permissions.
777 delegates, User,group, others, all have read-write and executable permissions.
Get permissions before running./startup.sh command times wrong:
This file was needed to run this program
Reason: The file requires a running environment (that is, configuring JDK environment variables)
Resolved: java_home=/usr/java/jdk1.6.0_25/(Of course this directory is installed according to its own JDK directory)
And then you run./STARTUP.SH Hint:
If prompted, the above information indicates that Tomcat started successfully!
Done, run the project, normal running!
PS: This should belong to very elementary, but for me, after all, is the first time, from the discovery of problems, to solve the problem may be some. So special to share it!