搭建LAMP环境:
安装apace2.4.46并启动
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirrors.tuna.tsinghua.edu.cn/ius/ius-release-el7.rpm
yum install httpd24u -y
systemctl restart httpd
systemctl enable httpd
安装php7.3,以及一些关联性的模块,以及启动
yum install epel-release
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm -y
yum install yum-utils -y
yum install -y php73-php-fpm php73-php-cli php73-php-bcmath php73-php-gd php73-php-json php73-php-mysqlnd php73-php-opcache php73-php-pdo php73-php-snmp
systemctl enable php73-php-fpm
systemctl start php73-php-fpm
安装mysql,以及初始化
rpm -qa | grep mariadb
rpm -e mariadb-libs-5.5.65-1.el7.x86_64 --nodeps
wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
yum -y localinstall mysql57-community-release-el7-8.noarch.rpm
yum -y install mysql-community-server
systemctl start mysqld
systemctl enable mysqld
grep 'password' /var/log/mysqld.log
mysql -uroot -p
alter user root@localhost identified by 'P@ssword01';
访问:本机IP