Linux Basic Learning (11) Time synchronization device mount

Source: Internet
Author: User

# # #时间的同步 # #

    1. Service side

Yum Install Chrony-y # #安装服务


vim/etc/chrony.conf # #主配置文件

#Allow NTP Client access from the local network.

Allow 172.25.0.0/24 # #允许谁去同步我的时间

#Serve time even if not synchronized to any NET server

Stratum local #不去同步任何人的时间, time synchronization server level


Systemctl Restart Chronyd

Systemctl Stop Firewalld


2. Client

Vim/etc/chrony.conf

3 Server 0.rhel.pool.ntp.org Iburst

4 server 1.rhel.pool.ntp.org iburst=======>server Ntpserverip iburst

5 server 2.rhel.pool.ntp.org iburst=======>

6 Server 3.rhel.pool.ntp.org Iburst


Systemctl Restart Chronyd

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/89/9F/wKiom1gYVdyzVek4AAWJ6hZjrTk655.png-wh_500x0-wm_3 -wmp_4-s_4137204987.png "title=" 2016-11-01 16:46:25 screenshot. png "alt=" wkiom1gyvdyzvek4aawj6hzjrtk655.png-wh_50 "/>


# # #timedatectl命令

Timedatectl Status # #显示当前时间信息

Set-time # #设定当前时间

List-timezones # #列出所有时区

Set-timezone # #设定当前时区

SET-LOCAL-RTC 0|1 # #设定是否使用utc时间


# # #设备识别

Serial Drive SATA SDA

and Port HDD SDA HDA


/DEV/XDXN # #硬盘设备/DEV/SDA1

/dev/cdrom # #光驱

/dev/mapper/* # #虚拟设备


# # # #设备的发现

Fdisk-1 # #查看真实存在的设备

Cat/proc/partitions # #查看系统能够识别的设备

Blkid # #系统能够挂载使用的设备id

DF # #查看设备被系统使用的情况


# # #设备的使用

    1. Mounting of the device

Mount Device mount point

MOUNT/DEV/SDB1/MNT # #把电脑第二块硬盘的第一个分区挂载到/mnt under


2. Uninstalling the device

Umount Equipment | mount point


If the target is busy error occurs when uninstalling the device, the workaround is as follows:

FUSER-KVM Device | mount point ##-k kill-v Show details-m scan device


# # # #软硬连接

Soft Links: Multiple nodes corresponding to a block of data

Hard Links: One node corresponds to multiple data blocks

Ls-i # #查看文件节点号

Ln-s/file/file1 # #软链接

Ln/file/file1 # #硬链接

# # #文件查找

    1. Locate filename # #在文件数据库中搜索信息

    2. UpdateDB # #更新数据库


Find find location-condition criteria Value

-name

-user

-group

-size

-not


Linux Basic Learning (11) Time synchronization device mount

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.