⚠️ 重要警告:
Chrome 启动参数主要面向开发者、测试人员和高级用户,随意修改某些参数可能会影响浏览器的稳定性、安全性或性能,在不确定参数作用的情况下,请勿随意使用,特别是那些标记为 --enable- 或 --disable- 的实验性功能。

(图片来源网络,侵删)
如何使用启动参数
在 Windows、macOS 和 Linux 上,使用方法略有不同。
Windows
- 创建快捷方式:
- 右键点击桌面或 Chrome 安装目录下的
chrome.exe,选择“发送到” -> “桌面快捷方式”。 - 右键点击新创建的桌面快捷方式,选择“属性”。
- 右键点击桌面或 Chrome 安装目录下的
- 修改目标:
- 在“快捷方式”选项卡中,找到“目标”输入框。
- 通常是:
"C:\Program Files\Google\Chrome\Application\chrome.exe" - 在末尾的引号 内部 添加一个空格,然后加上你的参数。
- 示例:要以无痕模式启动,并禁用硬件加速,修改为:
"C:\Program Files\Google\Chrome\Application\chrome.exe" --incognito --disable-gpu
- 应用并关闭。
macOS
-
使用终端:
- 打开“终端”(Terminal)应用。
- 输入以下命令,将
[path_to_chrome]替换为你的 Chrome 应用路径(通常无需修改):/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --your-parameter-here
- 示例:以无痕模式启动:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --incognito
-
修改应用包:
- 右键点击 Chrome 应用,选择“显示包内容”(Show Package Contents)。
- 进入
Contents/MacOS/目录。 - 用文本编辑器打开
GoogleChrome文件(注意:没有扩展名)。 - 在
exec -a "$0" "$HERE/chrome" "$@"这一行末尾的 前面添加你的参数。 - 示例:修改后变为:
exec -a "$0" "$HERE/chrome" --incognito --disable-gpu "$@" - 保存文件(需要管理员密码)。
Linux
- 使用终端:
- 打开终端。
- 直接输入
google-chrome或/usr/bin/google-chrome,然后加上参数。 - 示例:
google-chrome --incognito
常用启动参数列表
以下是一些最常用和最实用的启动参数,按功能分类。

(图片来源网络,侵删)
A. 常用功能
| 参数 | 作用 | 示例 |
|---|---|---|
--incognito |
无痕模式启动。 | chrome.exe --incognito |
--new-window <URL> |
打开指定 URL 的新窗口。 | chrome.exe --new-window https://www.google.com |
--new-tab <URL> |
打开指定 URL 的新标签页。 | chrome.exe --new-tab https://www.google.com |
--profile-directory="Profile Name" |
启动指定名称的用户资料。 | chrome.exe --profile-directory="Profile 3" |
--force-dark-mode |
强制启用深色模式(可能需要搭配 --enable-features=WebUIDarkMode)。 |
chrome.exe --force-dark-mode |
--kiosk |
全屏/iosk 模式,常用于数字标牌或公共设备,隐藏所有 UI 元素。 | chrome.exe --kiosk https://example.com |
--start-maximized |
启动时最大化窗口。 | chrome.exe --start-maximized |
--start-fullscreen |
启动时进入全屏模式(按 Alt+F4 退出)。 | chrome.exe --start-fullscreen |
B. 调试与开发者
| 参数 | 作用 | 示例 |
|---|---|---|
--remote-debugging-port=<port> |
启用远程调试,指定端口,常用于 Selenium、Puppeteer 等自动化测试工具。 | chrome.exe --remote-debugging-port=9222 |
--auto-open-devtools-for-tabs |
自动为每个标签页打开开发者工具,调试神器! | chrome.exe --auto-open-devtools-for-tabs |
--headless |
无头模式,不显示 GUI 界面,在后台运行,常用于服务器端的自动化脚本。 | chrome.exe --headless --remote-debugging-port=9222 |
--enable-logging --v=1 |
启用详细日志记录,并设置日志级别。 | chrome.exe --enable-logging --v=1 |
C. 性能与资源
| 参数 | 作用 | 示例 |
|---|---|---|
--disable-gpu |
禁用 GPU 硬件加速,在遇到渲染问题、闪退或特定软件兼容性问题时非常有用。 | chrome.exe --disable-gpu |
--disable-software-rasterizer |
禁用光栅化,有时能解决某些 GPU 渲染问题。 | chrome.exe --disable-software-rasterizer |
--disable-extensions |
禁用所有扩展程序,用于排查扩展导致的问题。 | chrome.exe --disable-extensions |
--disable-popup-blocking |
禁用弹窗拦截。 | chrome.exe --disable-popup-blocking |
--proxy-server=<host:port> |
设置代理服务器。 | chrome.exe --proxy-server=127.0.0.1:8080 |
--no-sandbox |
禁用沙盒。极其危险! 会降低安全性,仅在特定开发或测试环境中使用(如 Docker)。 | chrome.exe --no-sandbox |
D. 隐私与安全
| 参数 | 作用 | 示例 |
|---|---|---|
--disable-infobars |
禁用所有信息栏(如“Chrome 正由自动软件控制”)。 | chrome.exe --disable-infobars |
--disable-notifications |
禁用网站通知权限请求。 | chrome.exe --disable-notifications |
--disable-sync |
禁用同步功能。 | chrome.exe --disable-sync |
--disable-component-update |
禁用组件自动更新。 | chrome.exe --disable-component-update |
如何查看所有可用参数
Chrome 的参数列表是动态变化的,并且很多是内部或实验性的,官方不保证所有参数的稳定性。
命令行查看
在终端或命令提示符中运行以下命令,会 Chrome 会列出所有已知的参数并立即退出。
# Windows chrome.exe --help # macOS / Linux google-chrome --help
访问官方列表
Google 维护着一个官方的参数列表,但请注意,这个列表可能不是最新的,并且很多内部参数不会出现在这里。
- Google Chrome Command Line Switches List (这是最全面、最著名的第三方列表,非常推荐)
- Chromium Code Search (开发者源码,最权威但难读)
实战场景示例
场景:开发网页时,需要频繁查看和调试,不想每次手动点开开发者工具。

(图片来源网络,侵删)
- 解决方案:创建一个快捷方式,参数设置为
--auto-open-devtools-for-tabs。 - 效果:每次用这个快捷方式打开 Chrome,所有新打开的标签页都会自动带上开发者工具。
场景:运行自动化测试脚本(如 Selenium),需要在后台运行。
- 解决方案:命令为
chrome.exe --headless --remote-debugging-port=9222。 - 效果:Chrome 会在后台静默运行,并通过 9222 端口接受外部指令,非常适合自动化。
场景:怀疑某个扩展导致浏览器卡顿或崩溃。
- 解决方案:创建一个快捷方式,参数设置为
--disable-extensions。 - 效果:启动的 Chrome 将不加载任何扩展,你可以判断是否是扩展引起的问题。
希望这份详细的指南对你有帮助!
