nginx 突然起不来了,查看错误日志 curl 什么也出你来
tail -f /usr/local/nginx/logs/error.log
ngx_http_fastdfs_process_init pid=4359 2023/05/13 09:31:02 [alert] 2964#0: worker process 4359 exited on signal 11 (core dumped) ngx_http_fastdfs_process_init pid=4373 2023/05/13 09:31:05 [alert] 2964#0: worker process 4373 exited on signal 11 (core dumped) ngx_http_fastdfs_process_init pid=4381 2023/05/13 09:31:08 [alert] 2964#0: worker process 4381 exited on signal 11 (core dumped) ngx_http_fastdfs_process_init pid=4393 2023/05/13 09:31:11 [alert] 2964#0: worker process 4393 exited on signal 11 (core dumped) ngx_http_fastdfs_process_init pid=4405 2023/05/13 09:31:14 [alert] 2964#0: worker process 4405 exited on signal 11 (core dumped) ngx_http_fastdfs_process_init pid=4416 2023/05/13 09:31:17 [alert] 2964#0: worker process 4416 exited on signal 11 (core dumped) ngx_http_fastdfs_process_init pid=4425 2023/05/13 09:31:20 [alert] 2964#0: worker process 4425 exited on signal 11 (core dumped) ngx_http_fastdfs_process_init pid=4436 2023/05/13 09:31:23 [alert] 2964#0: worker process 4436 exited on signal 11 (core dumped) ngx_http_fastdfs_process_init pid=4444
先说原因和解决方法:
原因是,我前几天安装了FastDFS nginx编译的时候添加了 fastdfs-nginx-module
导致nginx在启动时去找fastdfs然而我的 fdfs没起来。。。。
解决:启动
fdfs_trackerd /etc/fdfs/tracker.conf start fdfs_storaged /etc/fdfs/storage.conf start netstat -antp|grep fdfs
起来之后nginx就正常了。
再次请求就ok了