CentOS7添加epel源和remi源支持PHP7.1

添加epel源:
rpm -vih http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm

添加remi源:
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
或者是下载:
wget http://rpms.remirepo.net/enterprise/remi.repo
wget http://rpms.remirepo.net/enterprise/remi-safe.repo

yum clean all && yum makecache

安装PHP7.1: 
yum-config-manager --enable remi-php71
yum -y install php php-opcache
完成后添加PHP常用扩展:
yum -y install php-mysql php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-soap curl curl-devel
安装Nginx:
yum -y install nginx nginx-mod-http-perl nginx-mod-stream nginx-filesystem nginx-mod-mail nginx-mod-http-image-filter nginx-all-modules nginx-mod-http-geoip nginx-mod-http-xslt-filter

你可能感兴趣的:(操作系统)