小编Jos*_*osé的帖子

nginx.service:无法从文件/run/nginx.pid读取PID:无效的参数

我正在通过https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-16-04进行工作.我已经完成了啧啧但是我得到了502错误.

我的nginx服务器块配置文件:

server {
listen 80;
server_name 198..xxx.xxx.xxx mysite.org;

location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
    root /home/deploy/mysite3;
}

location / {
    include         uwsgi_params;
    uwsgi_pass      unix:/run/uwsgi/mysite3.sock;
}
}

deploy@server:/etc/nginx/sites-enabled$ sudo systemctl status nginx
? nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2017-02-06 17:30:53 EST; 4s ago
  Process: 7374 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, …
Run Code Online (Sandbox Code Playgroud)

python django ubuntu nginx uwsgi

25
推荐指数
1
解决办法
3万
查看次数

无法使用Three.JS删除对象

我正在使用Three.JS制作一架飞机并在其上放置一些箱子我有时需要拆除所有箱子.所以我试着用以下代码来做:

for ( i = 0; i < scene.children.length; i ++ ) {
    var object = scene.children[ i ];
    if ( object != plane && object != camera) {
        scene.remove(object);
    }
}
Run Code Online (Sandbox Code Playgroud)

/ 这会杀死不是飞机或相机的每个物体;-) /

它删除了一些盒子,但不是全部= =(我怎么能删除所有盒子?问候,José

javascript 3d three.js

7
推荐指数
1
解决办法
1万
查看次数

标签 统计

3d ×1

django ×1

javascript ×1

nginx ×1

python ×1

three.js ×1

ubuntu ×1

uwsgi ×1