我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在停止服务器或长时间重启服务器后自动启动websocket服务器

I am using the ratchet websocket server on CentOs. The problem is it is stopped after some time. I have used the screen command to solve the problem but when server is rebooted it does not start automatically. Is there any way to start the websocket server automatically when it was stopped or killed or server was restarted?

You can use supervisord for it. It can monitor and automatically start / restart processes.

近期文章

  • ng-repeat和selected复选框
  • 联系表格PHP - 从特定电子邮件发送[重复]
  • PHP mail()返回错误
  • 从Laravel PHP调用MS SQL存储过程
  • 更新购物车Laravel
  • MySql记录插入在181822行停止
  • 如何总数列?
  • 无法根据需要评估表达式匹配
  • 在php wordpress中创建取消订阅按钮
  • 如何使用php和mysql从表中捕获ID
  • 使用PHP将多个JSON文件解析为HTML表 - 多行
  • 我想使用php变量作为值将隐藏输入的数据发送到我的验证php页面
  • 如何计算页面的meta_key?
  • 如何通过变量引导模态弹出窗口?
  • 用相同的id链接多个mysql表[重复]
  • PHPMAILER不发送选择输入
  • 有条件的Woocommerce结帐字段逻辑
  • 如何安装php单元以及如何使用它
  • Php-SSRS数据源凭证
  • 如何使用Codeigniter连接sql server数据库?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华