Site deployment entry (4)

$ 4. Bind domain name and server host

4.1. DNS

The purpose is to allow the DNS server to point the domain name corresponding IP addresses, when the user accesses the domain name, the domain name corresponding eventually find this ip address

Enter the domain console, as an example here to Ali cloud

Note: Because Ali cloud console revision, and the figure may console you are not the same, but the function will not change

Click resolved, go to page DNS

Click Add resolve

Fill analytical data

4.2. New Virtual Host

The new virtual host is essentially to create a Web site can store the program files folder, so that the folder is in the management of nginx, and nginx make records correspondence between a domain name and the folder, when the user access to the domain name when this server, nginx will find the corresponding directory, execute the program directory sites

In xshell execute the command:

lnmp vhost add

After executing the command, enter the desired binding domain, the domain name is your own registered and resolved, and I am here nodeing.top

Screw classroom video lessons Address: http://edu.nodeing.com

Guess you like

Origin www.cnblogs.com/dadifeihong/p/12035015.html