推荐学习书目
› 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
jihuoguo
V2EX  ›  Python

django,能搞像 tomcat 那样,在 windows 上开机启动服务吗

  •  
  •   jihuoguo · Dec 29, 2018 · 4510 views
    This topic created in 2879 days ago, the information mentioned may be changed or developed.
    11 replies  •  2018-12-30 17:52:04 +08:00
    guolaopi
    guolaopi
    Dec 29, 2018
    1
    写个 BAT 开机执行一下
    xpresslink
    xpresslink
    Dec 29, 2018
    2
    这件事情,和 django 和 tomcat 都没有关系。
    你把任何可执行程序或快捷方式放到
    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
    这个目录里面就可以开机自己启动。
    还有可以添加后台服务项的方式,对于你有点难就不说了。
    xpresslink
    xpresslink
    Dec 29, 2018
    3
    win10 以前用户直接就可以看到
    开始->程序->启动
    文件夹
    hushuikun
    hushuikun
    Dec 29, 2018 via Android
    4
    把 django 程序添加到服务吧,我用的是 nssm 添加的
    singerll
    singerll
    Dec 29, 2018
    5
    组策略添加开机脚本即可
    xiangyuecn
    xiangyuecn
    Dec 29, 2018
    6
    可以用用 winsw 把任意代码程序安装成服务,我用这个写了个 nginx 的 windows 服务,github: xiangyuecn/Nginx-Windows-Service-Manager。另外还有个 Zookeeper 的,java 的,应该和 Python 类似操作
    julyclyde
    julyclyde
    Dec 29, 2018
    7
    django 只是个编程框架,并不涉及到“怎么运行”
    jihuoguo
    jihuoguo
    OP
    Dec 29, 2018
    8
    赞
    hv3s1
    hv3s1
    Dec 29, 2018
    9
    不准备用个 uwget 么...
    zhjits
    zhjits
    Dec 30, 2018
    10
    GoTop
    GoTop
    Dec 30, 2018
    11
    你需要的是开机启动 apache
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4363 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 09:06 · PVG 17:06 · LAX 01:06 · JFK 04:06
    ♥ Do have faith in what you're doing.