[uwsgi]
emperor = /etc/uwsgi/vassals
ini= :app1
[app1]
socket = :9090
socket = /dev/shm/uwsgi.sock
processes = 10
master = true
cat >/lib/systemd/system/emperor.uwsgi.service <<EOF
[Unit]
Description=uWSGI Emperor
After=syslog.target
[Service]
ExecStart=/usr/bin/uwsgi --ini /etc/uwsgi/emperor.ini
# Requires systemd version 211 or newer
RuntimeDirectory=uwsgi
Restart=always
KillSignal=SIGQUIT
Type=notify
StandardError=syslog
NotifyAccess=all
[Install]
WantedBy=multi-user.target
root@router:~#netstat -tunlp|grep :9090
tcp 0 0 0.0.0.0:9090 0.0.0.0:* LISTEN 31117/uwsgi
root@router:~#ll /dev/shm/uwsgi.sock
srwxr-xr-x. 1 root root 0 10月 9 05:16 /dev/shm/uwsgi.sock=