A simple explanation
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
Second, 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 the 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 garbled format, 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 and 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 192.168.1.53:8080/mjserver
Add: Browser open page, text garbled adjustment.
iOS Development Network-building a local server