pecl 安装swoole怎么开启openssl

如题,通过pecl安装了swoole,现在要支持wss,怎么才能让sever支持ssl。 nginx已经配置了ssl证书

2017-08-15 17:44
0
0

seaven8

赞同来自:

[root@ vhost]# php --ri swoole

swoole

swoole support => enabled Version => 1.9.18 Author => tianfeng.han[email: mikan.tenny@gmail.com] epoll => enabled eventfd => enabled timerfd => enabled signalfd => enabled cpu affinity => enabled spinlock => enabled rwlock => enabled async http/websocket client => enabled Linux Native AIO => enabled pcre => enabled zlib => enabled mutex_timedlock => enabled pthread_barrier => enabled futex => enabled

Directive => Local Value => Master Value swoole.aio_thread_num => 2 => 2 swoole.display_errors => On => On swoole.use_namespace => 1 => 1 swoole.fast_serialize => Off => Off swoole.unixsock_buffer_size => 8388608 => 8388608

2017-08-15 17:50
0

韩天峰 - 关注外星人

赞同来自:

如果是 Nginx 代理到 Swoole,那么 Swoole 不需要配置 SSL 编译Swoole时指定--enable-openssl--with-openssl-dir可以开启SSL

2017-08-18 13:24

要回复问题请先登录注册