01 软件工程-Server服务器

Web项目中的服务器

一、Server概述

为客户端提供各种服务的功能强大的计算机

二、访问服务器

  1. 服务器的地址----域名/IP地址
  2. 对应服务端口
  3. 服务所用协议----http/https

https: //www.baidu.com:80/
协议: // 域名:端口号 /

三、访问本地服务

  1. 安装node.js

  2. DOS命令窗口

  3. cd desktop/index

  4. DOS命令窗口开启本地服务器 :http-servar -c-1

  5. 浏览器地址栏:http://127.0.0.1:80/index.html

    ​ 或 http://localhost:80/index.html

  6. 访问本地的网页index.html

发布了104 篇原创文章 · 获赞 64 · 访问量 5395

猜你喜欢

转载自blog.csdn.net/qq_42873753/article/details/103945539