Ios_ Network _02_ build local server

Source: Internet
Author: User

Build an Apache (WEB) server and build a local network test environment for development

one, the Web server

The Web server is also known as the WWW (World WIDE Web) server, and the main function is to provide online information browsing services. a Web server is a program that can provide documentation to the requesting browser.

(1) The server is a passive program: The server responds only when a request is made by a browser running on the Internet on another computer

(2) The most commonly used Web server is the Apache and Microsoft Internet Information Server IIS

(3) A Web server is a computer with a separate IP address on the Internet

(4) A Web server is a program that resides on some type of computer on the Internet

second, network access

In iOS development, programmers only need to focus on the front-end development!

    1. Sending the request

2. Processing results

As for the details of the server backend processing data, you don't have to focus

third, the IP address and domain name of the local computer

IP Address: 127.0.0.1

is the loopback address, refers to the local machine, commonly used to test the use

No matter what program, once send data using loopback address, the protocol software returns immediately without any network transmission

Common test commands: ping 127.0.0.1

Domain name: localhost

In the computer network, localhost (local host) is a standard host name for the Loop network interface, and the corresponding IP address is 127.0.0.1

Iv. Determine if the Apache server on the local computer is started

Enter: localhost (or 127.0.0.1) in the browser address bar

Determine if the local Apache is working properly by returning the results

v. start the local Apache server

1. Start Apache Server

Open terminal, enter sudo apachectl-k start in terminal

Ios_ Network _02_ build local server

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.