DA1SY

偏有宸机

愿勇猛精进,志愿无倦。


CentOS6.5 TFTP搭建

1.安装TFTP服务

yum install tftp-server
yum install xinetd        //TFTP是通过xintd运行的,所以需要安装Xinetd

2.配置tftp文件 ——-

vim /etc/xinetd.d/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        //FTP文件的根目录
    disable         = no        //缺省请况下是禁用TFTP的,所以要把yes改为no
    per_source      = 11
    cps             = 100 2
    flags           = IPv4
}

4.设置TFTP目录的访问权限 ——-

chmod 777 /var/lib/tftpboot

5.开启TFTP服务 ——-

[root@localhost /]# /etc/init.d/xinetd start

可能出现的问题

1.tftpd服务没有启动

2.需要把selinux禁用掉 具体方法如下:

vim /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted

把上面的SELINUX=enforcing 改为:SELINUX=disable 禁用SeLinux 然后reboot重启PC

返回顶部
最近的文章

CentOS6.5 配置Apache及多站点VirtualHost

1.安装httpd服务yum install httpd2.配置文件——-Apache主要的配置文件是/etc/httpd/conf/httpd.conf,文件中包含许多在基本安装中不需要更改的配置。实际上只需要对文件稍微进行一些更改即可启动并运行服务。2.1 监听端口Listen配置项,定义了Apache要监听页面请求的IP地址和端口。Listen 80#如果需要限制IP访问可以更改为Listen 127.0.0.1:80#即只可本地浏览2.2 Html文件位置——–DocumentRo...…

Centos6.5服务器搭建继续阅读
更早的文章

CentOS6.5 DHCP服务器搭建

1.安装dhcp软件包yum install -y dhcp*2.查看dhcpd.conf配置文件 vim /etc/dhcpd.conf[root@localhost ~]# cat /etc/dhcp/dhcpd.conf## DHCP Server Configuration file.# see /usr/share/doc/dhcp*/dhcpd.conf.sample# see 'man 5 dhcpd.conf'#};可以看到是要我们借鉴这个模板文件3.更改dhcp...…

Centos6.5服务器搭建继续阅读