tailieunhanh - UNIX System Administration A Beginner’s Guide PHẦN 10

tùy chọn thông báo rdist để đọc các tập tin cấu hình đi kèm từ dòng lệnh. Theo mặc định, rdist sẽ tìm kiếm các thư mục địa phương cho một tập tin gọi là distfile, và nếu tìm thấy, sẽ cố gắng để xử lý file này cho các chỉ thị phân phối phần mềm. Vì vậy, nếu chúng ta đổi tên tập tin mạng dist distfile | 610 UNIX System Administration A Beginner s Guide remote hosts that should be updated with the list of files contained within the FILES variable. In this case the target hosts are dino and fred. The list of files defined with the FILES variable copied to the remote hosts are etc hosts and. etc . Naturally these hosts must be official node names that are contained within etc hosts NIS or DNS. Also the files must exist on the local system which is the system where the rdist command will be executed. The way rdist variables are accessed by enclosing the variable name within brackets and adding the dollar sign in front of the name thus FILES or HOSTS are both valid. Additional parentheses such as FILES are needed around variables when they are used with certain rdist directives as shown in the above example. We use the rdist string - to signify that we would like to copy the contents of the FILES variable to the target machines contained with the HOSTS variable. The install keyword string indicates that the files should be installed on the remote hosts. To invoke the above configuration assume that we have saved this information to a text file called network-dist and use the rdist command as shown here rdist -f network-dist updating host dino updating etc hosts V updating etc updating host fred updating etc hosts updating etc The - f option informs rdist to read the accompanying configuration file from the command line. By default rdist will search the local directory for a file called distfile and if found will attempt to process this file for software distribution directives. Thus if we rename hie network-dist file to distfile and run the rdist command again without any arguments it will accomplish the same work as shown in the above example. As you can see from the output both hosts are listed and the associated files were updated on each host. If we were to execute the command again we would find different output rdist -f .

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.