http://与www.开头的网站有什么区别

将http://和www.放一起比较,是没有实际意义的。

一、http协议

首先对于http://,这个其实只是一种协议;简单来说,就是先声明现在使用的是哪种方式来访问服务器上的内容。而除了http之外,还有ftp、https(http加上ssl,可以理解成http加上个安全锁)等协议方式。

举个例子:网站存储在服务器上的内容并不是我们打开网站时候的样子,而是由许多文件夹、源码文件(php、asp、jsp等)等内容组成,在服务器上的呈现方式和我们打开电脑看到硬盘上的文化是一样的。

只有使用http等相关协议,才可以在浏览器上呈现出具体的图像效果。但是倘若是使用ftp协议,那么打开出来的就是像电脑上的文件了(一般网站是打不开ftp,除非管理员开放ftp,以及提供账户密码)。

再形象一点,人是由许多的细胞构成,如果使用的是ftp协议那么看到的就是一堆细胞;只有通过http协议,才能看到完整的一个人形。

二、域名

什么是域名?

比如baidu 、poren .org之类。其中.com是域名后缀,类似的还有.cn(中国域名后缀)、.org(非盈利机构)、.net(网络组织)等等。部分行业还会加上稳定的后缀,比如edu.cn(教育类,xmu.edu.cn厦门大学)、gov.cn(政府单位,mod.gov.cn国防部)等等。

而在这些域名中,如果加上www.(比如www.sina .com),一般是指网站的主站;与之对应的比如mail.sina .com是邮箱的登录网站、news.sina .com是新浪新闻,sina.com是顶级域名,mail.sina.com而在这些域名中,如果加上www.(比如www.sina .com),一般是指网站的主站;与之对应的比如mail.sina .com是邮箱的登录网站、news.sina .com是新浪新闻,sina.com是顶级域名,mail.sina.com这些就是二级域名。如果再往后像old.mail.sina.com就是三级域名,以此类推。但不论是几级域名,在域名的前面肯定会有http://(或者https://)。

另外大家可能发现,并不是所有的网站主站都必须加上www.的,baidu .com和www.baidu .com一样都是可以用,甚至是www8.baidu .com也可以。但是为了更好收录以及出于其他方面的考虑,一般只使用其中一个作为主站域名,另外一个就使用301跳转之类的操作。对于大型的网站https://www.weidianyuedu.com 比较建议是使用www.weidianyuedu.com,至于小站倒无所谓,怎么好看怎么来。

所以总的来说,http是一种网络访问协议,网站基于这个协议来保证正常访问;www是域名组成的其中一部分(非必须),起到网站具体主机位置的作用。

最后给大家稍微讲下域名与ip。一个网站的地址其实是一个ip,比如120.77.161.212这样的形式;但是对于电话号码都记不了多少的普遍大众,记一堆ip显然更麻烦,所以就发明了方便记忆的域名来绑定ip。

这就好比家庭地址,使用家里的具体地址,显然比背经纬度更方便。
 

来源:https://www.weidianyuedu.com

cat sources.list # deb cdrom:[Ubuntu 20.04.2.0 LTS _Focal Fossa_ - Release amd64 (20210209.1)]/ focal main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://us.archive.ubuntu.com/ubuntu/ focal main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb http://us.archive.ubuntu.com/ubuntu/ focal-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://us.archive.ubuntu.com/ubuntu/ focal universe # deb-src http://us.archive.ubuntu.com/ubuntu/ focal universe deb http://us.archive.ubuntu.com/ubuntu/ focal-updates universe # deb-src http://us.archive.ubuntu.com/ubuntu/ focal-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://us.archive.ubuntu.com/ubuntu/ focal multiverse # deb-src http://us.archive.ubuntu.com/ubuntu/ focal multiverse deb http://us.archive.ubuntu.com/ubuntu/ focal-updates multiverse # deb-src http://us.archive.ubuntu.com/ubuntu/ focal-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://us.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repositor
最新发布
03-23
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值