首先是一键安装直接报错:
换教程:搭建LNMP,步骤最详细,附源码,学不会打我-CSDN博客
mysql安装成功之后:
MySQL 启动报错:Job for mysqld.service failed because the control process exited with error code.
如果所有方法都试过之后卸载后重装可以快速解决:
参考链接:Centos7下彻底删除Mysql, 重新安装Mysql_centos7删除mysql重新安装-CSDN博客
Centos 7 安装 nginx安装,提示:c compiler cc is not found
参考链接:Centos 7 安装 nginx安装,提示:c compiler cc is not found-CSDN博客
如何解决 Nginx模块编译错误:`./configure: error: the HTTP rewrite module requires the PCRE library`
参考链接:如何解决 Nginx模块编译错误:`./configure: error: the HTTP rewrite module requires the PCRE library`_nginx 编译失败-CSDN博客
Nginx编译安装错误error: the HTTP gzip module requires the zlib library
参考链接:Nginx编译安装错误error: the HTTP gzip module requires the zlib library-CSDN博客
nginx: [alert] could not open error log file: open() "/usr/local/nginx/logs/error.log" failed (13: Permission denied)
2024/07/18 12:50:49 [notice] 52188#0: signal process started
2024/07/18 12:50:49 [alert] 52188#0: kill(49106, 1) failed (1: Operation not permitted)
参考链接:nginx报错:nginx: [alert] could not open error log file: open() “/usr/local/nginx/logs/error.log“ faile-CSDN博客
注:nginx中步骤代码如下,方便复制以免下次重新写!
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
}
location ~ .*\.php(\/.*)*$ {
fastcgi_pass 127.0.0.1:9000;
include fastcgi.conf;
fastcgi_index index.php;
}