Erecting file upload function with WebService CentOS server (i)--tomcat

Source: Internet
Author: User
Tags centos server

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

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.