dousiyou1058
dousiyou1058
2018-07-20 13:34

如何在停止服务器或长时间重启服务器后自动启动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?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • douqu2712 douqu2712 3年前

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

    点赞 评论 复制链接分享

相关推荐