如何运行两个孤立的firefox实例?

fly*_*ire 16 ubuntu firefox

出于测试目的,我想在ubuntu上安装两个不同的firefox实例 - 这样他们就不会共享cookie.(我想同时以两个不同的用户身份登录我们的网站).我怎么做?我是用Firefox和Opera做的,但我更喜欢Firefox(因为是firebug).

小智 21

还有一种可能性.您可以执行以下firefox命令:

firefox -P "profile-name" -no-remote
Run Code Online (Sandbox Code Playgroud)

该选项-no-remote禁用firefox新实例的远程控制(即使用命令控制),逻辑上它还意味着-new-instance运行新的隔离实例所需的选项.也可以只使用选项-new-instance:

firefox -P "profile-name" -new-instance
Run Code Online (Sandbox Code Playgroud)

创建新的个人资料

firefox -ProfileManager -new-instance
Run Code Online (Sandbox Code Playgroud)

该命令将打开一个交互式窗口,您可以在其中管理现有配置文件并创建新配置文件 您还可以使用选定的配置文件启动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.
Run Code Online (Sandbox Code Playgroud)


kro*_*old 5

查看配置文件参数,如下所示:

firefox -profile "E:\myprofile"
Run Code Online (Sandbox Code Playgroud)

抱歉,Windows文件路径;)如果您将主要配置文件复制到其他配置文件,您将启动一个单独的实例.

  • 没有!与常识相反,它不会启动**单独的**firefox实例.例如,您仍然可以使用"Ctrl + Q"关闭两个窗口.请使用`firefox -new-instance -p"E:\ myprofile`. (13认同)