硬件是阿里云服务器ECS,安装阿里云提供的系统Linux CentOs7.3。LAMP环境搭建,再安装Laravel5.2框架。
1、选公认的最稳定版本CentOs6.5,可惜阿里云默认的没有提供;
LAMP安装有顺序:先安装Apache或Mysql,最后安装PHP。
yum -y install httpd httpd-manual mod_ssl mod_perl mod_auth_mysql
systemctl enable httpd.service
yum remove 文件名(可以一次多个名字,以空格分隔)
例如:yum remove -y mysql mysql mysql-server mysql-libs compat-mysql51
rpm -ivh http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
systemctl enable mysqld.service
systemctl start mysqld.service
grep 'temporary password' /var/log/mysqld.log