Linux 버전:
[root@mail ~]# uname -a
Linux mail.vtata.cn 2.6.18-128.el5xen #1 SMP Wed Jan 21 11:12:42 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
[root@mail ~]# cat / etc/redhat-release
CentOS 릴리스 5.3(최종)
Python 버전:
[root@mail ~]# python
Python 2.7.5(기본값, 2013년 6월 14일, 18:21:34)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
"help", "복사오른쪽", "크레딧" 또는 "라이센스"자세한 정보
필수 프로그램을 설치하세요. Centos와 함께 제공되는 Python이 있기 때문입니다. 2.7로 업데이트하지 않으면 모듈 가져오기 오류 등의 문제가 발생합니다.
tar xvf Python-2.7.5.tgz cd Python-2.7.5 ./configure && make all && make install && make distclean mv /usr/bin/python /usr/bin/python.bak ln -sv /usr/local/bin/python2.7 /usr/bin/python sed -i s@/usr/bin/python@/usr/bin/python2.4@ /usr/bin/yum tar zxvf uwsgi-1.4.9.tar.gz cd uwsgi-1.4.9 python uwsgiconfig.py --build python setup.py install tar zxvf web.py-0.37.tar.gz cd web.py-0.37 python setup.py install이번에는 uwsgi와 nginx를 함께 사용합니다. 님이 작성한 이전 글을 읽어보세요. 파일명: webinput.py
import web import hashlib urls = ( '/','index' ) class index: def GET(self): token='shiji' sign = web.input() tmplist = [token,sign.timestamp,sign.nonce] tmplist.sort() tmpstr = "%s%s%s"%tuple(tmplist) tmpstr = hashlib.sha1(tmpstr).hexdigest() if tmpstr == sign.signature: return sign.echostr else: return None app = web.application(urls,globals()) application = app.wsgifunc()nginx를 시작한 후 uwsgi를 시작하세요. 다음:
[root@mail html]# uwsgi -s 127.0.0.1:9000 -w webinput *** Starting uWSGI 1.4.9 (64bit) on [Mon Jun 17 17:19:16 2013] *** compiled with version: 4.1.2 20080704 (Red Hat 4.1.2-44) on 17 June 2013 17:15:20 os: Linux-2.6.18-128.el5xen #1 SMP Wed Jan 21 11:12:42 EST 2009 nodename: mail.vtata.cn machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 8 current working directory: /usr/local/nginx/html detected binary path: /usr/local/bin/uwsgi uWSGI running as root, you can use --uid/--gid/--chroot options *** WARNING: you are running uWSGI as root !!! (use the --uid flag) *** *** WARNING: you are running uWSGI without its master process manager *** your processes number limit is 61234 your memory page size is 4096 bytes detected max file descriptor number: 52100 lock engine: pthread robust mutexes uwsgi socket 0 bound to TCP address 127.0.0.1:9000 fd 3 Python version: 2.7.5 (default, Jun 14 2013, 18:21:34) [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] *** Python threads support is disabled. You can enable it with --enable-threads *** Python main interpreter initialized at 0xfe30520 your server socket listen backlog is limited to 100 connections mapped 72424 bytes (70 KB) for 1 cores *** Operational MODE: single process *** WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0xfe30520 pid: 10775 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI worker 1 (and the only) (pid: 10775, cores: 1) 13712480011371460796shiji [pid: 10775|app: 0|req: 1/1] 101.226.33.171 () {34 vars in 616 bytes} [Mon Jun 17 17:19:43 2013] GET /?signature=915c123b81282828ae1eecdc202336d07dfc15d8&echostr=5889465363321509055×tamp=1371460796&nonce=1371248001 => generated 4 bytes in 2 msecs (HTTP/1.0 200) 0 headers in 19 bytes (2 switches on core 0)WeChat 공개 플랫폼 인터페이스를 열고 고급 기능에서 아래와 같이 설정합니다.
위 내용은 WeChat 공개 계정 개발자 인증: web.py와 결합된 uwsgi 단계에 대한 자세한 설명의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!

핫 AI 도구

Undresser.AI Undress
사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover
사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool
무료로 이미지를 벗다

Clothoff.io
AI 옷 제거제

Video Face Swap
완전히 무료인 AI 얼굴 교환 도구를 사용하여 모든 비디오의 얼굴을 쉽게 바꾸세요!

인기 기사

뜨거운 도구

Dreamweaver Mac版
시각적 웹 개발 도구

VSCode Windows 64비트 다운로드
Microsoft에서 출시한 강력한 무료 IDE 편집기

SublimeText3 Mac 버전
신 수준의 코드 편집 소프트웨어(SublimeText3)

안전한 시험 브라우저
안전한 시험 브라우저는 온라인 시험을 안전하게 치르기 위한 보안 브라우저 환경입니다. 이 소프트웨어는 모든 컴퓨터를 안전한 워크스테이션으로 바꿔줍니다. 이는 모든 유틸리티에 대한 액세스를 제어하고 학생들이 승인되지 않은 리소스를 사용하는 것을 방지합니다.

드림위버 CS6
시각적 웹 개발 도구
