内容简介:make修改 obj/makefile,添加找到的路径
- 解压 fastdfs-nginx-module-1.20
- 进入Nginx安装目录
- 重新配置安装包,添加fastdfs源码目录
sudo ./configure --add-module=/root/libinstall/fastdfs-nginx-module-1.20/src
make
- 报错
- 解决方案:
root@ubuntu:/home/wangsx/libinstall/download/nginx-1.10.3# find /usr/include/ -name common_define.h /usr/include/fastcommon/common_define.h
修改 obj/makefile,添加找到的路径
make&&make install
- 启动 nginx
#/usr/local/nginx/sbin/nginx root@ubuntu:/usr/local/nginx# ps -aux|grep nginx root 13860 0.0 0.0 36836 600 ? Ss 07:48 0:00 nginx: master process ./nginx root 14072 0.0 0.0 21292 928 pts/2 S+ 07:54 0:00 grep --color=auto nginx
发现worker 进程未启动
查看日志
vi ./logs/error.log
缺少配置文件 ,找到拷贝到目录下
root@ubuntu:~/libinstall/fastdfs-nginx-module-1.20/src# cp mod_fastdfs.conf /etc/fdfs/
- 修改 mod_fastdfs.conf 配置文件
保存退出:
重启nginx
root@ubuntu:/etc/fdfs# ps -aux |grep nginx root 14326 0.0 0.0 36836 604 ? Ss 08:19 0:00 nginx: master process nginx root 14331 0.0 0.0 21292 1084 pts/2 S+ 08:19 0:00 grep --color=auto nginx
依旧没有worker进程
继续看log
解决方案:
root@ubuntu:~/libinstall/fastdfs-5.11/conf# cp http.conf /etc/fdfs/ root@ubuntu:/home/wangsx/libinstall/download/nginx-1.10.3/conf# cp mime.types /etc/fdfs/
root@ubuntu:~/libinstall/fastdfs-5.11/conf# nginx -s stop root@ubuntu:~/libinstall/fastdfs-5.11/conf# nginx root@ubuntu:~/libinstall/fastdfs-5.11/conf# ps aux |grep nginx root 14740 0.0 0.0 36836 600 ? Ss 08:35 0:00 nginx: master process nginx nobody 14741 0.1 0.1 37276 3560 ? S 08:35 0:00 nginx: worker process root 14743 0.0 0.0 21292 928 pts/18 S+ 08:35 0:00 grep --color=auto nginx
OK了~
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:- springboot~添加新模块的方法
- 为nginx添加SSL支持模块
- python基础===monkeytype可以自动添加注释的模块!
- Apache添加JK模块实现tomcat负载均衡
- Flask web模板四–添加数据库模块
- NideShop 升级到 ThinkJS 3.x 和添加 admin 模块
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
数据挖掘导论
(美)Pang-Ning Tan、Michael Steinbach、Vipin Kumar / 机械工业出版社 / 2010-9 / 59.00元
本书全面介绍了数据挖掘的理论和方法,着重介绍如何用数据挖掘知识解决各种实际问题,涉及学科领域众多,适用面广。 书中涵盖5个主题:数据、分类、关联分析、聚类和异常检测。除异常检测外,每个主题都包含两章:前面一章讲述基本概念、代表性算法和评估技术,后面一章较深入地讨论高级概念和算法。目的是使读者在透彻地理解数据挖掘基础的同时,还能了解更多重要的高级主题。 本书特色 ·包含大量的图表、......一起来看看 《数据挖掘导论》 这本书的介绍吧!