安装老师的书一步步完成了LNMP的安装,软件安装和测试都没问题,配置文件内容都是复制过来的。nginx解析php时502报错了,
[root@ipi html]# curl 127.0.0.1/index.php
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.10.3</center>
</body>
</html>
编辑回复