1. View version
General lsb_release-a//Check kernel version uname-a//centos or redhatrpm-q centos-releaserpm-q redhat-release
2. Install Tomcat
Tomcat General installation directory/usr/local/tomcat, first check if there are already installed. Verify that the JDK is installed and its version java-version//if the version information is not available, you need to install the JDK first. Upload installation file SCP apache-tomcat-7.0.55.tar.gz [email protected]:/data/soft/tar-zxv-f apache-tomcat-7.0.55.tar.gz // Decompression Pack RM-RF apache-tomcat-7.0.55.tar.gz //Delete compressed package mv apache-tomcat-7.0.55 Tomcat//rename/start cd/usr/local/tomcat/ bin./start.sh//Verify that http://172.xx.xx.xx:8080/appears as normal page representative OK
3. Deploying WebService
Copy Axis2.war to/USR/LOCAL/TOMCAT/WEBAPPS/SCP Axis2.war [email protected]:/usr/local/tomcat/webapps///Run/HTTP// 172.xx.xx.xx:8080/axis2 if there is no normal screen, you may need to restart tomcattomcat/bin/shutdown.shtomcat/bin/ Startup.sh again into the WebApps found automatically added Axis2 directory, is actually a WEB app, to Web-inf to establish Pojo directory Cd/usr/local/tomcat/webapps/axis2/web-inf mkdir Pojo//copy your class. class to Pojo SCP fileservice.class [email protected]:/usr/local/tomcat/webapps/ axis2/web-inf/pojo///Test HTTP://172.XX.XX.XX:8080/AXIS2/SERVICES/FILESERVICE?WSDL If the XML content is displayed correctly, indicating success
Cond......
Erecting file upload function with WebService CentOS server (i)--tomcat