亚洲中字慕日产2020,大陆极品少妇内射AAAAAA,无码av大香线蕉伊人久久,久久精品国产亚洲av麻豆网站

資訊專欄INFORMATION COLUMN

網(wǎng)絡(luò)云盤項(xiàng)目-nginx添加fastdfs-模塊

yanwei / 1128人閱讀

摘要:解壓進(jìn)入安裝目錄重新配置安裝包,添加源碼目錄報(bào)錯(cuò)解決方案修改添加找到的路徑啟動(dòng)發(fā)現(xiàn)進(jìn)程未啟動(dòng)查看日志缺少配置文件,找到拷貝到目錄下修改配置文件保存退出重啟依舊沒有進(jìn)程繼續(xù)看解決方案了添

解壓 fastdfs-nginx-module-1.20

進(jìn)入Nginx安裝目錄

重新配置安裝包,添加fastdfs源碼目錄

sudo ./configure --add-module=/root/libinstall/fastdfs-nginx-module-1.20/src

make

報(bào)錯(cuò)

解決方案:

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

啟動(dòng) 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

發(fā)現(xiàn)worker 進(jìn)程未啟動(dòng)
查看日志

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進(jìn)程
繼續(xù)看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了~

添加nginx 域名地址解析

修改、/usr/local/nginx/conf/nginx.conf配置文件
添加如下:

 nginx -s reload

成功效果如下:


至此,nginx+fastdfs配置完成。

文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請(qǐng)注明本文地址:http://www.ezyhdfw.cn/yun/40466.html

相關(guān)文章

  • 本地FastDFS圖片服務(wù)器搭建

    摘要:項(xiàng)目比較老舊,自己修改了一下,跑在上,用的和位系統(tǒng),記錄下來,以后上傳圖片都可以用。是一個(gè)開源的輕量級(jí)分布式文件系統(tǒng),功能包括文件存儲(chǔ)文件同步文件訪問文件上傳文件下載等。主要的有兩個(gè)角色和。 項(xiàng)目比較老舊,自己修改了一下,跑在mac上,用的IDEA和centos7 64位系統(tǒng),記錄下來,以后上傳圖片都可以用。 使用場景:圖片上傳 如果我們把圖片全都放在上傳到webapp路徑下顯然是一種...

    QiShare 評(píng)論0 收藏0
  • 農(nóng)民進(jìn)城之初嘗FastDFS搭建圖片分布式系統(tǒng)

    摘要:新建文件夾嘗試啟動(dòng)為默認(rèn)監(jiān)聽端口看到已經(jīng)在監(jiān)聽端口,說明啟動(dòng)成功。修改修改為的路徑,我這里為修改為你的監(jiān)聽的和端口號(hào),我這里為保存退出。即為上傳圖片成功 于前不久,公司論壇的圖片終于將服務(wù)器給擠爆了,已經(jīng)達(dá)到了恐怖的34G,服務(wù)器總?cè)萘坎?0G。如果直接加硬盤的話,那么discuz中的邏輯幾乎就要全改,所以不行。如果將所有圖片扔到對(duì)象存儲(chǔ)的話,那么這會(huì)是一大筆支出(雖然錢不是我出),所...

    LiveVideoStack 評(píng)論0 收藏0

發(fā)表評(píng)論

0條評(píng)論

最新活動(dòng)
閱讀需要支付1元查看
<