当前位置:网站首页>Laravel+gatewayworker completes the im instant messaging and file transfer functions (Chapter 4: server debugging errors)
Laravel+gatewayworker completes the im instant messaging and file transfer functions (Chapter 4: server debugging errors)
2022-06-26 12:21:00 【Special sword】
laravel+GatewayWorker complete IM Instant messaging and file transfer ( Chapter four : Server debugging error )
- Function introduction
- Application scenarios
- Special sections
- Chapter four : Server debugging error
- One 、 Run on the server terminal GatewayWorker Of PHP Start the command to debug the error
- Last chapter :《[3. Back end instant messaging code development and configuration item explanation ](https://blog.csdn.net/weixin_42701376/article/details/121584485)》
- Next chapter :《[5. Front and back end code development ](https://blog.csdn.net/weixin_42701376/article/details/121612367)》
Function introduction
This topic will lead you to build Imitation A letter Of Instant messaging And complete the mutual transmission of documents
Application scenarios
Practical application scenarios of this topic :
- Chat customer service : Instant messaging , Messages are transmitted to each other in real time , Send text to each other 、 Voice messages and files ;
- Small scale online auction ;
- Video live barrage ;
- The Internet of things ;
- And other functions related to real-time messages ;
Special sections
- Server configuration
- Explanation of business logic
- Back end instant messaging code development and configuration item explanation
- Server debugging error
- Front and back end code development
- Function display
Chapter four : Server debugging error
One 、 Run on the server terminal GatewayWorker Of PHP Start the command to debug the error
Let's start by visiting the previously defined IM The test page "indexA.blade.php", Please enter... In the browser address bar http://im.liutong.pro/im/indexA Visit ;
- Debugging error :

- Open the terminal to link to your server and use cd Command to enter the "/www/wwwroot/im.liutong.pro/app/GatewayWorker" Directory ( Here you see the official Demo Medium GatewayWorker You can just... Where the folder is cd Go there !)

- Execute the start service name command according to the manual , Manual address ( Start and stop ):https://www.workerman.net/doc/gateway-worker/start-and-stop.html
Usephp start.php startCommand startup service

- An error is found after executing the startup command , The error attribute is php Some dangerous functions are performed by default , We need to manually disable these functions , This process requires removing many disabled functions , I attach the form below , I don't want to take screenshots here ;

| Function name |
|---|
| pcntl_signal() |
| pcntl_fork() |
| pcntl_wait() |
| pcntl_signal_dispatch() |
| pcntl_alarm() |
How to release php Functions of disable

We deleted the disabled in the above list 5 After functions , Again using
php start.php startCommand you will get the following results ;

This indicates that the service has been started successfully , Now go back to the front page to refresh and you will get the results , This marks your websocket The link has been successful ;
If your code still reports an error or the terminal fails to start successfully , Please check the server nginx A firewall , For the convenience of demonstration, I will nginx The firewall is off ;
Be careful : If you modify php Of GatewayWorker Remember to enter the code again Project root /app/GatewayWorker Use command php start.php start Restart the service , Otherwise, the newly modified code will not take effect !
Last chapter :《3. Back end instant messaging code development and configuration item explanation 》
Next chapter :《5. Front and back end code development 》
边栏推荐
- Omni channel member link - tmall member link 3: preparation of member operation content
- 汇编语言(7)运算指令
- Cross platform members get through the two channels of brand Ren Du
- Jsonarray and jsonobject of fastjson [easy to understand]
- I want to know whether flush is a stock market? Is it safe to open a mobile account?
- Excel operation of manual moving average method and exponential smoothing method for time series prediction
- Which is safer and better for great wisdom to open an account
- 我想知道同花顺是炒股的么?在线开户安全么?
- Assembly language (7) operation instruction
- Vscode solves the problem of Chinese garbled code
猜你喜欢

HUST network attack and defense practice | 6_ IOT device firmware security experiment | Experiment 2 MPU based IOT device attack mitigation technology

AD - 将修改后的 PCB 封装更新到当前 PCB 中

This executeQuery (SQL) cannot compile classes for JSP. What is the reason?

Black squares in word

科技兴关,荣联与天津海关共建基因组数据库及分析平台
![[graduation season · advanced technology Er] I remember the year after graduation](/img/e7/8e1dafa561217b77a3e3992977a8ec.png)
[graduation season · advanced technology Er] I remember the year after graduation

Realize microservice load balancing (ribbon)

【概率论】条件概率、贝叶斯公式、相关系数、中心极限定理、参数估计、假设检验

MS17_ 010 utilization summary

Spark-day02-core programming-rdd
随机推荐
Assembly language (7) operation instruction
Spark-day03-core programming RDD operator
Five trends of member marketing of consumer goods enterprises in the future
SQL injection in Pikachu shooting range
webgame开发中的文件解密
Introduction to the strongest swarm cluster one click deployment + hydrogen bomb level container management tool
利用 Repository 中的方法解决实际问题
Vulnerability scanning and reverse osmosis of Internet anti artifact
Research on the current situation of China's modified engineering plastics market and demand forecast analysis report 2022-2028
How to calculate flops and params in deep learning
Consumer goods enterprises, four pain points of member marketing
19: Chapter 3: develop pass service: 2: get through Alibaba cloud SMS service in the program; (it only connects with Alibaba cloud SMS server, and does not involve specific business development)
Precautions for opening a securities account is it safe to open an account
Lintcode 130 · stacking
11、 Box styles and user interface
Common problems and Thoughts on member operation management
redis通过6379端口无法连接服务器
Hello! Forward proxy!
Analysis report on China's photovoltaic inverter market prospect forecast and investment strategy recommendations in 2022
AD - 将修改后的 PCB 封装更新到当前 PCB 中