手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

CentOS下配置LNMP

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

1、安装epel源

CentOS下配置LNMP

2、安装mysql 8.0源

CentOS下配置LNMP

3、安装nginx、mysql

CentOS下配置LNMP
CentOS下配置LNMP

4、安装php及相关组件

CentOS下配置LNMP

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

CentOS下配置LNMP
CentOS下配置LNMP

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

CentOS下配置LNMP
CentOS下配置LNMP

7、启动php-fpm和nginx

CentOS下配置LNMP
CentOS下配置LNMP

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

CentOS下配置LNMP
© 手抄报圈