CentOS yum 安装PHP7.2

Last modified date

Comments: 0

  1. 如果之前已经安装我们先卸载一下
yum -y remove php*

 

  1. 由于linux的yum源不存在php7.x,所以我们要更改yum源
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

 

  1. yum 安装php72w和各种拓展,选自己需要的即可
yum -y install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml

 

rpm -ivh mysql-community-release-el7-5.noarch.rpm

 

yum install mysql-community-server

 

修改配置文件skip-grant-tables –登录无需密码
开启远程访问
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
FLUSH PRIVILEGES;

 

admin

发表评论

电子邮件地址不会被公开。 必填项已用*标注

Post comment