[Version] Centos 7 everyone pagoda mall interactive live communication services to enable Swoole Configuration Tutorial

Here are a few first put forward:
This tutorial is the best version of the pagoda panel operation, refined to extract the swoole installation tutorial (Centos articles) Everyone mall interactive live communication services to enable under linux tutorial
has been tested, if / data / config. php enabled https, there will not be successful. Behind the browser address bar will appear with a red shield. Even if the browser loads the insecure plug-ins, although the page can show the success of communication, but can not watch live on your phone
to be released in 9501 port pagoda panel [security] will be displayed after the release unused, it will be displayed to normal after the following steps success .
To release the 9501 port in the cloud server [your service provider, such as Tencent, Alibaba, Baidu ...] security group, the

1. Go to the pagoda panel - [software management] - [php5.6] - [Settings]

2. [install extensions] - [installation] Swoole

3. Once installed, click [also set within the php service] - Restart

4. Click Settings in the [phpinfo] - [View phpinfo ()], if they can see that the configuration was successful

5. Turn on the process of communication services
to modify the configuration file
root directory \ addons \ ewei_shopv2 \ Core \ socket \ socket.config.php
// set the client requests IP
the DEFINE ( 'SOCKET_CLIENT_IP', 'pjax.cc'); // set pjax.cc into your own domain name
ps: If it does not, go [here] to download!

6. The next step SSH command line, enter the total to two. First, enter the first sentence:

echo “/www/server/php/56/bin/php -f /www/wwwroot/pjax.ccs/ewei_shopv2/core/socket/server.php” >> /etc/rc.d/rc.local

There's a need for strict command path with their corresponding server has been, including the code directory, if a mistake is to fail
[because pagoda environment php default directory, we need to modify, we generally only need to modify the site's root directory , which is above the position of the piece of code pjax.cc]
enter the second sentence:

/ www / server / php / 56 / bin / php -f /www/wwwroot/pjax.cc/addons/ewei_shopv2/core/socket/server.php
there's a need for strict command path with their corresponding server has been, including code directory, if a mistake is to fail
[because pagoda environment php default directory, we need to modify, we generally only need to modify the root directory of the site, which is above the piece of code pjax.cc position]

7. Then you can see a successful connection with the communication service in the background.

Released two original articles · won praise 3 · Views 1062

Guess you like

Origin blog.csdn.net/qq_40412945/article/details/104741019