訪問帶有fastdfs-nginx-module插件的nginx時,報錯: request is sent, wait for response...的解決辦法

最近在準備一個容器:裏面有單機部署的fastdfs,使用nginx提供http訪問。今天重啓容器,wget http://172.17.0.2:8888/index.html時報告request is sent, wait for response…。

進入容器,ps aux | grep nginx
可以看到master進程啓動,而worker進程沒有啓動。

查看nginx日誌,最後一行寫着:/usr/fastdfs-nginx-module/src//common.c, line: 103, section: group1, you must set parameter: group_name!。

在網上搜到需要修改mod_fastdfs.conf這個fastdfs-nginx-module插件的配置文件,放開[group1]節的註釋
[group1]
group_name=group1
storage_server_port=23000
storage_path_count=1
store_path0=/fastdfs/storage

重新啓動nginx:
nginx -s stop
nginx
ps aux | grep nginx
可以看到master進程和worker進程都啓動了。

wget http://172.17.0.2:8888/index.html
下載成功。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章