Linux中PHP的安装
1.安装epel-release
yum -y install epel-release
2.获取PHP7的yum源
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
3.清除历史版本
为了防止CentOS上面发生php冲突,最好是清除一下
yum list installed | grep php yum -y remove php*
4.安装PHP7
相关扩展包会自动一起安装
yum install -y php70w php70w-fpm
安装完成后可以用 php -v 验证一下
5.启动服务并加入开机自启
systemctl start php-fpm.service
systemctl enable php-fpm.service
 
                     
                    
                 
                    
                 
                
            
         
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号