我安装了XAMPP 1.6.8,由于某种原因它没有用.后来实现端口80不是免费或不听.我该如何发布或免费?
非常感谢!
我停止了万维网发布服务,并将启动类型更改为禁用,并以管理员身份运行来启动网站,但收到了 EACCES。
这是权限错误吗?我读过在 linux / unix 上使用 sudo 运行网站可以解决这个问题,但是在 Windows 上呢?
编辑:我最终使用了 iisnode,因为我无法解决端口 80 上的 EACCES 错误。以下是我通过 iisnode 模块让节点服务器在 iis 上运行的步骤:
*安装iisnode(任何你想要的地方);
*为 iss 安装“URL Rewrite”插件;
*创建新网站;
*使用以下命令创建 web.config 文件:
(请在本文底部找到示例 web.config 文件)
*赋予SERVER/IIS_IUSRS对站点iis中找到的目录/虚拟目录的写权限;
*创建本地绑定;
*创建外部绑定,端口为*:80;
*确保节点的 http 侦听器设置为侦听 process.env.PORT,因为 iisnode 会将此环境变量设置为 80 以处理 http 请求;
根文件夹中的示例 web.config 文件,并假设节点服务器(在本例中称为 app.js)也位于根文件夹中。
<configuration>
<system.webServer>
<!--Tells iis that app.js is to be handled by iisnode module-->
<handlers>
<add name="iisnode" path="app.js" verb="*" modules="iisnode" /> …
Run Code Online (Sandbox Code Playgroud) 我正在使用node.js开发webrtc应用程序.当我运行命令'node server.js'时出现以下错误.
running on https://localhost:444
events.js:160
throw er; // Unhandled 'error' event
^
Error: listen EACCES 0.0.0.0:444
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at Server._listen2 (net.js:1246:19)
at listen (net.js:1295:10)`enter code here`
at Server.listen (net.js:1391:5)
at Object.<anonymous> (C:\Websites\WebRTC\server.js:16:63)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
Run Code Online (Sandbox Code Playgroud)
而我的server.js是
var fs = require('fs'),
express = require('express'),
https = require('https'),
http = require('http');
var app = express();
app.use(express.static(__dirname));
http.createServer(app).listen(444);
console.log('running on https://localhost:444');
Run Code Online (Sandbox Code Playgroud)
谢谢.
node.js ×2
windows ×2
azure ×1
javascript ×1
localhost ×1
port ×1
webrtc ×1
windows-xp ×1
xampp ×1