出于测试目的,我想在 ubuntu 上安装两个不同的 firefox 实例 - 这样它们就不会共享 cookie。 (我想以不同的用户身份同时登录我们网站的两个实例)。 我怎么做? 我使用 Firefox 和 Opera,但我更喜欢 Firefox(因为有 Firebug )。
最佳答案
还有一种可能。您可以像这样执行 firefox
命令:
firefox -P "profile-name" -no-remote
选项 -no-remote
禁用新实例的远程控制(即使用 firefox
命令进行控制),逻辑上它也暗示选项 -new -instance
,这是运行新的独立实例所必需的。也可以仅使用选项 -new-instance
:
firefox -P "profile-name" -new-instance
创建新配置文件
firefox -ProfileManager -new-instance
该命令将打开一个交互式窗口,您可以在其中管理现有配置文件和创建新配置文件。您还可以使用选定的配置文件启动一个新的 Firefox 实例。请注意选项“在启动时不询问就使用选定的配置文件”,该选项默认处于选中状态,这将使选定的配置文件成为启动 firefox
时使用的默认配置文件> 没有 -P
。
帮助
摘自 firefox -help
:
-P <profile> Start with <profile>.
-ProfileManager Start with ProfileManager.
-no-remote Do not accept or send remote commands; implies -new-instance.
-new-instance Open new instance, not a new window in running instance.
关于firefox - 如何运行两个独立的 Firefox 实例?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/613917/