shutdown -r now --立即重启
yum -y install tftp-server
yum -y install tftp
yum -y install xinetd
vi /etc/xinetd.d/tftp
说明:修改项server_args= -s <path> -c,其中<path>处可以改为你的tftp-server的根目录,参数-s指定chroot,-c指定了可以创建文件。
rpm -q tftp-server
修改TFTP启动脚本:
方法一:
需要修改ftptpd的启动脚本vi /etc/xinetd.d/tftp加上 disable =no 此时即可启动tfpt服务
方法二:
直接输入: /sbin/chkconfig tftp on
此命令也是在启动脚本中加上disable=no
service xinetd restart
已经启动
关闭客户端和服务端的防火墙
systemctl status firewalld
systemctl stop firewalld
1. 在/var/log/messages 中, 有 tftp相关的日志, 可用 "cat messages | grep tftp" 查看, 但信息很简要;
2. 编辑 /etc/xinetd.d/tftp, 给 "server_args" 添加 " -v "选项;
3. 重启 xinetd, "service xinetd restart";
4. 此时 /var/log/messages 中会记录 tftp相关的详细信息
tftp ip:
yum -y install syslinux
mkdir /tftpboot/pxelinux.cfg
cp isolinux.cfg pxelinux.cfg/default
http文件服务
yum install httpd #根据提示,输入Y安装即可成功安装
systemctl start httpd.service #启动apache
systemctl stop httpd.service #停止apache
systemctl stop firewalld
服务器默认的访问路径在/var/www/html
目录下