In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
The installation and use of rsync, in view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.
one
Rpm-qa | grep rsync
Check to see if rsync software is installed on your computer
two
Rpm-ql rsync
Display rsync and related file information below
three
Vim / etc/rsyncd.conf
Configure the rsync daemon profile (this file is very important)
The following is a fixed format, copy and paste, and then modify the corresponding parameters accordingly
# rsyncd.conf start#
Uid = rsync
# # specify user master
Gid = rsync
# # specify user groups
Use chroot = no
# #
Max connections = 200
# # maximum number of visits up to 200
Timeout = 300
# # timeout 300 seconds
Pid file = / var/run/rsyncd.pid
# # this follow-up supplement
Lock file = / var/run/rsync.lock
# # Lock files
Log file = / var/log/rsyncd.log
# # production Log
[backup]
# # it can be understood that the directory of a module and the next line is usually set as one
Path = / backup/
# # path for storing content on backup server
Ignore errors
# #
Read only = false
# # non-read-only mode
List = false
# # No list is generated
Hosts allow = 172.16.1.0 ram 24 # # specify the network segment
Hosts deny = 0.0.0.0amp 32
# # this may not be configured
Auth users = rsync_backup
# # can be understood as knocking on the door
Secrets file= / etc/rsync.password
# # location of password
# reync_config_en
# # end
four
Useradd-s / sbin/nologin-M rsync
Create a rsync virtual user to pry open the door to the backup server
five
Id rsync
Check to see if the id user and user group id numbers of rsync users are correct
six
Mkdir-p / backup
Create / backup directory to store backup files for specified servers
seven
Chown-R rsync.rsync / backup
Change the owner of this directory to rsync.rsync, which is the virtual user that has just been created.
eight
Ll-d / backup
Check the owner and group of the backup directory
nine
Echo 'rsync_backup:123456' > / etc/rsync.password
Write the password of the accessed server to / etc/rsync.password. This file cannot be changed because it is already configured.
ten
Chmod 600 / etc/rsync.password
Change the password file permissions to 600 so that only the owner can view and modify.
eleven
Ll / etc/rsync.password
Check to see if the permission setting for the / etc/rsync.password file is 600. 0.
twelve
Rsync-daemon
Start rsync daemon mode.
thirteen
Ps-ef | grep rsync
Check to see if the rsync process is open.
fourteen
Rsync-avz / etc/hosts rsync_backup@172.16.1.41::backup
Push content to the bakcup server on the client server.
Then enter the password to see the execution process.
This is the answer to the question about the installation and use of rsync. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
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.