, 强>
版本介绍强>
linuxCentOS 6.6版本(最终)apache httpd-2.2.31
mysqlmysql-5.5.48 phpphp-5.3.27
<强> apache安装强>
yum install -y zlib zlib-devel openssl-devel mkdir /服务器/tools - p cd /服务器/工具/wget http://mirrors.sohu.com/apache/httpd-2.2.31.tar.gz tar zxvf  httpd-2.2.31.tar.gz cd httpd-2.2.31/configure \ ——prefix=/应用程序/apache2.2.31 \ ——enable-deflate \ ——enable-expires \ ——enable-headers \ ——enable-modules=most \ ——enable-so \ ——with-mem=worker \ ——enable-rewrite 使 make 安装 ln -s /应用程序/apache2.2.31/,/应用程序/apache sed 小姐,“s@ # ServerName www.example.com: 80 @servername 127.0.0.1:80@g ',/应用程序/apache/conf/httpd . conf/应用程序/apache/bin/apachectl -t /应用程序/apache/bin/apachectl start netstat -lntup | grep 80年 lsof 小姐:80 ps ef | grep httpd
<强> 强>
yum install ncurses-devel libaio-devel - y cd /服务器/工具/wget https://cmake.org/files/v2.8/cmake-2.8.8.tar.gz tar zxf  cmake-2.8.8.tar.gz cd cmake-2.8.8 ./configure gmake gmake 安装
安装mysql
useradd mysql -s /sbin/nologin - m cd /服务器/工具/wget http://mirrors.sohu.com/mysql/mysql - 5.5/- mysql 5.5.48.tar.gz tar zxvf  mysql-5.5.48.tar.gz cd mysql-5.5.48 cmake 。 -DCMAKE_INSTALL_PREFIX=/应用程序/mysql-5.5.48 \ -DMYSQL_DATADIR=/应用程序/mysql-5.5.48/data \ -DMYSQL_UNIX_ADDR=/应用程序/mysql-5.5.48/tmp/mysql.sock \ -DDEFAULT_CHARSET=utf8 \ -DDEFAULT_COLLATION=utf8_general_ci \ -DEXTRA_CHARSETS=gbk, gb2312, use utf8, ascii \ -DENABLED_LOCAL_INFILE=提醒\ -DWITH_INNOBASE_STORAGE_ENGINE=1 \ -DWITH_FEDERATED_STORAGE_ENGINE=1 \ -DWITH_BLACKHOLE_STORAGE_ENGINE=1 \ -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 \ -DWITHOUT_PARTITION_STORAGE_ENGINE=1 \ -DWITH_FAST_MUTEXES=1 \ -DWITH_ZLIB=bundled \ -DENABLED_LOCAL_INFILE=1 \ -DWITH_READLINE=1 \ -DWITH_EMBEDDED_SERVER=1 \ -DWITH_DEBUG=0 make ,, make 安装 ln -s /应用程序/mysql-5.5.48/,/应用程序/mysql
初始化数据库
cd /服务器/工具/mysql-5.5.48/支持文件//bin/cp my-small.cnf 。/etc/my . cnf中所做 chown -R  mysql.mysql /应用程序/mysql/应用程序/mysql/脚本/mysql_install_db ——basedir=/应用程序/mysql datadir=/应用程序/mysql/data ——用户=mysql cd /服务器/工具/mysql-5.5.48/支持文件/cp mysql.server /etc/摆在mysqld chmod + x /etc/摆在mysqld chkconfig ——add mysqld chkconfig mysqld /应用程序/mysql/bin/mysqld_safe 及 sleep 1 echo ,“出口 路径=" $路径:/应用程序/mysql/bin/钡淖4亲4?/etc/profile source /etc/profile mysqladmin -u  root password 123456年的
安装依赖
yum install zlib-devel libxml2-devel libjpeg-turbo-devel libiconv-devel - y yum install  freetype-devel libpng-devel  gd-devel libcurl-devel libxslt-devel  libtool-ltdl-devel openssl-devel - y cd /服务器/工具/wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz tar zxvf  libiconv-1.14.tar.gz libiconv cd 1.14 。/configure ——prefix=/usr/地方/libiconv 使 make 安装 cd wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel - 6.回购 ls /etc/yum.repos.d/yum install  -y libmcrypt-devel yum install  mhash mhash-devel  mcrypt - y
安装php-5.3.27
cd /服务器/工具/wget http://cn2.php.net/distributions/php-5.3.27.tar.gz tar zxvf  php-5.3.27.tar.gz cd php-5.3.27/configure \ ——prefix=/应用程序/php5.3.27 \ ——with-apxs2=/应用程序/apache/bin/apxs \ ——使用mysql=/应用程序/mysql \ ——with-xmlrpc \ ——with-openssl \ ——with-zlib \ ——with-mcrypt \ ——with-mhash \ ——with-mcrypt \ ——with-mhash \ ——with-freetype-dir \ ——with-gd \ ——with-jpeg-dir \ ——with-png-dir \ ——with-iconv-dir=/usr/地方/libiconv \ ——enable-short-tags \ ——enable-sockets \ ——enable-zend-multibyte \ ——enable-soap \ ——enable-mbstring \ ——enable-static \ ——enable-gd-native-ttf \ ——with-curl \ ——with-xsl \ ——enable-ftp \ ——with-libxml-dir 使 make 安装 ln -s /应用程序/php5.3.27 /应用程序/php cp php.ini-production /应用程序/php/lib/php。null null null null null null null null null null null null null null null null null null null null null null null null灯快速安装