编写uwsgi后台启动文件
生活随笔
收集整理的這篇文章主要介紹了
编写uwsgi后台启动文件
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1. 打開一個文件hello.service
vim /etc/systemd/system/hello.service2.?
[Unit] Description=uWSGI instance to serve file-redis-load After=network.target[Service] User=root Group = nginx WorkingDirectory=/var/www/demoapp Environment="PATH=/usr/local/python3/bin" ExecStart=/usr/bin/uwsgi --ini demoapp_uwsgi.ini[Install] WantedBy=multi-user.target3. 啟動
systemctl daemon-reload systemctl start hello.service systemctl stop hello.servcie systemctl restart hello.servicesystemctl enable hello.service 開機啟動
systemctl disable hello.service
?
systemctl is-enabled hello.service 查看開機是否啟動
轉載于:https://www.cnblogs.com/412013cl/p/9760049.html
總結
以上是生活随笔為你收集整理的编写uwsgi后台启动文件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: luogu P2572 [SCOI201
- 下一篇: 关于jquery-Validate