ICode9

精准搜索请尝试: 精确搜索
首页 > 编程语言> 文章详细

数据结构与算法大全(文档) 含ACM竞赛资料

2019-03-23 14:47:55  阅读:296  来源: 互联网

标签:socket ACM MyDomainVenv 文档 ec2 home 数据结构 uwsgi user


需要学习资源,请点击开挂教学楼

需要学习资源,请点击开挂教学楼

upstream django {
    server unix:///home/ec2-user/MyDomainVenv/MyDomainWeb/site1.socket; # for a file socket
}

server {
    # the port your site will be served on
    listen      80;
    server_name .MyDomain.com;
    charset     utf-8;

    # max upload size
    client_max_body_size 75M;  

     location /ws/ {
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                proxy_pass http://unix:///home/ec2-user/MyDomainVenv/MyDomainWeb/web.socket;   
        }

    # Finally, send all non-media requests to the Django server.
    location / {
        uwsgi_pass  django;
        # the uwsgi_params file you installed
        include     /home/ec2-user/MyDomainVenv/MyDomainWeb/uwsgi_params;
    }
}

 

import os
import gevent.socket
import redis.connection
redis.connection.socket = gevent.socket
os.environ.update(DJANGO_SETTINGS_MODULE='main.settings')
from ws4redis.uwsgi_runserver import uWSGIWebsocketServer
application = uWSGIWebsocketServer()

 

/home/ec2-user/MyDomainVenv/bin/uwsgi --virtualenv /home/ec2-user/MyDomainVenv --http-socket /home/ec2-user/MyDomainVenv/MyDomainWeb/web.socket --gevent 1000 --http-websockets --workers=2 --master --module main.wsgi_websocket

 

ws://34.212.xx.123/ws/

 

ets --workers=2 --master --module main.wsgi_websocket
*** Starting uWSGI 2.0.17.1 (64bit) on [Fri Mar 22 06:27:11 2019] ***
compiled with version: 4.8.5 20150623 (Red Hat 4.8.5-28) on 22 November 2018 10:42:11
os: Linux-4.14.77-70.59.amzn1.x86_64 #1 SMP Mon Nov 12 22:02:45 UTC 2018
nodename: ip-172-31-41-78
machine: x86_64
clock source: unix
detected number of CPU cores: 1
current working directory: /home/ec2-user/MyDomainVenv/MyDomainWeb
detected binary path: /home/ec2-user/MyDomainVenv/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
your processes number limit is 3860
your memory page size is 4096 bytes
detected max file descriptor number: 1024
- async cores set to 1000 - fd table size: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /home/ec2-user/MyDomainVenv/MyDomainWeb/web.socket fd 3
Python version: 3.5.6 (default, Nov  5 2018, 20:20:10)  [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
PEP 405 virtualenv detected: /home/ec2-user/MyDomainVenv
Set PythonHome to /home/ec2-user/MyDomainVenv
Python main interpreter initialized at 0x2617640
python threads support enabled
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 31555392 bytes (30815 KB) for 2000 cores
*** Operational MODE: preforking+async ***
WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x2617640 pid: 7882 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI master process (pid: 7882)
spawned uWSGI worker 1 (pid: 7885, cores: 1000)
spawned uWSGI worker 2 (pid: 7886, cores: 1000)

 

标签:socket,ACM,MyDomainVenv,文档,ec2,home,数据结构,uwsgi,user
来源: https://blog.csdn.net/qq_31642819/article/details/88741867

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有