Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation and deployment methods of FastDFS4 and Ubuntu12

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article focuses on "FastDFS4 and Ubuntu12 installation and deployment methods", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "FastDFS4 and Ubuntu12 installation and deployment methods"!

Installation and deployment of FastDFS4 + Ubuntu12

1. Install libevent

If you need to use http for download, you need to install this component.

2. Install fastdfs

3. Configure fastdfs

4. Install nginx

Problem 4.1: 404 error occurred when accessing the original resource URL after the installation nginx was started

Sudo gedit / nginx installation directory / conf/nginx.conf

Add "user root;" to nginx.conf and save it, and OK after restarting the nginx service

Problem 4.2 Port 8090 is occupied

The code is as follows:

Nginx: [emerg] bind () to 0.0.0.0 bind 8090 failed (98: Address already in use)

Nginx: [emerg] bind () to 0.0.0.0 bind 8090 failed (98: Address already in use)

Nginx: [emerg] bind () to 0.0.0.0 bind 8090 failed (98: Address already in use)

Nginx: [emerg] bind () to 0.0.0.0 bind 8090 failed (98: Address already in use)

Nginx: [emerg] bind () to 0.0.0.0 bind 8090 failed (98: Address already in use)

Nginx: [emerg] still could 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 the requested resource. Possible reasons:

1. A website forbids specific users from accessing all content, for example, a website blocks access to a certain ip.

two。 Visit a directory that forbids directory browsing, for example: access the directory after setting autoindex off.

3. Users access files that can only be accessed by the intranet.

Case: in location {allow:all;}, I always set it to 127.0.0.1 according to the online example, which caused no problem with local access, but always reported an error when accessing computers in the local area network.

5. Boot and start

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=

Attached: official installation instructions

The 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

At this point, I believe you have a deeper understanding of "FastDFS4 and Ubuntu12 installation and deployment methods". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report