【问题标题】:How to run php websoket server file(server.php) on google cloud server oR AWS如何在谷歌云服务器或 AWS 上运行 php websocket 服务器文件(server.php)
【发布时间】:2019-09-22 01:49:47
【问题描述】:

我已经在谷歌云上设置了我的 php websocket 应用程序,我在运行我的 server.php 文件后使用云 shell 和 putty 终端对其进行了测试,但我想永久运行这个文件,所以我无法这样做。所以请帮忙关于它。

【问题讨论】:

  • 您好,能否提供您使用的脚本?

标签: php google-cloud-platform google-cloud-storage codeigniter-3


【解决方案1】:

我们可以讨论两个选项:

标准或 flex 的 App Engine,但 websockets 对 php 有限制。

第二个选项是Compute Engine,我们要准备环境(apache),并分配Public IP。

请查看以下链接:

https://cloud.google.com/community/tutorials/setting-up-lamp

http://socketo.me/docs/hello-world

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-11-03
    • 1970-01-01
    • 2021-01-24
    • 1970-01-01
    • 1970-01-01
    • 2021-03-05
    • 2012-01-18
    • 2020-11-02
    相关资源
    最近更新 更多