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