要更改内置 Web 服务器端口,请在 Settings/Preferences 对话框中展开 Build, Execution, Deployment 节点并选择 Debugger < -S2>。使用 "Built-in server port" spin box 来设置新的值。