安裝和啟動tftp-server服務器及可能出現Redirecting to /bin/systemctl restart xinetd.service問題的解決方式



安裝和啟動tftp-server服務器及可能出現Redirecting to /bin/systemctl restart xinetd.service問題的解決方式

1)首先,檢查服務器已安裝的tftp-server
        使用命令:rpm -qa | grep tftp-server
        如果存在已安裝的tftp這里會列出來
    2)安裝tftp-server 和 xinetd
        使用如下的命令,進行相應服務的安裝:
        $yum -y install tftp-server
        $yum -y install xinetd
    3)修改tftp配置文件
    使用如下命令:
        $vi /etc/xinetd.d/tft打開配置文件
        service tftp
        {
            socket_type        = dgram
            protocol        = udp
            wait            = yes
            user            = root
            server        = /usr/sbin/in.tftpd
            server_args        = -s /var/lib/tftpboot
            disable        = no //需要修改的地方,初始時刻為yes
            per_source        = 11
            cps            = 100 2
            flags            = IPv4
        }
    4)重起服務
        使用如下命令進行服務的重新啟動
        $/bin/systemctl restart xinetd.service
        如果沒有效果,使用如下命令
        $/bin/systemctl enable xinetd.service //開啟服務
        $/bin/systemctl start xinetd.service  //啟動服務
        查看服務啟動狀況
        $ps aux | grep xinetd 或者 $ps -ef|grep xinetd 或者 ps -a | grep tftp
    5)可能出現的問題
        5.1)在啟動 xinetd.service 時提示
            Redirecting to /bin/systemctl restart  xinetd.service
            Failed to issue method call: Unit xinetd.service failed to load: No such file or directory.
            說明系統沒有安裝 xinetd,需要使用 yum -y instal xinetd.service進行服務的安裝
        5.2)在啟動xinetd.service時出現:
            Redirecting to /bin/systemctl restart  xinetd.service
            可能啟動的命令是systemctl restart xinetd.service
            以上是我安裝tftp的步驟及遇到的一些問題,可能讀者這自己安裝的過程中有其它的一些問題,但是問題應該不大


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM