*新服务器安装步骤
1. 下载python2.7.6 wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz 2. 解压缩 tar -xf Python2.7.6 3. 安装 1. cd Python2.7.6; ./configure ; make; make install 4. 替换系统自带python mv /usr/local/bin/python /usr/local/bin/python_bak; ln -s /usr/local/bin/python2.7 /usr/local/bin/python
2. 安装django1.5.4
0. wget https://www.djangoproject.com/m/releases/1.5/Django-1.5.4.tar.gz 1.解压缩 tar zxvf Django-1.5.4.tar.gz 2.安装 cd Django-1.5.4/ ; python setup.py install 3.测试 python; import django; django.VERSION 3. 安装mongoDB
0.wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.8.tgz 1.解压缩 tar zxvf mongodb-linux-x86_64-2.4.8.tgz 2.安装 mkdir -p /opt/soft/mongo ; cp -R -n mongodb-linux-x86_64-2.4.8/ /opt/soft/mongo; ln -s /opt/soft/mongo/mongodb-linux-x86_64-2.4.8/bin/mongo /usr/local/bin/ 3.配置 : sudo chown $USER /data/db vim ~/.bash_profile add : export PATH=$PATH:/opt/mongodb-linux-i686-2.4.5/bin source ~/.bash_profile
4. 安装nginx
1. 在安装nginx前,需要确保系统安装了g++、gcc、openssl-devel、pcre-devel和zlib-devel软件。安装必须软件 yum install gcc-c++; yum -y install zlib zlib-devel openssl openssl--devel pcre pcre-devel 2. 下载安装 ngxin --ver : 1.5.6 wget http://nginx.org/download/nginx-1.5.6.tar.gz tar zxvf nginx-1.5.6.tar.gz ./configure ; make ; make install ; 3. 安装好之后的位置: /usr/local/nginx/sbin/nginx /usr/local/nginx/conf/nginx.conf /usr/local/nginx/logs 4. source : export PATH=$PATH:/opt/mongodb-linux-i686-2.4.5/bin:/usr/local/nginx/sbin
5.安装easy_install
wget https://pypi.python.org/packages/source/d/distribute/distribute-0.6.49.tar.gz tar xf distribute-0.6.49.tar.gz cd distribute-0.6.49 python setup.py install easy_install --version
6. 安装pip
1.下载pip 2. easy_install pip
7. 安装python-memcached
$ wget https://pypi.python.org/packages/source/p/python-memcached/python-memcached-1.53.tar.gz --no-check-certificate $ tar zxvf python-memcached-1.53.tar.gz $ cd python-memcached-1.53/ $ python setup.py install
8. 安装uwsgi
1.pip install uwsgi 2.测试 uwsgi -- version
9. 安装MySQL-Python
0. get http://softlayer-ams.dl.sourceforge.net/project/mysql-python/mysql-python-test/1.2.4b4/MySQL-python-1.2.4b4.tar.gz 1. tar zxvf MySQL-python-1.2.4b4.tar.gz 2. cd MySQL-python-1.2.4b4.tar.gz ; python setup.py install
10 .
安装django-cas2
0. https://github.com/KTHse/django-cas2/archive/master.zip 1. unzip django-cas2-master.zip 2. cd django-cas2-master; python setup.py install
[[email protected] mongodb]# ./bin/mongod -f mongodb.conf all output going to: log/mongodb.log
====================================================================================================
欢迎来到我的博客, 本人乃互联网行业一枚小小的螺丝钉—非典型程序员妹子.
留下微信地址,方便大家和我联系
时间: 2024-11-05 20:34:03