当前位置:网站首页>使用serve搭建本地服务器
使用serve搭建本地服务器
2022-08-04 03:33:00 【richest_qi】
使用serve搭建本地服务器,步骤如下:
- 全局安装serve:
npm install -g serve。 - 启动本地服务器:
serve 目标文件夹。serve target-folder。serve target-folder -p 3030。-p,指定端口。serve target-folder -C。-C或者--core,可跨域。
相关链接
NPM包serve 的简单使用, 当web服务器
node环境使用serve把文件夹发布为一个静态服务,并解决服务跨域问题
边栏推荐
- 马尔可夫链
- 系统太多,多账号互通如何实现?
- Deep Learning (3) Classification Theory Part
- docker+bridge+redis master-slave+sentry mode
- 6口全千兆二层网管型工业以太网交换机千兆2光4电光纤自愈ERPS环网交换机
- XSS相关知识点
- 怎样提高网络数据安全性
- 基于Qt的目录统计QDirStat
- new Date converts strings into date formats Compatible with IE, how ie8 converts strings into date formats through new Date, how to replace strings in js, and explain the replace() method in detail
- Hey, I had another fight with HR in the small group!
猜你喜欢

C language -- ring buffer

LeetCode每日一题(2285. Maximum Total Importance of Roads)

Architecture of the actual combat camp module three operations

外卖店优先级

机器学习之视频学习【更新】

Y86. Chapter iv Prometheus giant monitoring system and the actual combat, Prometheus storage (17)

数据安全峰会2022 | 美创DSM获颁“数据安全产品能力验证计划”评测证书
![出现504怎么办?由于服务器更新导致的博客报504错误[详细记录]](/img/e0/32d78fac04dc2deb1cb1f847a7bab5.png)
出现504怎么办?由于服务器更新导致的博客报504错误[详细记录]

小程序+新零售,玩转行业新玩法!

【医保科普】维护医保基金安全,我们可以这样做
随机推荐
tkmapper的crud示例:
C语言--环形缓存区
SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropri
本周四晚19:00知识赋能第4期直播丨OpenHarmony智能家居项目之设备控制实现
Oracle与Postgresql在PLSQL内事务回滚的重大差异
esp8266-01s刷固件步骤
汇编语言之栈
JVM的内存模型简介
Detailed analysis of scaffolding content
LeetCode每日一题(2285. Maximum Total Importance of Roads)
Functions, recursion and simple dom operations
数据安全峰会2022 | 美创DSM获颁“数据安全产品能力验证计划”评测证书
RSS订阅微信公众号初探-feed43
Based on the statistical QDirStat Qt directory
【Ryerson情感说话/歌唱视听数据集(RAVDESS) 】
如果禁用了安全启动,GNOME 就会发出警告
4-way two-way HDMI integrated business high-definition video optical transceiver 8-way HDMI high-definition video optical transceiver
uni-app 从零开始-基础模版(一)
How to read the resources files in the directory path?
一文看懂推荐系统:召回04:离散特征处理,one-hot编码和embedding特征嵌入