gpt4 book ai didi

CakePHP 在另一个端口上运行

转载 作者:行者123 更新时间:2023-12-02 21:03:37 24 4
gpt4 key购买 nike

我安装了 CakePHP。假设我想在端口 8080 而不是端口 8765 上运行 CakePHP。我该怎么做?

我尝试使用bin/cake server 8080,但没有成功。 编辑 - 它只是仍在 8765 上运行,没有说错误。

感谢您的帮助。

最佳答案

使用帮助

所有命令都带有帮助:

-> bin/cake server --help

Welcome to CakePHP v3.x.x Console
---------------------------------------------------------------
App : src
Path: /var/www/example.dev/src/
DocumentRoot: /var/www/example.dev/webroot/
---------------------------------------------------------------
PHP Built-in Server for CakePHP
[WARN] Don't use this at the production environment

Usage:
cake server [-h] [-v] [-q] [-H] [-p] [-d]

Options:

--help, -h Display this help.
--verbose, -v Enable verbose output.
--quiet, -q Enable quiet output.
--host, -H ServerHost
--port, -p ListenPort
--document_root, -d DocumentRoot

端口是一个选项。 IE。您正在寻找的命令是:

-> bin/cake server --port=8080

Welcome to CakePHP v3.x.x Console
---------------------------------------------------------------
App : src
Path: /var/www/example.dev/src/
DocumentRoot: /var/www/example.dev/webroot
---------------------------------------------------------------
built-in server is running in http://localhost:8080/
You can exit with `CTRL-C`

关于CakePHP 在另一个端口上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37139958/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com