遇到的问题(采坑两次了…):
安装时遇到如图困难,nginx启动失败,尝试半天无果。
不要慌,继续向后面走,
- 修改 fastdfs-nginx-module 配置文件
- 拷贝 FastDFS 需要的 HTTP 配置文件
cp /usr/local/fastdfs/FastDFS/conf/http.conf /etc/fdfs/
cp /usr/local/fastdfs/FastDFS/conf/mime.types /etc/fdfs/
- 创建nginx 启动和网络访问存储服务软连接,未创建软连接启动会报错
./nginx: error while loading shared libraries: libfdfsclient.so: cannot open shared object file: No such file or directory
- 修改 nginx 配置文件
- 最重要的一步,因为我是重装,配置完以后忘记创建nginx的目录,启东时报如下错误,只需要到指定路径创建目录文件即可
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (2: No such file or directory)
nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (2: No such file or directory)
OK了