zoukankan      html  css  js  c++  java
  • sed -i '14s/yes/no/' tftp

    修改tftp 内容

    # cd /etc/xinetd.d/
    [root@localhost xinetd.d]# cp tftp tftp.bak
    [root@localhost xinetd.d]# cat tftp
    # default: off
    # description: The tftp server serves files using the trivial file transfer
    # protocol. The tftp protocol is often used to boot diskless
    # workstations, download configuration files to network-aware printers,
    # and to start the installation process for some operating systems.
    service tftp
    {
    socket_type = dgram
    protocol = udp
    wait = yes
    user = root
    server = /usr/sbin/in.tftpd
    server_args = -s /var/lib/tftpboot
    disable = yes
    per_source = 11
    cps = 100 2
    flags = IPv4
    }
    [root@localhost xinetd.d]# cat -n tftp
    1 # default: off
    2 # description: The tftp server serves files using the trivial file transfer
    3 # protocol. The tftp protocol is often used to boot diskless
    4 # workstations, download configuration files to network-aware printers,
    5 # and to start the installation process for some operating systems.
    6 service tftp
    7 {
    8 socket_type = dgram
    9 protocol = udp
    10 wait = yes
    11 user = root
    12 server = /usr/sbin/in.tftpd
    13 server_args = -s /var/lib/tftpboot
    14 disable = yes
    15 per_source = 11
    16 cps = 100 2
    17 flags = IPv4
    18 }
    [root@localhost xinetd.d]# sed -i '14s/yes/no/' tftp
    [root@localhost xinetd.d]# cat -n tftp
    1 # default: off
    2 # description: The tftp server serves files using the trivial file transfer
    3 # protocol. The tftp protocol is often used to boot diskless
    4 # workstations, download configuration files to network-aware printers,
    5 # and to start the installation process for some operating systems.
    6 service tftp
    7 {
    8 socket_type = dgram
    9 protocol = udp
    10 wait = yes
    11 user = root
    12 server = /usr/sbin/in.tftpd
    13 server_args = -s /var/lib/tftpboot
    14 disable = no
    15 per_source = 11
    16 cps = 100 2
    17 flags = IPv4
    18 }
    [root@localhost xinetd.d]# sed -i '14s/yes/no/' tftp

     
  • 相关阅读:
    线性结构-实验报告
    课堂实验-Bag
    20162321王彪 2017-2018-1 《程序设计与数据结构》第三周学习总结
    王彪20162321 2017-2018程序设计与数据结构-第二学期-第一周学习总结
    课程总结
    结对编程
    结对编程-四则运算-题目去重
    20162311 2017-2018-1 《程序设计与数据结构》第八周学习总结
    20162311 实验二 树 实验报告
    20162311 2017-2018-1 《程序设计与数据结构》第七周学习总结
  • 原文地址:https://www.cnblogs.com/xuanbjut/p/12945343.html
Copyright © 2011-2022 走看看