Python环境安装

更新系统环境

yum update -y && yum install gcc openssl-devel lrzsz libffi-devel python-devel openssl-devel libxslt-devel libxml2-devel telnet sar mlocate  gcc+ gcc-c++ bzip2 git flex bison clang libpcap-devel libXext libXrender fontconfig libfontconfig.so.1 libXtst make -y

安装python

cd /root/soft && wget http://git_yunsee.vuln.cn/haoqiangjian/yunxi_data_manage/raw/master/soft/Python-3.6.5.tar.xz && tar -xvJf Python-3.6.5.tar.xz && cd Python-3.6.5 && ./configure --prefix=/usr/local/python3.6 --with-ssl && make && make install && ln -sf /usr/local/python3.6/bin/pip3 /usr/bin/pip3 && ln -sf /usr/local/python3.6/bin/python3.6 /usr/bin/python3

pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn celery==4.3.0 redis requests bs4
ln -sf /usr/local/python3.6/bin/celery /usr/bin/celery
ln -sf /usr/local/python3.6/bin/gunicorn /usr/bin/gunicor

安装常用工具

yum install epel-release -y && yum install htop supervisor -y

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注