NAME DESCRIPTION STARS OFFICIAL AUTOMATED ubuntu Ubuntu is a Debian-based Linux operating sys… 9843 [OK] dorowu/ubuntu-desktop-lxde-vnc Docker image to provide HTML5 VNC interface … 334 [OK] rastasheep/ubuntu-sshd Dockerized SSH service, built on top of offi… 228 [OK] consol/ubuntu-xfce-vnc Ubuntu container with "headless" VNC session… 186 [OK] ubuntu-upstart Upstart is an event-based replacement for th… 99 [OK] ansible/ubuntu14.04-ansible Ubuntu 14.04 LTS with ansible 97 [OK] neurodebian NeuroDebian provides neuroscience research s… 58 [OK] 1and1internet/ubuntu-16-nginx-php-phpmyadmin-mysql-5 ubuntu-16-nginx-php-phpmyadmin-mysql-5 50 [OK] ubuntu-debootstrap debootstrap --variant=minbase --components=m… 40 [OK]
echo '#aliyun deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse echo '# tsinghua deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse' > /etc/apt/sources.list
## 配置文件 cp /etc/nginx/sites-available/default /etc/nginx/sites-available/default.bak vim /etc/nginx/sites-available/default ## 内容如下: server { listen 8000; location / { uwsgi_pass django; include /etc/nginx/uwsgi_params; } location /media { alias /home/media; } location /static { alias /static; }
}
upstream django{ server unix:///etc/workflow/workflow.sock; # server 127.0.0.1:8001; } ## 项目根目录下新建uwsgi.ini , 内容如下: # mysite_uwsgi.ini file [uwsgi]
# Django-related settings # the base directory (full path) chdir = /home # Django's wsgi file module = sinnet.wsgi # the virtualenv (full path)
# process-related settings # master master = true # maximum number of worker processes processes = 4 # the socket (use the full path to be safe socket = /etc/mailweb/mysite.sock
# ... with appropriate permissions - may be needed # chmod-socket = 664 # clear environment on exit vacuum = true socket-timeout = 20000 daemonize = /etc/mailweb/mailweb.log log-maxsize = 50000000 disable-logging = true max-requests = 5000 pidfile = /etc/mailweb/mailweb.pid