温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

yum安装不同的mysql,php版本

发布时间:2020-07-09 18:37:33 来源:网络 阅读:645 作者:高鹏举 栏目:MySQL数据库

1.第一步就是看linu是否安装了mysql,经过rpm -qa|grep mysql查看到centos下安装mysql

如果有安装就卸载以前低版本

rpm -qa|grep mysql

rpm -e --nodeps  mysql版本

配置下面两个源

rpm -Uvh http://mirror.steadfast.net/epel/6/i386/epel-release-6-8.noarch.rpm

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

安装mysql

yum --enablerepo=remi,remi-test list mysql mysql-server

yum --enablerepo=remi,remi-test install mysql mysql-server

启动mysql

/etc/init.d/mysqld start

设置开机启动

chkconfig --levels 345 mysqld on

重置密码

/usr/bin/mysql_secure_installation

稍后自己选择并设定密码

2.PHP

Yum安装php

rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm

yum install php70w php70w-opcache

改成56就是php5.6.30

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI