NGINX发布动态页面的方法

一、建立

root@server100 html\]# vim index.php ![](https://file.jishuzhan.net/article/1784917607623692289/6a0e1752fd9ca0efdff56066ec56638d.webp) \[root@server100 html\]# pwd /usr/share/nginx/html 二、下载PHP文件 \[root@server100 conf.d\]# dnf install php.x86_64 -y 正在更新 Subscription Management 软件仓库。 无法读取客户身份 本系统尚未在权利服务器中注册。可使用 subscription-manager 进行注册。 上次元数据过期检查:17:56:23 前,执行于 2024年04月27日 星期六 18时22分55秒。 软件包 php-8.0.27-1.el9_1.x86_64 已安装。 依赖关系解决。 无需任何处理。 完毕! \[root@server100 conf.d\]# cd ../default.d/ \[root@server100 default.d\]# ls php.conf \[root@server100 default.d\]# vim php.conf \[root@server100 default.d\]# systemctl restart nginx.service ![](https://file.jishuzhan.net/article/1784917607623692289/61edcd781b7d62f06cf3862ab6484799.webp)

相关推荐
我爱钱因此会努力12 小时前
ansible自动化运维入门篇
linux·运维·服务器·centos·自动化·ansible
K_i13412 小时前
Ansible自动化部署ECS与Nginx全流程
nginx·自动化·ansible
CIb0la12 小时前
能保持精神专注的爱好能给生活带来种种积极的转变
运维·学习·生活
梁萌14 小时前
Linux安装mysql8.4.6
linux·运维·mysql安装·8.4.6
FreeBuf_15 小时前
Ubuntu内核曝严重UAF漏洞,可致攻击者获取Root权限
linux·运维·ubuntu
初学者_xuan16 小时前
零基础新手小白快速了解掌握服务集群与自动化运维(十六)集群部署模块——Keepalived双机热备
运维·自动化·github
行思理16 小时前
Dockerfile 各指令说明
运维·macos·docker·容器·php
半梦半醒*17 小时前
k8s——资源管理
linux·运维·docker·容器·kubernetes·自动化
gfdgd xi17 小时前
GXDE For deepin 25:deepin25 能用上 GXDE 了!
linux·运维·python·ubuntu·架构·bug·deepin
落世繁华18 小时前
Docker快速部署--Mysql一键初始化
运维·mysql·docker·容器·一键部署