In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Distributed file system what is a distributed file system? (1) distributed file system means that the physical storage resources managed by the file system are not necessarily directly connected to the local node, but are connected to the node through the computer network (2) the design of the distributed file system is based on the characteristics of the distributed file system in the client / server model. (1) A file system that is fixed in a location. Extend to any number of locations / multiple file systems (2) each node can be distributed in different locations Communication and data transmission between nodes through the network infrastructure client-master server | data server 1 data server 2 data server 3. Data server n (the data is stored on a server cluster, and the entire file system service is provided by the servers in the cluster) the master server-- master manages each data server, assigns tasks-- all the file directory information is placed on the master server, looking for files. Must access it data server-store data-redundancy mode FastDFS FastDFS server has two roles: tracker (tracker) and storage node (storage)-tracker: mainly does scheduling work, plays a load balancing role in access-storage node: performs all the functions of file management, that is, storage, synchronization and provides access interface At the same time, the metadata of files is managed. FastDFS adopts grouping storage mode-the cluster is made up of one or more groups. The total storage capacity of the cluster is the sum of the storage capacity of all groups in the cluster. FastDFS build [tracker50] # yum-y install gcc libevent make # unzip fastdfs.zip # tar zxf FastDFS_v4.06.tar.gz # rpm-ivh libevent-* # cd FastDFS #. / make.sh #. / make.sh install # cd init.d/ # cp fdfs_trackerd / etc/init.d/ # cp storage_ids .conf / etc/fdfs/ modify configuration file # vim / etc/fdfs/tracler.conf base_path=/data/fastdfs storage path store_lookup=0 storage group uses polling mode 0 polling 1 specifies 2 based on which idle option storage use_storage_id = true uses the defined stoaged_id # vim / etc/fdfs/storage_ids.conf # 100001 group1 192.168.4 .51 100002 group1 192.168.4.52 # / etc/init.d/fdfs_tracker start # chkconfig fdfs_tracker on # netstat-lnptu | grep 22122 [storage51:52] # yum-y install gcc libevent make # unzip fastdfs.zip # tar zxf FastDFS_v4.06.tar.gz # rpm-ivh libevent-* # cd FastDFS #. / make.sh #. / make.sh install # cd init.d/ # cp fdfs_storaged / etc/init.d/ modification configuration file # group_name=group1 definition group name # base_path=/data/fastdfs storage path # store_path0=/data/fastdfs # tracker_server=192.168.4.50:22122 specify tracker tracker path # / etc/init.d/fdfs_storaged start # chkconfig fdfs_storaged on # netstat-lnptu | grep 23000 [client 254] # mkdir / etc/fdfs # Cp client.conf / etc/fdfs # vim etc/fdfs/client.conf # base_path=/data/fastdfs # tracker_server=192.168.4.50:22122 scp 192.168.4.50 base_path=/data/fastdfs tar zxf fastdfs-nginx- * / usr/bin Verification # fdfs_upload_file / etc/fdfs/clients.conf a.txt group1/M00/00/00/wKgEM1ppWBCAJdssAACwEV-ILDc175.jpg use web to view the uploaded file [storage51:52] # tar zxf fastdfs-nginx- Module_v1.16.tar.gz # tar zxf nginx-1.7.10.tar.gz # yum-y install pcre-devel openssl-devel # cd nginx # useradd-s / sbin/nologin nginx #. / configure-- prefix=/usr/local/nginx-- user=nginx-- group=nginx-- add-module=../fastdfs-nginx-module/src/-- with-http_ssl_module # cp mod_fastdfs.conf / etc/fdfs/ modify configuration file # vim / Etc/fdfs/mod_fastdfs.conf tracker_server=192.168.4.50:22122 group_name=group1 url_have_group_name = true store_path0=/data/fastdfs modify nginx configuration file # vim / usr/local/nginx/conf/nginx.conf server {listen 80 Server_name localhost; location / {ngx_fastfds_module;}} # / usr/local/nginx/sbin/nginx # / etc/init.d/fdfs_storaged start verify firefox http:192.168.4.51/group1/M00/00/00/wKgEM1ppWBCAJdssAACwEV-ILDc175.jpg
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.