In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the knowledge of "how to turn on SSL support by Swoole WebSocket". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
The first step is to apply for a SSL certificate, which must be in pem format.
The picture shows the location of the Let's Encrypt free certificate applied for by the pagoda environment:
Linux installation openssl support:
Yum install-y openssl
Move to the Swoole installation package directory, recompile the installation, and add openssl support: (related article: source code package installation Swoole and basic use under Linux)
Phpize. / configure-- enable-openssl-with-php-config=/www/server/php/72/bin/php-config make clean make & & make install
Check that Swoole has enabled openssl support:
Php-ri swoole
Open the SSL tunnel in the Websocket server and configure the certificate path:
Ws_server.php:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.