This article describes how to install and deploy FastDFS4 and Ubuntu12. For more information, see Ubuntu.
FastDFS4 + Ubuntu12 installation and deployment
1. install libevent
If you want to use http for download, you need to install this component.
2. install fastdfs
3. configure fastdfs
4. install nginx
Problem 4.1: a 404 error occurred when accessing the original resource URL after nginx is installed and started.
Sudo gedit/nginx installation directory/conf/nginx. conf
Add "user root;" in nginx. conf and save it. after restarting the nginx service, OK
Problem 4.2: port 8090 is occupied
Copy codeThe code is as follows:
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 cocould not bind ()
# Killall-9 nginx
// Interrupt the nginx process
#/Nginx installation directory/sbin/nginx-s reload
// Restart nginx
Question 4.3: nginx 403 Forbidden
Nginx does not allow access to requested resources. Possible causes:
1. The website prohibits a specific user from accessing all content. for example, the website shields access from a certain ip address.
2. access the directory where directory browsing is prohibited. for example, access the directory after autoindex is off.
3. Users can only access files through the intranet.
Case: in location {allow: all;}, I have been set to 127.0.0.1 according to the online example. as a result, the local computer access is normal, but an error is always reported when accessing the local computer in the LAN.
5. Boot
6. test Upload
7. Upload files in c #
Download FastDFS. net Client
Https://code.google.com/p/fastdfs/downloads/detail? Name‑fastdfs_client_dotnet.rar & can = 2 & q =
Appendix: official installation instructions
Copy codeThe code is as follows:
# 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
# Start the storage server:
/Usr/local/bin/fdfs_storaged
# Step 7. run test program
# Run the client test program:
/Usr/local/bin/fdfs_test
# 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