By admin, 12 五月, 2022

1. 添加软件源

见参考1。

2. 安装Nginx

yum install nginx

service nginx start

systemctl enable nginx.service

修改/etc/nginx/nginx.conf

3. 安装PHP

yum install php81 php81-php-fpm php81-php-pdo php81-php-mysqlnd php81-php-xml php81-php-gd php81-php-mbstring php81-php-pecl-zip

service php81-php-fpm start

systemctl enable php81-php-fpm.service

配置/etc/nginx/nginx.conf