首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
swoole在线聊天室phpWebIM部署失败
可以显示首页,但是登陆后第一个弹框提示:异常:undefined,第二个弹框是:聊天服务器已关闭。 readme里写着nginx的配置: {{{ server { listen 80; server_name im.swoole.com; index index.shtml index.html index.htm index.php; root /path/to/PHPWebIM/client; location ~ .*\.(php|php5)?$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; } access_log /Library/WebServer/nginx/logs/im.swoole.com access; } }}} 但是config.php里配置的是 {{{ //监听的HOST 'host' => '0.0.0.0', //监听的端口 'port' => '9503', //WebSocket的URL地址,供浏览器使用的 'url' => 'ws://im.swoole.com:9503', //用于Comet跨域,必须设置为html所在的URL 'origin' => 'http://im.swoole.com:8888', }}} 这几个端口配置正确吗?nginx怎么会转发9000端口呢
发布于9年前 · 0 次浏览 · 来自
提问
新
新用户(手机注册)
可以显示首页,但是登陆后第一个弹框提示:异常:undefined,第二个弹框是:聊天服务器已关闭。 readme里写着nginx的配置: {{{ server { listen 80; server_name im.swoole.com; index index.shtml index.html index.htm index.php; root /path/to/PHPWebIM/client; location ~ .*\.(php|php5)?$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; } access_log /Library/WebServer/nginx/logs/im.swoole.com access; } }}} 但是config.php里配置的是 {{{ //监听的HOST 'host' => '0.0.0.0', //监听的端口 'port' => '9503', //WebSocket的URL地址,供浏览器使用的 'url' => 'ws://im.swoole.com:9503', //用于Comet跨域,必须设置为html所在的URL 'origin' => 'http://im.swoole.com:8888', }}} 这几个端口配置正确吗?nginx怎么会转发9000端口呢
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2017-04-11
新
新用户(手机注册)
9000 是php-fpm 默认端口。另外你的域名也是im.swoole.com?
赞
0
回复
2017-04-12
花
花落、若相离っ
服务端没启动或9503端口没开放
赞
0
回复
2017-04-15
m
mornone
'host' => '0.0.0.0', //监听的端口 'port' => '9503', //WebSocket的URL地址,供浏览器使用的 'url' => 'ws://im.swoole.com:9503', //用于Comet跨域,必须设置为html所在的URL 'origin' => 'http://im.swoole.com:8888', http://im.swoole.com:8888修改main.h
赞
0
回复
2017-09-24
狂
狂奔的小牛牛
楼主,你好,你这个问题解决了吗?怎么解决的?
赞
0
回复