好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > FastDFS4和Ubuntu12安裝及部署步驟

FastDFS4和Ubuntu12安裝及部署步驟

熱門標簽:荊門智能應答電話機器人供應商 長沙智能外呼系統招商 鶴壁電話外呼系統怎么樣 地圖標注多個點的位置 系統外呼業績 哪些企業需要使用ai外呼系統 鶴崗電銷 奧維地圖標注制作 百度地圖標注任務

FastDFS4 + Ubuntu12安裝及部署

1、 安裝libevent

如果需要使用http進行下載,需要安裝這個組件。

2、 安裝fastdfs

3、 配置fastdfs

4、 安裝nginx

問題4.1:安裝nginx啟動后訪問原先資源URL出現404錯誤

sudo gedit /nginx安裝目錄/conf/nginx.conf

在nginx.conf添加“user root;”并保存,重啟nginx服務后OK


問題4.2:8090端口被占用


復制代碼
代碼如下:

nginx: [emerg] bind() to 0.0.0.0:8090 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8090 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8090 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8090 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8090 failed (98: Address already in use)
nginx: [emerg] still could not bind()
#killall -9 nginx
// 中斷nginx進程
# /nginx安裝目錄/sbin/nginx -s reload
// 重啟nginx

問題4.3:nginx 403 Forbidden

nginx不允許訪問請求的資源??赡艿脑颍?/p>

1.網站禁止特定的用戶訪問所有內容,例:網站屏蔽某個ip訪問。

2.訪問禁止目錄瀏覽的目錄,例:設置autoindex off后訪問目錄。

3.用戶訪問只能被內網訪問的文件。

案例:在location{allow:all;},我按照網上的例子一直設置為127.0.0.1,導致本機訪問沒有問題,但是局域網內電腦訪問時始終報錯。


5、 開機啟動

6、 測試上傳

7、 在c#中上傳文件

下載FastDFS .net Client

https://code.google.com/p/fastdfs/downloads/detail?name=FastDFS_Client_Dotnet.rarcan=2q=

 
附:官方安裝說明


復制代碼
代碼如下:

#step 1. download FastDFS source package and unpack it
tar xzf FastDFS_v1.x.tar.gz
#for example:
tar xzf FastDFS_v1.11.tar.gz

#step 2. enter the FastDFS dir
cd FastDFS

#step 3. make all
./make.sh

#step 4. make install
./make.sh install

#step 5. edit/modify the config file of tracker and storage

#step 6. run server programs
#start the tracker server:
/usr/local/bin/fdfs_trackerd tracker_conf_filename>

#start the storage server:
/usr/local/bin/fdfs_storaged storage_conf_filename>

#step 7. run test program
#run the client test program:
/usr/local/bin/fdfs_test storage_conf_filename> operation>
#for example, upload a file:
/usr/local/bin/fdfs_test conf/storage.conf upload /usr/include/stdlib.h

#step 8. run monitor program
#run the monitor program:
/usr/local/bin/fdfs_monitor storage_conf_filename>

標簽:青海 南平 菏澤 池州 中山 開封 鞍山 淮安

巨人網絡通訊聲明:本文標題《FastDFS4和Ubuntu12安裝及部署步驟》,本文關鍵詞  FastDFS4,和,Ubuntu12,安裝,及,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《FastDFS4和Ubuntu12安裝及部署步驟》相關的同類信息!
  • 本頁收集關于FastDFS4和Ubuntu12安裝及部署步驟的相關信息資訊供網民參考!
  • 推薦文章