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