v2NPC
V2EX  ›  问与答

flask+paramiko 报 permission denied 错误,不知如何解决

  •  
  •   v2NPC · May 20, 2021 · 1261 views
    This topic created in 1821 days ago, the information mentioned may be changed or developed.
    用 flask+paramiko 远程启动 linux 服务器上的一个服务,直接跑脚本是 ok 的,程序确实成功启动了,但是用 flask 接口去调用的时候却报了错。
    命令: nohup *** > nohup.txt &
    错误:'bash: nohup.txt: Permission denied\n'
    3 replies    2021-05-21 09:24:07 +08:00
    v2NPC
        1
    v2NPC  
    OP
       May 20, 2021
    为啥没有回复呢
    suntorrent
        2
    suntorrent  
       May 20, 2021
    sudo?
    ik
        3
    ik  
       May 21, 2021 via iPhone
    就是没权限写入
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1159 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 18:08 · PVG 02:08 · LAX 11:08 · JFK 14:08
    ♥ Do have faith in what you're doing.