file:// http:// ftp:// difference

Enter the path C: on my computer
to enter the C drive path

Equivalent to
file://C: 
Equivalent to
file://localhost/C:
Equivalent to
file:///C:

file:// means local file transfer protocol can access local directory files


For example, to access the shared path
, you can enter file://192.168.59.12/Media (Media is the name of the shared folder, because one computer can deploy different shared folders, so it is distinguished by the name)
or you can enter \\192.168.59.12 \Media
but cannot enter //192.168.59.12/Media This will be defaulted to http:// protocol will open a link like http://192.168.59.12/Media


http:// Hypertext Transfer Protocol, is a transfer protocol for transferring hypertext from a World Wide Web (WWW: World Wide Web) server to a local browser
. Simple web server, just type http://ip:port/ to see what's under the folder.
If you need to deploy multiple http servers in different locations on a machine, you need to ensure that the ports are unique.


ftp:// file transfer protocol, the default port is 21  
, there must be an ftp server, and then deploy the ftp site (simply speaking, select the folder and account), and then access it through the ftp://ip: port.
 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324943436&siteId=291194637