Skip to content

cloudorz/apple2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coding

#### redis  #####
## install redis 
# emerge redis
## configuage
# vi /etc/redis
  aemonize yes
  appendfsync no
## run server ####
#redis-server /etc/redis.conf

## python redis-py
#pip install redis
#pip install hiredis # c instantce for redis
#pip install ooredis # friendly using for python object

detail: http://redis.io/commands

#### supervisor #####
#pip install supervisor
## config
#vi /etc/supervisord.conf
[program:tornado_apple]
command=/data/web/tornado_env/bin/python /data/web/apple/launch.py --port=80%(process_num)02d
process_name=%(program_name)s-80%(process_num)02d
numprocs=4
directory=/data/web/apple/
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/tmp/super_help.log


[program:tornado_offset]
command=/data/web/tornado_env/bin/python /data/web/location_offset/launch.py --port=8008
process_name=%(program_name)s
numprocs=1
directory=/data/web/location_offset/
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/tmp/super_offset.log

detail: http://supervisord.org/

# start rest MQ server
pip install twisted
cd restmq
python setup.py install

./restmq_server

About

乐帮第二版 api service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published