一些Centos Python生产环境的部署命令
拿到一台干净的centos之后, 初始化Python环境, 一些命令和问题记录而已
可以搞成脚本自动初始化, 当然, 用docker更好
基础环境
1. 创建用户
sudo adduser newuser sudo passwd newuser
设置授权不需要输入密码
sudo /usr/sbin/visudo newuser ALL=NOPASSWD: ALL
pip
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
5. virtualenv
sudo pip install virtualenv
6. gen ssh key
ssh-keygen -t rsa add ~/.ssh/id_rsa.pub to git or github
一些服务
问题
[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
相关推荐
YENCSDN 2020-11-17
lsjweiyi 2020-11-17
houmenghu 2020-11-17
Erick 2020-11-17
HeyShHeyou 2020-11-17
以梦为马不负韶华 2020-10-20
lhtzbj 2020-11-17
夜斗不是神 2020-11-17
pythonjw 2020-11-17
dingwun 2020-11-16
lhxxhl 2020-11-16
坚持是一种品质 2020-11-16
染血白衣 2020-11-16
huavhuahua 2020-11-20
meylovezn 2020-11-20
逍遥友 2020-11-20
weiiron 2020-11-16