クリーンなセントを取得したら、Python環境を初期化し、いくつかのコマンドと問題を記録するだけです
自動的に初期化するスクリプトにすることもできますが、もちろん、dockerを使用することをお勧めします
基本環境
sudo adduser newuser
sudo passwd newuser
sudo /usr/sbin/visudo
newuser ALL=NOPASSWD: ALL
参照文書
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmsudo rpm -Uvh epel-release-6*.rpm
パケットアドレス
wget http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-13.ius.centos6.noarch.rpmsudo rpm -Uvh ius-release-1.0-13.ius.centos6.noarch.rpm
sudo yum install python27
sudo yum install python27-devel
then
curl https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py | sudo /usr/bin/python2.7-
curl https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py | sudo /usr/bin/python2.7-extra: install python3
sudo yum install python34u python34u-devel
sudo pip install virtualenv
ssh-keygen -t rsa
add ~/.ssh/id_rsa.pub to git or github
sudo yum install git
sudo yum install mysql
sudo yum install mysql-devel*-y
sudo yum install mysql-server
sudo /sbin/service mysqld start
sudo yum install redis
sudo yum install rabbitmq-server
問題
[ Errno 14] Peer cert cannot be verified or peer cert invalid
add "sslverify=false"in/etc/yum.conf
pip error: ImportError: cannot import name HTTPSHandler
yum install openssl openssl-devel -y
see in sof
MySQL-python
_ mysql.c:2642: error: initializer element is not constant
_ mysql.c:2642: error:(near initialization for ‘_mysql_ResultObject_memberlist[0].offset’)
_ mysql.c: In function ‘_mysql_ConnectionObject_getattr’:
_ mysql.c:2666: error: ‘_mysql_ConnectionObject’ has no member named ‘open’
error: command 'gcc' failed with exit status 1----------------------------------------
Command "/data/home/alarm/env/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-HgXAQT/MySQL-python/setup.py';exec(compile(getattr(tokenize,'open', open)(__file__).read().replace('\r\n','\n'), __file__,'exec'))" install --record /tmp/pip-kx2cSu-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1in/tmp/pip-build-HgXAQT/MySQL-python
処理: `` `javascript
yum install mysql-devel
Recommended Posts