安装
-
安装apache
yum list | grep http
2.安装php
yum -y install php yum -y install php-fpm
3.安装mysql
//wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm //yum localinstall mysql57-community-release-el7-8.noarch.rpm //yum install mysql-community-server yum install -y mysql-server mysql mysql-devel
设置开机启动
chkconfig mysqld on
查看是否设置开机启动成功
chkconfig --list |grep mysqld
设置root密码为 root
mysqladmin -u root password 'root'
登录数据库,输入密码登录
mysql -u root -p
进入mysql后,给root用户刷权限
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION; flush privileges;
卸载
-
卸载apache
rpm -qa|grep httpd
2.卸载php
3.卸载mysql
rpm -e --nodeps mysql-libs-5.1.52-1.el6_0.1.x86_64
- THE END -
最后修改:2020年6月5日
非特殊说明,本博所有文章均为博主原创。