推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
j0shfan
V2EX  ›  Python

关于将 wxpy 应用运行于远程 ubuntu 主机,后台运行的问题

  •  
  •   j0shfan · Apr 6, 2020 · 2425 views
    This topic created in 2235 days ago, the information mentioned may be changed or developed.
    各位大神,小弟最近搭了一个 wxpy 应用玩玩,希望能够 24 小时运行,现在碰到一个问题就是,开始运行 wxpy 应用代码的时候需要扫微信二维码登陆,有没有什么方法能够扫完二维码可以把程序放后台运行,这样我关掉 ssh 连接后,对程序持续运行不影响。
    我是 Linux 小白,查了以下好像可以使用 nohup 来后台运行程序,但是这样的话无法看到一开始在终端里输出的二维码,nohup.out 里也没有。
    烦请指点
    wtks1
        1
    wtks1  
       Apr 6, 2020 via Android
    开个 screen 就行
    arischow
        2
    arischow  
       Apr 6, 2020 via iPhone
    简单来说,screen 或者 tmux 能满足你的需求。先打开 screen 或者 tmux,然后再像之前那样打开你的程序就可以了。
    xiri
        3
    xiri  
       Apr 6, 2020
    开个 screen 把程序挂到后台就行了
    j0shfan
        4
    j0shfan  
    OP
       Apr 6, 2020
    @wtks1 可以可以,再看教程了
    j0shfan
        5
    j0shfan  
    OP
       Apr 6, 2020
    @arischow 成了,老铁
    j0shfan
        6
    j0shfan  
    OP
       Apr 6, 2020
    @xiri 感谢回复,成功了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1635 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 16:30 · PVG 00:30 · LAX 09:30 · JFK 12:30
    ♥ Do have faith in what you're doing.