IOS: Building a local server

Source: Internet
Author: User

First, Introduction

As a professional programmer, whether you are front-end or mobile or in the background, you can try to build a local server is still very necessary, sometimes we can test some of their own data, very convenient development. In fact, the MAC is from a local server, with the command line to open the line, refer to the link:http://www.jianshu.com/p/90d5fa728861.

Of course, here can also try to follow the previous steps to build their own server, anyway, I built a successful, later can hold the test, very good ...

Attention:

The following blog post is reproduced from the top of the http://www.cnblogs.com/wendingding/p/3813436.html, I hereby thank bloggers for their articles, I gain a shallow

Here I myself also contributed to the collection of the following to create all the necessary installation packages, as follows:

Baidu Network disk sharing link is: https://pan.baidu.com/s/1pKYsMUZ Password: pb93

Second, the construction content is as follows

1. Brief description

Description: Download the relevant software in advance, and the installation directory is best installed in the full English path. If the path has a Chinese name, there may be some inexplicable problems.

Tip: Pre-prepared software

Apache-tomcat-6.0.41.tar

Eclipse-jee-kepler-sr2-macosx-cocoa-x86_64.tar.gz

Jdk-8u5-macosx-x64.dmg

2. Install and configure the local server environment (Java) steps:

<1> under document PATH, create a new folder (Netword), unzip the Eclipse archive package file

<2> Install JDK first

<3> Click Install Eclipse, set workspace, click OK.

Set up your work space

<4> Copy the pre-written server code to the working space.

<5> Import the project and import the existing project into the workspace.

<6> after importing the project, the project error and format garbled, the following adjustments.

<7> Configuration container, Apache-tomcat.

Click OK. To create a new container

Select the path of the container

The installation is displayed as follows:

<8> start the server. Start in debug mode, easy to do some debugging

Test: The server has successfully started.

<9> Deployment Program

<10> Enter the address of the server in Firefox to access the project

This completes the local server environment.

Accessing the server's resources

The local server can also be accessed using a browser on the emulator. Enter Address Localhost:8080/mjserver

Add: Browser open page, text garbled adjustment.

The following is the local server which I successfully built according to the above steps

Accessing video files on the local server: Localhost:8080/mjserver/resources/videos/minion_01.mp4

IOS: Building a local server

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.