确认你是administrator用户,不然memcache无法启动

官网Python插件地址: https://pypi.python.org/pypi
安装Python: python-2.7.12.msi
配置Python环境变量: C:\Python27;C:\Python27\Scripts;
修改编码: sitecustomize.py 把这个文件copy到C:\Python27\Lib\site-packages目录下(内容:# encoding=utf8 import sys reload(sys) sys.setdefaultencoding('utf8'))
VC编译工具: VCForPython27.msi
升级pip: pip install --upgrade pip
升级setuptools: pip install --upgrade setuptools
安装pip特定版本gevent: pip install gevent==1.0.2
安装Flask: pip install Flask
安装pyOpenSSL: pip install pyOpenSSL
安装service_identity: pip install service_identity


安装Firefly: Firefly-master.zip解压进入目录,cmd运行,python setup.py build python setup.py install
安装pywin32: pywin32-220.win32-py2.7.exe运行该文件
安装gtwisted.core: gtwisted-master.zip解压进入目录,cmd运行,python setup.py build python setup.py install
安装protobuf2.5.0: protobuf-2.5.0.zip和protoc-2.5.0-win32.zip,然后把protoc-2.5.0-win32.zip里的protoc.exe放到protobuf-2.5.0\src\下。
切换到protobuf-2.5.0\python ,执行指令 python setup.py build, python setup.py test, python setup.py install

安装memcache: 运行createMemcacheService1.bat createMemcacheService2.bat createMemcacheService3.bat(sc create memcached1 binPath= "C:\memcached-win32-1.4.4-14\memcached\memcached.exe -d runservice -m 512 -p 11211" start= auto DisplayName= "memcached1")
memcache注册表路径: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\memcache
查看memcache服务: 打开任务管理器的服务查找memcache是否开启
查看已经开启的端口号: netstat -a

affinity (0.1.0)
attrs (16.0.0)
cffi (1.7.0)
click (6.6)
cryptography (1.4)
dbutils (1.1)
enum34 (1.1.6)
firefly (1.3.3dev-r0)
Flask (0.11.1)
gevent (1.0.2)
greenlet (0.4.10)
gtwisted (0.2.0a0)
idna (2.1)
ipaddress (1.0.16)
itsdangerous (0.24)
Jinja2 (2.8)
MarkupSafe (0.23)
mysql-python (1.2.5)
pip (8.1.2)
protobuf (2.5.0)
pyasn1 (0.1.9)
pyasn1-modules (0.0.8)
pycparser (2.14)
pyOpenSSL (16.0.0)
python-memcached (1.58)
pywin32 (220)
service-identity (16.0.0)
setuptools (25.1.6)
six (1.10.0)
twisted (16.3.0)
Werkzeug (0.11.10)
zope.interface (4.2.0)


创建项目:
设定资源目录: Mark Directory as Sources Root

运行服务器nginx

 

posted on 2017-01-18 14:26  shuangxinye  阅读(189)  评论(0编辑  收藏  举报