简体   繁体   English

无法在 443 端口上运行 Live Server

[英]Unable to run Live Server on 443 port

I am using LiveServer plugin of VSCode to serve my pages.我正在使用 VSCode 的 LiveServer 插件来提供我的页面。 I need to serve it on port number 443. Below is my settings.json file.我需要在端口号 443 上提供它。下面是我的 settings.json 文件。

{
  "liveServer.settings.port": 443,
  "liveServer.settings.root": "/",
  "liveServer.settings.CustomBrowser": "chrome",
  "liveServer.settings.https": {
    "enable": true,
    "cert": "xxx/https/localhost.pem",
    "key": "xxx/localhost.key",
    "passphrase": "XXXXXX"
  } }

As soon as i run the server the port number automatically changes from 443 to 444. Can anyone please help?一旦我运行服务器,端口号会自动从 443 更改为 444。有人可以帮忙吗? Thanks in advance.提前致谢。

If you use Windows, open Powershell and enter the following command: Test-NetConnection -computername google.de -port 443如果使用 Windows,打开 Powershell 并输入以下命令:Test-NetConnection -computername google.de -port 443

This will test if the port is free or not这将测试端口是否空闲

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在实时服务器上运行 Reactjs 代码的代码 - Unable to run code of Reactjs code on live server VS code Live Server Web 扩展服务器端口8080问题 - VS code Live Server Web Extension server port 8080 problem VS Code Live Server 扩展无法使用端口 6566 - VS Code Live Server extension not working port 6566 vscode live Server 端口设置不起作用,并且总是在 localhost:8081 中打开 - vscode live Server port settings not work, and always open in localhost:8081 关于我无法在 vscode 中使用实时服务器,因为它显示服务器是在端口启动的: - About I can't use live server in vscode because it show server is started at port: 当应用程序通过实时服务器运行时,localStorage 是否应该保留? - Should localStorage persist when application is run via live server? 是否可以始终在我的服务器上运行 remote-ssh 和 Live Share? - If it is possible to always run remote-ssh and Live Share on my server? 在 Visual Studio 代码的实时服务器扩展中,在哪里设置 liveServer.settings.port 的值 - Where to set value of liveServer.settings.port in live server extension of visual studio code VS Live Share 和 Live Server - VS Live Share and Live Server 如何在 chrome 浏览器中使用实时服务器运行我的 html 文件 - how can i run my html file with live server in chrome browser
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM