1搭建nginx需要的安装包 -----------------------------------------------------------------------2 
2前期准备--------------------------------------------------------------------------------------------2
  2.1 检测 -----------------------------------------------------------------------------------------2
  2.2安装libiconv-1.13--------------------------------------------------------------------------2
  2.3安装libmcrypt-2.5.8.----------------------------------------------------------------------2
  2.4安装mhash-0.9.9.9-------------------------------------------------------------------------2
  2.5安装mcrypt-2.6.8--------------------------------------------------------------------------3
3安装mysql------------------------------------------------------------------------------------------3
  3.1创建用户和组--------------------------------------------------------------------------------3
  3.2安装编译--------------------------------------------------------------------------------------3
  3.3创建MySQL数据库存放目录------------------------------------------------------------3
  3.4创建myf配置文件-----------------------------------------------------------------------3
  3.5创建管理MySQL数据库的shell脚本---------------------------------------------------5
  3.6创建账户,赋予关闭的权限----------------------------------------------------------------6
4安装编译php----------------------------------------------------------------------------------------6
  4.1 编译php---------------------------------------------------------------------------------------6
  4.2编译安装PHP扩展模块--------------------------------------------------------------------7
4.2.1编译memcache--------------------------------------------------------------------------7
4.2.2编译eaccelerator-0.9.5.3--------------------------------------------------------------7
4.2.3编译PDO_MYSQL-1.0.2-------------------------------------------------------------7
4.2.4编译ImageMagick----------------------------------------------------------------------7
4.2.5编译imagick-2.2.2-----------------------------------------------------------------------7
  4.3 修改php配置文件------------------------------------------------------------------------7
  4.4配置eAccelerator加速PHP--------------------------------------------------------------8
  4.5创建www用户和组------------------------------------------------------------------------8
  4.6创建虚拟机目录-----------------------------------------------------------------------------8
  4.7创建php-fpm配置文件--------------------------------------------------------------------8
  4.8启动php-cgi进程---------------------------------------------------------------------------12
5安装编译nginx-----------------------------------------------------------------------------------12
  5.1安装Nginx所需的pcre库---------------------------------------------------------------12
  5.2安装Nginx----------------------------------------------------------------------------------12
  5.3建Nginx配置文件-------------------------------------------------------------------------12
5.4启动Nginx-----------------------------------------------------------------------------------12
5.5配置开机自动启动Nginx + PHP--------------------------------------------------------13
5.6优化Linux内核参数-----------------------------------------------------------------------13
5.7在不停止Nginx服务的情况下平滑变更Nginx配置--------------------------------13
    5.7.1检查配置文件---------------------------------------------------------------------------13
    5.7.2 nginx进程--------------------------------------------------------------------------------14
  5.8编写每天定时切割Nginx日志的脚本---------------------------------------------------14
    5.8.1创建脚本---------------------------------------------------------------------------------14
    5.8.2添加自动任务----------------------------------------------------------------------------14
6 安装编译memcached-------------------------------------------------------------------------------15
nginx 配置文件  6.1  安装编译libevent-----------------------------------------------------------------------------15
  6.2  安装编译memcached------------------------------------------------------------------------15
  6.3  启动memcached守护进程-----------------------------------------------------------------15
  6.4  php使 用测试--------------------------------------------------------------------------------15
  6.5  停止memcached服务-----------------------------------------------------------------------15

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。