sfindme
sfindme
您帮我看下,我这些配置参数是否正确 我配置发布在服务器上的信息 服务器IP地址:91.208.206.38 IMServer的appsettings.json参数如下: { "Logging": { "LogLevel": { "Default": "Warning" } }, "AllowedHosts": "*", "ImServerOption": { "RedisClient": "127.0.0.1:6379,poolsize=10", "Servers": "91.208.206.38:6001", "Server": "91.208.206.38:6001" } } IMServer的launchSettings.json参数如下: { "profiles": { "imServer":...
即使我把WebApi部署到91.208.206.38:80或者91.208.206.38:6001 都是一样的错误 testindex.html:66 WebSocket connection to 'ws://91.208.206.38:6001/ws?token=b925182cd3bb4a77a6a1f432edb558242d775c950a864ea1904c99103f1222325fe3fab090984e1bbd19cd00226971ec87d7a287a5c2437985ae5a60ae1fd217' failed:
怎么配都不正确啊,这组合我都配烂了
我发布了,运行,为什么都是http://localhost:5000 IMServer信息都是: info: Microsoft.Hosting.Lifetime[14] Now listening on: http://localhost:5000 info: Microsoft.Hosting.Lifetime[14] Now listening on: https://localhost:5001 info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down. info: Microsoft.Hosting.Lifetime[0] Hosting environment: Production info: Microsoft.Hosting.Lifetime[0]...
不管我怎么改,发布运行都是下面的提示 info: Microsoft.Hosting.Lifetime[14] Now listening on: http://localhost:5000/
原来是我的服务器没开5000端口,防火墙我是没开,服务商没开5000
是不支持windows server 2012版本的服务器吗? IMServer的launchSettings.json参数如下: { "profiles": { "imServer": { "commandName": "Project", "commandLineArgs": "--urls=http://91.208.206.38:6001/" } 这个我肯定是配置了的
我安装了的,安装完就可以了吧?还需要手动配置吗?
老哥你弄好了?
终于搞定了,三个关键点 1.服务器要安装WebSocket协议,开放端口,服务商的,服务器的都要开。 2.生成的时候有可能生成了三个配置文件,导致不一样,部署到服务器的时候,使用的是appsettings.Production.json,所需要改这个文件里面的IP和端口,才能一致,三个都改一下,都试试。 appsettings.Production.json appsettings.json appsettings.Development.json 3.launchSettings.json设置不生效的时候,需要手动设置端口在 IMServer的Program.cs文件中。 Host.CreateDefaultBuilder(args) .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup() .UseUrls("http://*:6001"); //直接指定端口; });