tailieunhanh - Automating Linux and Unix System Administration Second Edition phần 5

Thay vì sử dụng một biểu tượng thương hiệu với tất cả sự xuất hiện của một tên đã đăng ký nhãn hiệu, chúng tôi sử dụng tên duy nhất trong một biên tập thời trang và vì lợi ích của chủ sở hữu nhãn hiệu hàng hoá, không có ý định xâm phạm nhãn hiệu hàng hoá. Chì biên tập: Frank Pohlmann kỹ thuật phản biện | 164 CHAPTER 7 AUTOMATING A NEW SYSTEM INFRASTRUCTURE By default exchange time with everybody but don t allow configuration. See usr share doc ntp-doc html for details restrict -4 default kod notrap nomodify nopeer noquery restrict -6 default kod notrap nomodify nopeer noquery Local users may interrogate the ntp server more closely restrict restrict 1 allow the local subnet to query US restrict mask nomodify notrap Both Red Hat and Debian have a dedicated user to run the NTP daemon process. The user account named ntp will need write access to the var lib ntp directory. When you name a subnet using the restrict keyword and omit the noquery keyword the server allows NTP client connections from that subnet. Configuring the NTP Clients Now that we have working NTP servers on our network we need configuration files for the Linux both Red Hat and Debian and Solaris systems on our network. We refer to the systems running NTP to synchronize only with internal hosts as NTP clients. Solaris 10 NTP Client You ll find it easy to configure a single Solaris 10 system to synchronize its time using NTP. We will automate the configuration across all our Solaris systems later but will first test our configuration on a single host to validate it. Simply copy etc inet to etc inet and comment out these lines server fudge stratum 0 keys etc inet trustedkey 0 requestkey 0 controlkey 0 Add lines for our internal NTP servers server server CHAPTER 7 AUTOMATING A NEW SYSTEM INFRASTRUCTURE 165 Create the file var ntp as root using the touch command and enable the ntp service touch var ntp usr sbin svcadm enable svc network ntp It s really that easy. Check the var log messages log file for lines like this indicating success Jul 27 18 05 30 aurora ntpdate 995 ID 558275 adjust time server offset sec Red .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.