cleey
望着那一丝海线,若隐若现。落日下的海霞,数不尽的美,看不完的醉
centos8 + php7.4 + nginx

1.php7.4安装

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-8.rpm
yum install php74-php php74-php-fpm php74-php-phpiredis php74-php-pdo php74-php-mysql php74-php-devel php74-php-mbstring -y

2.安装nginx

yum install nginx -y

3.新增 php nginx运行账号 admin

groupadd admin
adduser admin -g admin
passwd admin

4.修改nginx运行用户为admin

vim /etc/nginx/nginx.conf
user admin;

5.修改php-fpm运行用户为admin

vim /etc/opt/remi/php74/php-fpm.d/www.conf 
user = admin
group = admin

6.启动php nginx

systemctl start  php74-php-fpm.service
systemctl start nginx.service 


参考 php74安装: https://www.cnblogs.com/alliancehacker/p/12255445.html

<< 上一篇 linux时间更新、同步 nginx正向代理-为内网提供外网代理服务 下一篇 >>
文章标签
随意 | Created At 2014 By William Clinton | Contact Me: 1619488373@qq.com | 蜀ICP备14002619号 |