You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何关闭PowerShell时不终止Notion桌面程序?

解决PowerShell启动Notion后关闭终端导致程序退出的问题

当你在PowerShell中直接运行notion时,Notion会作为PowerShell的子进程启动,父进程(PowerShell)关闭后,系统会默认终止关联的子进程,这就是Notion跟着关闭的原因。以下是几种解决方法:

  • 使用Start-Process命令启动Notion,让程序脱离当前PowerShell进程独立运行:

    Start-Process notion
    

    若环境变量未正确配置,可直接指定Notion的可执行文件路径(路径需根据你的实际安装位置调整):

    Start-Process "C:\Users\User\AppData\Local\Programs\Notion\Notion.exe"
    
  • 通过cmd /c命令启动,同样能实现进程独立:

    cmd /c notion
    
  • 若习惯直接输入notion启动,可在PowerShell配置文件中添加别名:

    1. 打开PowerShell配置文件:
      notepad $PROFILE
      
    2. 在文件中添加一行配置:
      Set-Alias notion 'Start-Process notion'
      
    3. 保存文件后重启PowerShell,之后直接输入notion即可让程序独立运行。

内容的提问来源于stack exchange,提问作者Jason

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.30 21:32:06