?
一、安裝python3.5
1、安裝python3.5
2、安裝pip并升級到最新
下載wget --no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gz
注意:wget獲取https的時候要加上:--no-check-certificate
tar zvxf 1.5.5.tar.gz #解壓文件 cd pip-1.5.5/ python setup.py install
升級:pip install -U pip
有時安裝python3之后yum不能使用
vim /usr/bin/yum
二、安裝nginx
yum install pcre*
wge下載
tar zxvf 文件名
進入解壓目錄./configure
make && make install
啟動nginx:cd /usr/local/nginx/sbin ./nginx
三、其它
1、安裝lxml中提示出錯
??? cc tmp/xmlXPathInit88zygb3d.o -lxml2 -o a.out
??? error: command 'gcc' failed with exit status 1
??? ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ug4st9f9/lxml/setup.py';
exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /tmp/pip-waq6u8vf-record/install-record.txt --single-version-externally-managed --compile" failed with error
code 1 in /tmp/pip-build-ug4st9f9/lxml/
yum install libxslt-devel #然后重新安裝就行了。
?