Apache server download and install and run

This article is used to prepare for the next Pull parsing and SAX parsing of XML data. The
first step is to download the Apache server
Apache server download address.
Enter this interface, click the red mark, and

still click the red mark.

Select the downloaded version

and enter the cmd
quotes. Installation path, apache is the server name, it can be changed
Quotation marks must be added

"G:\AndroidStudioTools\Apache\Apache24\bin\httpd.exe" -k install -n apache

If the following content pops up, it is successful.

Find the httpd.conf file in the conf directory. Use Notepad to open
Define SRVROOT and change it to your own installation path. The
default port number is 80, which is occupied by the system. We change it to other, then save


and click the exe file in the bin directory. Allow

this icon to appear in the taskbar, double-click the start point to

indicate a successful operation,

and then visit the test page

http://localhost:8888/

When this page is displayed, the configuration is successful.

Then the key step is to create an XML data file
. Create a data file named data.xml in the htdocs directory.

<?xml version="1.0"?>
<apps>
    <app>
     <id>1</id>
     <name>Windows</name>
     <version>1.0</version>
    </app>
    <app>
     <id>2</id>
     <name>IOS</name>
     <version>2.0</version>
  </app>
  <app>
    <id>3</id>
    <name>Windows Phone</name>
    <version>3.0</version>
 </app>
</apps>

Guess you like

Origin blog.csdn.net/News53231323/article/details/113832982