For the company to build a test structure, requirements and really close to the environment need to install Nginx, PHP, MySQL, memcached, redis!
But only to a R720 server, there is no way, can only run all on one stage
Server model: Dell R710
Memory: 4G
Operating system: CentOS 6.4
cpu:e5520
Individual Package Versions:
Nginx-1.2.1
Php-5.4.14
Mysql-5.5.29
Memcached-1.2.8
Redis-2.6.14
Install Nginx
Some dependency packs
1 Yum install-y gcc gcc-c++ makezlib zlib-devel pcre* libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel L IBXML2 libxml2-devel glibc glibc-devel glib2 glib2-devel bzip2bzip2-devel ncurses ncurses-devel Curl Curl-devel e2fsprogs E2fsprogs-devel krb5 krb5-devel OpenSSL openssl-devel openldap openldap-devel nss_ldap openldap-clients Openldap-servers
1, installation
123 Tar zxf nginx-1.2.1.tar.gz
./configure--prefix=/usr/local/webserver/nginx/
Make && make install
2, start Nginx
1 #/usr/local/webserver/nginx/sbin/nginx
Install Mysql-5.5
1. Prepare
12345678 Groupadd MySQL
Useradd-r-G MySQL MySQL
Mkdir/usr/local/webserver/mysql
Mkdir-pv/usr/local/webserver/mysql/data
Chown mysql.mysql/usr/local/webserver/mysql/-R
Yum-y install gcc gcc-c++ ncurses-devel libtool openssl-devel bison-devel ncurses-devel libaio-devel
Tar zxf mysql-5.5.29.tar.gz
CD mysql-5.5.29
2. Install CMake First (Mysql-5.5 installation is different from previous version, need CMake compile)
1234 Tar zxf cmake-2.8.7.tar.gz
CD cmake-2.8.7
./configure
Make && make install