2023年11月11日;
1, 安装 nginx (nginx version: nginx/1.xx)
yum install nginx
nginx -v
nginx version: nginx/1.xx
nginx -v
nginx version: nginx/1.xx
2, 安装 php php-fpm (PHP 7.4.33 (cli) (built: Oct 31 2022 10:36:05) ( NTS ))
yum install php php-fpm php-mysqli php-mbstring
php -version
PHP 7.4.33 (cli) (built: Oct 31 2022 10:36:05) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies
php -version
PHP 7.4.33 (cli) (built: Oct 31 2022 10:36:05) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies
3, 安装 mariadb
yum install mariadb
yum install mariadb-server
yum install mariadb-server
4, 启动 nginx mariadb
systemctl start nignx
systemctl start mariadb
systemctl start mariadb
5.给数据库 root用户设置密码
mysqladmin -u root -p password '123456';