symfony serve 修改端口
看了一下官方文档,没找到怎么改,于是尝试了一下理所当然的参数:
symfony serve --port=9000
竟然work了。完美。
查看了一下命令行支持的参数,果然有 --port:
$ symfony serve -h
Description:
Run a local web server
Usage:
symfony local:server:start [options]
Options:
--dir=value Project directory
--allow-http Prevent auto-redirection from HTTP to HTTPS
--document-root=value Project document root (auto-configured by default)
--passthru=value Project passthru index (auto-configured by default)
--port=value Preferred HTTP port [default: 8000]
--daemon, -d Run the server in the background
--no-humanize Do not format JSON logs
--p12=value Certificate path (p12 format)
--no-tls Use HTTP instead of HTTPS