一、apache 安装
分两条命令yum 安装:
yum -y install httpd httpd-manual mod_ssl mod_perl
yum -y install httpd httpd-devel
启动apache
systemctl start httpd.service
二、mysql 安装
下面只进行到安装mysql就结束了,mysql启动与修改密码和访问使用 阿里云教程命令
https://blog.csdn.net/zhmy_006/article/details/50888875
1输入
yum install -y mysql-server mysql mysql-devel
命令将mysql mysql-server mysql-devel都安装好
2mysql启动与修改密码和访问使用 阿里云教程命令
mysql中远程连接权限语句grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘123456‘ with grant optio报错
grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘123456‘ with grant optio
原因: mysql的版本问题,这条语句适用于MySQL8.0之前
解决: mysql8.0及以上版本需要使用以下语句:
create user root@'%' identified by '123456';
grant all privileges on *.* to root@'%' with grant option;
三、php安装
yum -y install php gd php-gd gd-devel php-xml php-common php-mbstring php-ldap php-pear php-xmlrpc
(php-mysql php-imap 这两项报错,单独拿出不安装)
linux 下 lamp卸载
https://blog.csdn.net/leo_jk/article/details/101718529
https://blog.csdn.net/ren9436/article/details/118633683