Linux CentOS7 rsync via service sync, Linux System log, screen tool

Source: Internet
Author: User
Tags auth rsync dmesg

One, rsync through the service synchronization

rsyncd.conf configuration file Detailed

Port: Specify on which port to start the RSYNCD service, which is port 873 by default.

Log file: Specifies the log files.

PID file: Specify the PID files, the role of this file involves the start of services, stop and other process management operations.

Address: Specifies the IP to start the RSYNCD service. If your machine has multiple IPs, you can specify that one of the boot RSYNCD services, if not specified, is started on all IPs by default.

[]: Specifies the module name, inside the content customization.

Path: Specifies the path where the data is stored.

Use Chroot True|false: Represents the first chroot to the directory specified by the path parameter before transferring the file. The reason for this is to implement additional security protections, but the disadvantage is that you need to roots permissions, and you cannot back up the directory files that point to external symbolic connections. By default, the Chroot value is true, and if you have a soft connection file in your data, Amin recommends that you set it to false.

Max connections: Specifies the maximum number of connections, which defaults to 0, which means there is no limit.

Read Only Ture|false: If true, you cannot upload to the path specified by the module.

List: Indicates whether the module is listed when the user queries the available modules on the server, set to True is listed, and false is hidden.

Uid/gid: Specifies which user/group is transferred as the file is transferred.

Auth Users: Specifies the user name to use when transferring.

Secrets file: Specifies the password files, which, together with the parameters above, do not use password authentication if they are not specified. Note that the password file's permissions must be 600. Format: User name: Password hosts allow: The host that is allowed to connect to the module, can be IP or network segment, if it is multiple, in the middle with a space separated.

When the Auth users and Secrets file are set, the client connection server also needs to use the user name password, if you want to bring the password on the command line, you can set a password file

RSYNC-AVL [email protected]::test/test1//tmp/test8/--password-file=/etc/pass

Where/etc/pass content is a password, permission to change to 600

Second, Linux system log

/var/log/messages

/etc/logrotate.conf Log Cutting configuration file

Refer to https://my.oschina.net/u/2000675/blog/908189 DMESG command

/VAR/LOG/DMESG Log

Last command, called the file/var/log/wtmp

LASTB command to view the user who failed the login, the corresponding file is/var/log/btmp

/var/log/secure

Third, screen tools

In order not to accidentally interrupt a task

Nohup Command & Screen is a virtual terminal

Yum install-y Screen

Screen directly enter into the virtual terminal

Ctral a combo key and press D to exit the virtual terminal, but not the end

Screen-ls viewing the virtual terminal list

Screen-r ID into the specified terminal

Screen-s Davery

Screen-r Davery

Linux CentOS7 rsync via service sync, Linux System log, screen tool

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.