如何在CentOS 6上通过YUM安装Nginx和PHP-FPM
1个回答
展开全部
必须卸载系统中以前安装的Apache
# yum remove httpd* php*
# yum install yum-priorities -y
# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
安装Nginx
# yum install nginx
安装PHP-FPM
# yum --enablerepo=remi install php php-fpm
# yum remove httpd* php*
# yum install yum-priorities -y
# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
安装Nginx
# yum install nginx
安装PHP-FPM
# yum --enablerepo=remi install php php-fpm
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询