zoukankan      html  css  js  c++  java
  • win7 配置Firefly

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

    官网Python插件地址: https://pypi.python.org/pypi
    安装Python: python-2.7.12.msi
    配置Python环境变量: C:Python27;C:Python27Scripts;
    修改编码: sitecustomize.py 把这个文件copy到C:Python27Libsite-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.0src下。
    切换到protobuf-2.5.0python ,执行指令 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-14memcachedmemcached.exe -d runservice -m 512 -p 11211" start= auto DisplayName= "memcached1")
    memcache注册表路径: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesmemcache
    查看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

  • 相关阅读:
    Android 解决小米手机Android Studio安装app 报错的问题It is possible that this issue is resolved by uninstalling an existi
    Android Unresolved Dependencies
    Android studio 自定义打包apk名
    Android Fragment与Activity交互的几种方式
    魅族和三星Galaxy 5.0webView 问题Android Crash Report
    Android几种常见的多渠道(批量)打包方式介绍
    Android批量打包 如何一秒内打完几百个apk渠道包
    上周热点回顾(9.30-10.6)团队
    上周热点回顾(9.23-9.29)团队
    上周热点回顾(9.16-9.22)团队
  • 原文地址:https://www.cnblogs.com/shuangxinye/p/6296616.html
Copyright © 2011-2022 走看看