第一步:python
yum install binutils openssl-devel swigdocker
env SWIG_FEATURES="-cpperraswarn -includeall -D__`uname -m`__ -I/usr/include/openssl" pip install M2Cryptoapp
-----------------------------------------------------------------------------url
第二步:ip
替換鏡像倉庫,否則下載不了ssl
http://mirrors.aliyun.com/pypi/simple/openssl
easy_install:在~/.pydistutils.cfg配置文件中寫入以下內容:requests
[easy_install]pip
index_url = http://e.pypi.python.org/simpleio
pip:在~/.pip/pip.conf配置文件中寫入:
[global]
index-url = http://e.pypi.python.org/simple
----------------------------------------------------------------------------
第三步
python-pip install docker-registry
cp config/config_sample.yml config/config.yml
最後啓動:
nohup gunicorn --access-logfile - --error-logfile - -k gevent -b 0.0.0.0:5000 -w 4 --max-requests 100 docker_registry.wsgi:application &