如下操作配置Nginx1.0.10+PHP5.3.8(fastcgi)+Mysql5.5.17
使用Nginx官方源,Epel扩展库和remi源,remi源基于epel,必须先安装epel源,remi包含php-fpm,mysql-server5.5,如果只需要php-fpm可以单独安装php-fpm后禁用此源. rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm 安装EPEL源: (64位系统) rpm -ivh http://download.fedora.redhat.com/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm(32位系统) rpm -ivh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm 安装REMI源: rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm 开启REMI,编辑 /etc/yum.repos.d/remi.repo vi /etc/yum.repos.d/remi.repo修改 enable=1esc:wq yum -y install nginx mysql-server php-fpm php-cli php-pdo php-mysql php-mcrypt php-mbstring php-gd php-tidy php-xml php-xmlrpc php-pear php-pecl-memcache php-eaccelerator
1.根据需求配置 nginx配置文件 (本博文不提供具体配置) (责任编辑:IT) |