Server Software Installation memo

Source: Internet
Author: User
Tags install django

Guess what this server is doing?

0. Install and upgrade centos 5.0
# Yum check-Update
# Yum update

1. Install the SDK
Yum install libjpeg-devel zlib-devel TCL-devel FreeType-devel libevent-devel OpenSSL-devel db4-devel curl-devel PCRE-devel

2. Install SQLite
# Cd/sometemppath
# Wget http://www.sqlite.org/sqlite-3.5.2.tar.gz
# Tar xzvf sqlite-3.5.2.tar.gz
# Cd sqlite-3.5.2
#./Configure
# Make
# Make install

3. Install Python 2.5
# Cd/sometemppath
# Wget http://www.python.org/ftp/python/2.5.1/Python-2.5.1.tar.bz2
# Tar xjvf python-2.5.1.tar.bz2
# Cd Python-2.5.1
#./Configure -- enable-Unicode = ucs4
# Make
# Make install

4. Install MySQL 5.0
# Cd/sometemppath
# Wget http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.45.tar.gz/from/http://mysql.mirrors.hoobly.com/
# Tar xzvf mysql-5.0.45.tar.gz
# Cd mysql-5.0.45
# Groupadd MySQL
# Useradd-G MySQL
# Mkdir/opt/MySQL-Data
# Cflags = "-O3" cxx = GCC cxxflags = "-O3-felide-Constructors/
-Fno-exceptions-fno-rtti "./configure/
-- Prefix =/usr/local/MySQL -- enable-validator/
-- With-charset = utf8/
-- With-extra-charsets = GBK, gb2312, Latin1/
-- Localstatedir =/opt/MySQL-data/
-- With-mysqld-user = MySQL -- enable-large-files -- With-big-tables/
-- Without-Debug/
-- With-mysqld-ldflags =-all-static/
-- With-client-ldflags =-all-static/
-- Enable-thread-safe-Client
# Make
# Make install
# Cp support-files/my-medium.cnf/etc/My. CNF
# Cd/usr/local/MySQL
# Chown-r MySQL.
# Chgrp-r MySQL.
# Chown-r MySQL/opt/MySQL-Data
# Chgrp-r MySQL/opt/MySQL-Data
# Bin/mysql_install_db -- user = MySQL
# Chown-r root.
# Bin/mysqld_safe -- user = MySQL &

Add/usr/local/MySQL/bin to the path
# Vi/etc/profile
Join
Path =/usr/local/MySQL/bin: $ path
Export path
: WQ
# Source/etc/profile

Add the MySQL lib directory to the dynamic library path
# Echo "/usr/local/MySQL/lib/MySQL">/etc/lD. So. conf. d/MySQL. conf
# Ldconfig

5. Install memcached
# Cd/sometemppath
# Wget http://www.danga.com/memcached/dist/memcached-1.2.2.tar.gz
# Tar xzvf memcached-1.2.2.tar.gz
# Cd memcached-1.2.2
#./Configure -- prefix =/usr/local/memcached
# Make
# Make install

6. Install setuptools
# Cd/sometemppath
# Wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c7.tar.gz#md5=dedbf6a4f71cd6deaf13ee885054f16b
# Tar xzvf setuptools-0.6c7.tar.gz
# Cd setuptools-0.6c7
# Python setup. py install

7. Install Django
# Cd/sometemppath
# SVN Co http://code.djangoproject.com/svn/django/trunk Django-trunk
# Cd Django-trunk
# Python setup. py install

8. Install sqlalchemy
# Cd/sometemppath
# SVN Co http://svn.sqlalchemy.org/sqlalchemy/trunk sqlalchemy-trunk
# Cd sqlalchemy-trunk
# Python setup. py install

9. Install mysqldb
# Cd/sometemppath
# Wget http://nchc.dl.sourceforge.net/sourceforge/mysql-python/MySQL-python-1.2.2.tar.gz
# Tar xzvf MySQL-python-1.2.2.tar.gz
# Cd MySQL-python-1.2.2
# Python setup. py install

10. Install twisted
# Cd/sometemppath
# Wget http://tmrc.mit.edu/mirror/twisted/Twisted/2.5/Twisted-2.5.0.tar.bz2
# Tar xjvf Twisted-2.5.0.tar.bz2
# Cd twisted-2.5.0/
# Cd Zope. Interface-3.3.0
# Python setup. py install
# CD ..
# Python setup. py install

11. Install pyro
# Cd/sometemppath
# Wget http://jaist.dl.sourceforge.net/sourceforge/pyro/Pyro-3.7.tar.gz
# Tar xzvf Pyro-3.7.tar.gz
# Cd pyro-3.7
# Python setup. py install

12. Install psyco
# Cd/sometemppath
# SVN Co http://codespeak.net/svn/psyco/dist/ psyco-trunk
# Cd psyco-trunk
# Python setup. py install

13. Install Python-memcached
# Cd/sometemppath
# Wget ftp://ftp.tummy.com/pub/python-memcached/python-memcached-1.40.tar.gz
# Tar xzvf python-memcached-1.40.tar.gz
# Cd python-memcached-1.40
# Python setup. py install

* ** Install cmemcache (Python extension for libmemcache )***
# Cd/sometemppath
# Wget http://people.freebsd.org /~ Seanc/libmemcache/libmemcache-1.4.0.rc2.tar.bz2
# Tar xjvf libmemcache-1.4.0.rc2.tar.bz2
# Cd libmemcache-1.4.0.rc2
# Wget http://gijsbert.org/downloads/cmemcache/libmemcache-1.4.0.rc2.patch
# Patch-P2 <libmemcache-1.4.0.rc2.patch
#./Configure
# Make
# Make install

# Cd/sometemppath
# Wget http://gijsbert.org/downloads/cmemcache/cmemcache-0.91.tar.bz2
# Tar xjvf cmemcache-0.91.tar.bz2
# Cd cmemcache-0.91
# Python setup. py install

14. Install PIL
# Cd/sometemppath
# Wget http://effbot.org/downloads/Imaging-1.1.6.tar.gz
# Tar xzvf Imaging-1.1.6.tar.gz
# CD image-1.1.6
# Python setup. py install

15. Install flup
# Cd/sometemppath
# Wget http://www.saddi.com/software/flup/dist/flup-1.0.tar.gz
# Tar xzvf flup-1.0.tar.gz
# Cd flup-1.0
# Python setup. py install

16. Install nginx
# Cd/sometemppath
# Wget http://sysoev.ru/nginx/nginx-0.5.33.tar.gz
# Tar xzvf nginx-0.5.33.tar.gz
# Cd nginx-0.5.33
#./Configure -- prefix =/usr/local/nginx/
-- With-md5 =/usr/lib/
-- With-sha1 =/usr/lib/
-- With-http_ssl_module/
-- Without-mail_pop3_module/
-- Without-mail_imap_module/
Without-mail_smtp_module
# Make
# Make install

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.