CentOS下配置LNMP

 时间:2024-10-13 21:31:34

1、安装epel源

CentOS下配置LNMP

2、安装mysql 8.0源

CentOS下配置LNMP

3、安装nginx、mysql

CentOS下配置LNMPCentOS下配置LNMP

4、安装php及相关组件

CentOS下配置LNMP

5、修改一下nginx配置 vi /etc/nginx/nginx.conf

CentOS下配置LNMPCentOS下配置LNMP

6、在网站目录下创建index.php文件,用于测试

CentOS下配置LNMPCentOS下配置LNMP

7、启动php-fpm和nginx

CentOS下配置LNMPCentOS下配置LNMP

8、打开浏览器,访问IP/index.php,可以看到PHP相关的信息了

CentOS下配置LNMP
  • CentOS下LNMP环境配置
  • centOS如何安装lnmp环境
  • centos/linux下安装搭建lnmp环境
  • 【CentOS】 LNMP集成环境 的 安装 与 配置
  • Linux源码安装lnmp
  • 热门搜索
    挂烫机怎么用 我的世界酿造台怎么做 肚子疼怎么回事 水银温度计打碎了怎么处理 cpu使用率100怎么办 电子报怎么做 怎么做红烧肉 张僧繇怎么读 橡皮英语怎么读eraser 日语怎么说